From e14cb8ec8f2439744f045f3f10c1fcd3c9e0bae6 Mon Sep 17 00:00:00 2001 From: "Ding J.A" <34332562+sc-dja@users.noreply.github.com> Date: Fri, 30 Aug 2019 20:10:47 +0800 Subject: [PATCH] Support for Application Insights Availability Metric Alert Resolved issue: Decommission of the classic alert --- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 307 ++++++++---------- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 307 ++++++++---------- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 307 ++++++++---------- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 307 ++++++++---------- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 307 ++++++++---------- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 307 ++++++++---------- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 307 ++++++++---------- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 307 ++++++++---------- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 307 ++++++++---------- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 307 ++++++++---------- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 307 ++++++++---------- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 155 ++++----- .../Monitoring/nested/availability.json | 307 ++++++++---------- 36 files changed, 3336 insertions(+), 4068 deletions(-) diff --git a/Sitecore 8.2.1/xdb/addons/Monitoring/nested/availability.json b/Sitecore 8.2.1/xdb/addons/Monitoring/nested/availability.json index 45f14f83..c4eaae57 100644 --- a/Sitecore 8.2.1/xdb/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.1/xdb/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xm/addons/Monitoring/nested/availability.json b/Sitecore 8.2.1/xm/addons/Monitoring/nested/availability.json index 2e82182e..3c1e62a5 100644 --- a/Sitecore 8.2.1/xm/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.1/xm/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xp/addons/Monitoring/nested/availability.json b/Sitecore 8.2.1/xp/addons/Monitoring/nested/availability.json index b14a5562..b9851e0b 100644 --- a/Sitecore 8.2.1/xp/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.1/xp/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -234,50 +219,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -317,50 +294,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xdb/addons/Monitoring/nested/availability.json b/Sitecore 8.2.2/xdb/addons/Monitoring/nested/availability.json index 45f14f83..c4eaae57 100644 --- a/Sitecore 8.2.2/xdb/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.2/xdb/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xm/addons/Monitoring/nested/availability.json b/Sitecore 8.2.2/xm/addons/Monitoring/nested/availability.json index 2e82182e..3c1e62a5 100644 --- a/Sitecore 8.2.2/xm/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.2/xm/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xp/addons/Monitoring/nested/availability.json b/Sitecore 8.2.2/xp/addons/Monitoring/nested/availability.json index b14a5562..b9851e0b 100644 --- a/Sitecore 8.2.2/xp/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.2/xp/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -234,50 +219,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -317,50 +294,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xdb/addons/Monitoring/nested/availability.json b/Sitecore 8.2.3/xdb/addons/Monitoring/nested/availability.json index 45f14f83..c4eaae57 100644 --- a/Sitecore 8.2.3/xdb/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.3/xdb/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xm/addons/Monitoring/nested/availability.json b/Sitecore 8.2.3/xm/addons/Monitoring/nested/availability.json index 2e82182e..3c1e62a5 100644 --- a/Sitecore 8.2.3/xm/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.3/xm/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xp/addons/Monitoring/nested/availability.json b/Sitecore 8.2.3/xp/addons/Monitoring/nested/availability.json index b14a5562..b9851e0b 100644 --- a/Sitecore 8.2.3/xp/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.3/xp/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -234,50 +219,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -317,50 +294,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xdb/addons/Monitoring/nested/availability.json b/Sitecore 8.2.4/xdb/addons/Monitoring/nested/availability.json index 45f14f83..c4eaae57 100644 --- a/Sitecore 8.2.4/xdb/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.4/xdb/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xm/addons/Monitoring/nested/availability.json b/Sitecore 8.2.4/xm/addons/Monitoring/nested/availability.json index 2e82182e..3c1e62a5 100644 --- a/Sitecore 8.2.4/xm/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.4/xm/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xp/addons/Monitoring/nested/availability.json b/Sitecore 8.2.4/xp/addons/Monitoring/nested/availability.json index b14a5562..b9851e0b 100644 --- a/Sitecore 8.2.4/xp/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.4/xp/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -234,50 +219,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -317,50 +294,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xdb/addons/Monitoring/nested/availability.json b/Sitecore 8.2.5/xdb/addons/Monitoring/nested/availability.json index 45f14f83..c4eaae57 100644 --- a/Sitecore 8.2.5/xdb/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.5/xdb/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xm/addons/Monitoring/nested/availability.json b/Sitecore 8.2.5/xm/addons/Monitoring/nested/availability.json index 2e82182e..3c1e62a5 100644 --- a/Sitecore 8.2.5/xm/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.5/xm/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xp/addons/Monitoring/nested/availability.json b/Sitecore 8.2.5/xp/addons/Monitoring/nested/availability.json index b14a5562..b9851e0b 100644 --- a/Sitecore 8.2.5/xp/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.5/xp/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -234,50 +219,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -317,50 +294,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xdb/addons/Monitoring/nested/availability.json b/Sitecore 8.2.6/xdb/addons/Monitoring/nested/availability.json index 45f14f83..c4eaae57 100644 --- a/Sitecore 8.2.6/xdb/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.6/xdb/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xm/addons/Monitoring/nested/availability.json b/Sitecore 8.2.6/xm/addons/Monitoring/nested/availability.json index 2e82182e..3c1e62a5 100644 --- a/Sitecore 8.2.6/xm/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.6/xm/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xp/addons/Monitoring/nested/availability.json b/Sitecore 8.2.6/xp/addons/Monitoring/nested/availability.json index b14a5562..b9851e0b 100644 --- a/Sitecore 8.2.6/xp/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.6/xp/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -234,50 +219,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -317,50 +294,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xdb/addons/Monitoring/nested/availability.json b/Sitecore 8.2.7/xdb/addons/Monitoring/nested/availability.json index 45f14f83..c4eaae57 100644 --- a/Sitecore 8.2.7/xdb/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.7/xdb/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xm/addons/Monitoring/nested/availability.json b/Sitecore 8.2.7/xm/addons/Monitoring/nested/availability.json index 2e82182e..3c1e62a5 100644 --- a/Sitecore 8.2.7/xm/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.7/xm/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xp/addons/Monitoring/nested/availability.json b/Sitecore 8.2.7/xp/addons/Monitoring/nested/availability.json index b14a5562..b9851e0b 100644 --- a/Sitecore 8.2.7/xp/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.7/xp/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -234,50 +219,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -317,50 +294,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XDB/addons/Monitoring/nested/availability.json b/Sitecore 9.0.0/XDB/addons/Monitoring/nested/availability.json index 45f14f83..c4eaae57 100644 --- a/Sitecore 9.0.0/XDB/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.0.0/XDB/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XM/addons/Monitoring/nested/availability.json b/Sitecore 9.0.0/XM/addons/Monitoring/nested/availability.json index 2e82182e..3c1e62a5 100644 --- a/Sitecore 9.0.0/XM/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.0.0/XM/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XP/addons/Monitoring/nested/availability.json b/Sitecore 9.0.0/XP/addons/Monitoring/nested/availability.json index b14a5562..b9851e0b 100644 --- a/Sitecore 9.0.0/XP/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.0.0/XP/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -234,50 +219,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -317,50 +294,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XDB/addons/Monitoring/nested/availability.json b/Sitecore 9.0.1/XDB/addons/Monitoring/nested/availability.json index 45f14f83..c4eaae57 100644 --- a/Sitecore 9.0.1/XDB/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.0.1/XDB/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XM/addons/Monitoring/nested/availability.json b/Sitecore 9.0.1/XM/addons/Monitoring/nested/availability.json index 2e82182e..3c1e62a5 100644 --- a/Sitecore 9.0.1/XM/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.0.1/XM/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XP/addons/Monitoring/nested/availability.json b/Sitecore 9.0.1/XP/addons/Monitoring/nested/availability.json index b14a5562..b9851e0b 100644 --- a/Sitecore 9.0.1/XP/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.0.1/XP/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -234,50 +219,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -317,50 +294,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XDB/addons/Monitoring/nested/availability.json b/Sitecore 9.0.2/XDB/addons/Monitoring/nested/availability.json index 45f14f83..c4eaae57 100644 --- a/Sitecore 9.0.2/XDB/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.0.2/XDB/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XM/addons/Monitoring/nested/availability.json b/Sitecore 9.0.2/XM/addons/Monitoring/nested/availability.json index 2e82182e..3c1e62a5 100644 --- a/Sitecore 9.0.2/XM/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.0.2/XM/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XP/addons/Monitoring/nested/availability.json b/Sitecore 9.0.2/XP/addons/Monitoring/nested/availability.json index b14a5562..b9851e0b 100644 --- a/Sitecore 9.0.2/XP/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.0.2/XP/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -234,50 +219,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -317,50 +294,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XDB/addons/Monitoring/nested/availability.json b/Sitecore 9.1.0/XDB/addons/Monitoring/nested/availability.json index 45f14f83..c4eaae57 100644 --- a/Sitecore 9.1.0/XDB/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.1.0/XDB/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XM/addons/Monitoring/nested/availability.json b/Sitecore 9.1.0/XM/addons/Monitoring/nested/availability.json index 2e82182e..3c1e62a5 100644 --- a/Sitecore 9.1.0/XM/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.1.0/XM/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XP/addons/Monitoring/nested/availability.json b/Sitecore 9.1.0/XP/addons/Monitoring/nested/availability.json index b14a5562..b9851e0b 100644 --- a/Sitecore 9.1.0/XP/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.1.0/XP/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -234,50 +219,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -317,50 +294,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 9.1.1/XDB/addons/Monitoring/nested/availability.json b/Sitecore 9.1.1/XDB/addons/Monitoring/nested/availability.json index 45f14f83..c4eaae57 100644 --- a/Sitecore 9.1.1/XDB/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.1.1/XDB/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 9.1.1/XM/addons/Monitoring/nested/availability.json b/Sitecore 9.1.1/XM/addons/Monitoring/nested/availability.json index 2e82182e..3c1e62a5 100644 --- a/Sitecore 9.1.1/XM/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.1.1/XM/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file diff --git a/Sitecore 9.1.1/XP/addons/Monitoring/nested/availability.json b/Sitecore 9.1.1/XP/addons/Monitoring/nested/availability.json index b14a5562..b9851e0b 100644 --- a/Sitecore 9.1.1/XP/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.1.1/XP/addons/Monitoring/nested/availability.json @@ -27,7 +27,8 @@ "alertRuleApiVersion": "2016-03-01", "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]" + "sitecoreResourceGroup": "[resourceGroup().name]", + "actionGroupResourceId": "[parameters('infrastructure').actionGroupName]" }, "resources": [ { @@ -68,50 +69,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -151,50 +144,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -234,50 +219,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } }, { "type": "Microsoft.Insights/webtests", @@ -317,50 +294,42 @@ "Configuration": { "WebTest": "[concat(' ') ]" } + } + }, + { + "type": "Microsoft.Insights/metricAlerts", + "apiVersion": "2018-03-01", + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "location": "global", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" }, - "resources": [ - { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [ - { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - } - ] + "properties": { + "description": "Alert to be triggered when the Web Test fails", + "severity": 0, + "enabled": true, + "scopes": [ + "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT5M", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + "webTestId": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "componentId": "[resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName'))]", + "failedLocationCount": "2" + }, + "actions": [ + { + "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', variables('actionGroupResourceId'))]" } - } - ] + ] + } } ] } \ No newline at end of file