1
+ {
2
+ "parameters" : {
3
+ "subscriptionId" : " 187f412d-1758-44d9-b052-169e2564721d" ,
4
+ "resourceGroupName" : " MyResourceGroup" ,
5
+ "activityLogAlertName" : " SampleActivityLogAlertSHRuleOnTenantLevel" ,
6
+ "api-version" : " 2023-01-01-preview" ,
7
+ "activityLogAlertRule" : {
8
+ "location" : " Global" ,
9
+ "tags" : {},
10
+ "properties" : {
11
+ "tenantScope" : " 72f988bf-86f1-41af-91ab-2d7cd011db47" ,
12
+ "condition" : {
13
+ "allOf" : [
14
+ {
15
+ "field" : " category" ,
16
+ "equals" : " ServiceHealth"
17
+ }
18
+ ]
19
+ },
20
+ "actions" : {
21
+ "actionGroups" : [
22
+ {
23
+ "actionGroupId" : " /subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup" ,
24
+ "webhookProperties" : {
25
+ "sampleWebhookProperty" : " SamplePropertyValue"
26
+ }
27
+ }
28
+ ]
29
+ },
30
+ "enabled" : true ,
31
+ "description" : " Description of sample Activity Log Alert service health rule on tenant level events."
32
+ }
33
+ }
34
+ },
35
+ "responses" : {
36
+ "200" : {
37
+ "headers" : {},
38
+ "body" : {
39
+ "id" : " /subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlertSHRuleOnTenantLevel" ,
40
+ "type" : " Microsoft.Insights/ActivityLogAlerts" ,
41
+ "name" : " SampleActivityLogAlertSHRuleOnTenantLevel" ,
42
+ "location" : " Global" ,
43
+ "tags" : {},
44
+ "properties" : {
45
+ "tenantScope" : " 72f988bf-86f1-41af-91ab-2d7cd011db47" ,
46
+ "condition" : {
47
+ "allOf" : [
48
+ {
49
+ "field" : " category" ,
50
+ "equals" : " ServiceHealth"
51
+ }
52
+ ]
53
+ },
54
+ "actions" : {
55
+ "actionGroups" : [
56
+ {
57
+ "actionGroupId" : " /subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/microsoft.insights/actionGroups/SampleActionGroup" ,
58
+ "webhookProperties" : {
59
+ "sampleWebhookProperty" : " SamplePropertyValue"
60
+ }
61
+ }
62
+ ]
63
+ },
64
+ "enabled" : true ,
65
+ "description" : " Description of sample Activity Log Alert service health rule on tenant level events."
66
+ }
67
+ }
68
+ },
69
+ "201" : {
70
+ "headers" : {},
71
+ "body" : {
72
+ "id" : " /subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/microsoft.insights/activityLogAlerts/SampleActivityLogAlertSHRuleOnTenantLevel" ,
73
+ "type" : " Microsoft.Insights/ActivityLogAlerts" ,
74
+ "name" : " SampleActivityLogAlertSHRuleOnTenantLevel" ,
75
+ "location" : " Global" ,
76
+ "tags" : {},
77
+ "properties" : {
78
+ "tenantScope" : " 72f988bf-86f1-41af-91ab-2d7cd011db47" ,
79
+ "condition" : {
80
+ "allOf" : [
81
+ {
82
+ "field" : " category" ,
83
+ "equals" : " ServiceHealth"
84
+ }
85
+ ]
86
+ },
87
+ "actions" : {
88
+ "actionGroups" : [
89
+ {
90
+ "actionGroupId" : " /subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/microsoft.insights/actionGroups/SampleActionGroup" ,
91
+ "webhookProperties" : {
92
+ "sampleWebhookProperty" : " SamplePropertyValue"
93
+ }
94
+ }
95
+ ]
96
+ },
97
+ "enabled" : true ,
98
+ "description" : " Description of sample Activity Log Alert service health rule on tenant level events."
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
104
+
0 commit comments