You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following template creates an action group with an email target and enables all service health notifications for the target subscription. Save this template as `CreateServiceHealthAlert.json`.
18
+
## Template for creating service health alert rules
19
+
20
+
The following template creates a service health alert rule that sends notifications of service health events for the target subscription. Save this template as `CreateServiceHealthAlert.json` and modify it as needed.
21
+
22
+
Points to note:
23
+
24
+
1. The 'scopes' of a service health alert rule can only contain a single subscription, which must be the same subscription in which the rule is created. Multiple subscriptions, a resource group, or other types of scope aren't supported.
25
+
1. You can create service health alert rules only in the "Global" location.
26
+
1. The "properties.incidentType", "properties.impactedServices[*].ServiceName" and "properties.impactedServices[*].ImpactedRegions[*].RegionName" clauses within the rule condition are optional. You can remove these clauses to be notified on events sent for all incident types, all services, and/or all regions, respectively.
27
+
1. The service names used in the "properties.impactedServices[*].ServiceName" must be a valid Azure service name. A list of valid names can be retrieved at the [Resource Health Metadata List API](https://learn.microsoft.com/rest/api/resourcehealth/metadata/list)
28
+
20
29
21
30
```json
22
31
{
@@ -41,7 +50,7 @@ The following template creates an action group with an email target and enables
41
50
"resources": [
42
51
{
43
52
"type": "microsoft.insights/actionGroups",
44
-
"apiVersion": "2019-06-01",
53
+
"apiVersion": "2020-10-01",
45
54
"name": "[parameters('actionGroups_name')]",
46
55
"location": "Global",
47
56
"properties": {
@@ -75,6 +84,19 @@ The following template creates an action group with an email target and enables
0 commit comments