Skip to content

Commit 036c2de

Browse files
avjerafiAvi Jerafi
andauthored
Updated examples to use non-global locations and added new flags (#15094)
Co-authored-by: Avi Jerafi <avjerafi@microsoft.com>
1 parent b41cb67 commit 036c2de

File tree

7 files changed

+86
-29
lines changed

7 files changed

+86
-29
lines changed

specification/monitor/resource-manager/Microsoft.Insights/preview/2021-02-01-preview/examples/createOrUpdateScheduledQueryRule.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"ruleName": "perf",
66
"api-version": "2021-02-01-preview",
77
"parameters": {
8-
"location": "Global",
8+
"location": "eastus",
99
"properties": {
1010
"description": "Performance rule",
1111
"severity": 4,
@@ -56,7 +56,10 @@
5656
"key11": "value11",
5757
"key12": "value12"
5858
}
59-
}
59+
},
60+
"autoMitigate": true,
61+
"checkWorkspaceAlertsStorageConfigured": true,
62+
"skipQueryValidation": true
6063
}
6164
}
6265
},
@@ -67,7 +70,7 @@
6770
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf",
6871
"name": "perf",
6972
"type": "microsoft.insights/scheduledqueryrules",
70-
"location": "Global",
73+
"location": "eastus",
7174
"tags": {},
7275
"properties": {
7376
"description": "Performance rule",
@@ -119,7 +122,11 @@
119122
"key11": "value11",
120123
"key12": "value12"
121124
}
122-
}
125+
},
126+
"autoMitigate": true,
127+
"isWorkspaceAlertsStorageConfigured": true,
128+
"checkWorkspaceAlertsStorageConfigured": true,
129+
"skipQueryValidation": true
123130
}
124131
}
125132
},
@@ -129,7 +136,7 @@
129136
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf",
130137
"name": "perf",
131138
"type": "microsoft.insights/scheduledqueryrules",
132-
"location": "Global",
139+
"location": "eastus",
133140
"tags": {},
134141
"properties": {
135142
"description": "Performance rule",
@@ -181,7 +188,11 @@
181188
"key11": "value11",
182189
"key12": "value12"
183190
}
184-
}
191+
},
192+
"autoMitigate": true,
193+
"isWorkspaceAlertsStorageConfigured": true,
194+
"checkWorkspaceAlertsStorageConfigured": true,
195+
"skipQueryValidation": true
185196
}
186197
}
187198
}

specification/monitor/resource-manager/Microsoft.Insights/preview/2021-02-01-preview/examples/createOrUpdateScheduledQueryRuleResourceGroup.json

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"ruleName": "heartbeat",
66
"api-version": "2021-02-01-preview",
77
"parameters": {
8-
"location": "Global",
8+
"location": "eastus",
99
"properties": {
1010
"description": "Health check rule",
1111
"severity": 4,
@@ -42,7 +42,10 @@
4242
"key11": "value11",
4343
"key12": "value12"
4444
}
45-
}
45+
},
46+
"autoMitigate": true,
47+
"checkWorkspaceAlertsStorageConfigured": true,
48+
"skipQueryValidation": true
4649
}
4750
}
4851
},
@@ -53,7 +56,7 @@
5356
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/heartbeat",
5457
"name": "heartbeat",
5558
"type": "microsoft.insights/scheduledqueryrules",
56-
"location": "Global",
59+
"location": "eastus",
5760
"tags": {},
5861
"properties": {
5962
"description": "Health check rule",
@@ -91,7 +94,11 @@
9194
"key11": "value11",
9295
"key12": "value12"
9396
}
94-
}
97+
},
98+
"autoMitigate": true,
99+
"isWorkspaceAlertsStorageConfigured": true,
100+
"checkWorkspaceAlertsStorageConfigured": true,
101+
"skipQueryValidation": true
95102
}
96103
}
97104
},
@@ -139,7 +146,11 @@
139146
"key11": "value11",
140147
"key12": "value12"
141148
}
142-
}
149+
},
150+
"autoMitigate": true,
151+
"isWorkspaceAlertsStorageConfigured": true,
152+
"checkWorkspaceAlertsStorageConfigured": true,
153+
"skipQueryValidation": true
143154
}
144155
}
145156
}

specification/monitor/resource-manager/Microsoft.Insights/preview/2021-02-01-preview/examples/createOrUpdateScheduledQueryRuleSubscription.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"ruleName": "perf",
66
"api-version": "2021-02-01-preview",
77
"parameters": {
8-
"location": "Global",
8+
"location": "eastus",
99
"properties": {
1010
"description": "Performance rule",
1111
"severity": 4,
@@ -59,7 +59,10 @@
5959
"key11": "value11",
6060
"key12": "value12"
6161
}
62-
}
62+
},
63+
"autoMitigate": true,
64+
"checkWorkspaceAlertsStorageConfigured": true,
65+
"skipQueryValidation": true
6366
}
6467
}
6568
},
@@ -70,7 +73,7 @@
7073
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf",
7174
"name": "perf",
7275
"type": "microsoft.insights/scheduledqueryrules",
73-
"location": "Global",
76+
"location": "eastus",
7477
"tags": {},
7578
"properties": {
7679
"description": "Performance rule",
@@ -125,7 +128,11 @@
125128
"key11": "value11",
126129
"key12": "value12"
127130
}
128-
}
131+
},
132+
"autoMitigate": true,
133+
"isWorkspaceAlertsStorageConfigured": true,
134+
"checkWorkspaceAlertsStorageConfigured": true,
135+
"skipQueryValidation": true
129136
}
130137
}
131138
},
@@ -135,7 +142,7 @@
135142
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf",
136143
"name": "perf",
137144
"type": "microsoft.insights/scheduledqueryrules",
138-
"location": "Global",
145+
"location": "eastus",
139146
"tags": {},
140147
"properties": {
141148
"description": "Performance rule",
@@ -190,7 +197,11 @@
190197
"key11": "value11",
191198
"key12": "value12"
192199
}
193-
}
200+
},
201+
"autoMitigate": true,
202+
"isWorkspaceAlertsStorageConfigured": true,
203+
"checkWorkspaceAlertsStorageConfigured": true,
204+
"skipQueryValidation": true
194205
}
195206
}
196207
}

specification/monitor/resource-manager/Microsoft.Insights/preview/2021-02-01-preview/examples/getScheduledQueryRule.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf",
1313
"name": "perf",
1414
"type": "microsoft.insights/scheduledqueryrules",
15-
"location": "Global",
15+
"location": "eastus",
1616
"tags": {},
1717
"properties": {
1818
"description": "Performance rule",
@@ -64,7 +64,11 @@
6464
"key11": "value11",
6565
"key12": "value12"
6666
}
67-
}
67+
},
68+
"autoMitigate": true,
69+
"isWorkspaceAlertsStorageConfigured": true,
70+
"checkWorkspaceAlertsStorageConfigured": true,
71+
"skipQueryValidation": true
6872
}
6973
}
7074
}

specification/monitor/resource-manager/Microsoft.Insights/preview/2021-02-01-preview/examples/listScheduledQueryRulesByResourceGroup.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf",
1414
"name": "perf",
1515
"type": "microsoft.insights/scheduledqueryrules",
16-
"location": "Global",
16+
"location": "eastus",
1717
"tags": {},
1818
"properties": {
1919
"description": "Performance rule",
@@ -68,14 +68,18 @@
6868
"key11": "value11",
6969
"key12": "value12"
7070
}
71-
}
71+
},
72+
"autoMitigate": true,
73+
"isWorkspaceAlertsStorageConfigured": true,
74+
"checkWorkspaceAlertsStorageConfigured": true,
75+
"skipQueryValidation": true
7276
}
7377
},
7478
{
7579
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/heartbeat",
7680
"name": "heartbeat",
7781
"type": "microsoft.insights/scheduledqueryrules",
78-
"location": "Global",
82+
"location": "eastus",
7983
"tags": {},
8084
"properties": {
8185
"description": "Health check rule",
@@ -113,7 +117,11 @@
113117
"key11": "value11",
114118
"key12": "value12"
115119
}
116-
}
120+
},
121+
"autoMitigate": true,
122+
"isWorkspaceAlertsStorageConfigured": true,
123+
"checkWorkspaceAlertsStorageConfigured": true,
124+
"skipQueryValidation": true
117125
}
118126
}
119127
]

specification/monitor/resource-manager/Microsoft.Insights/preview/2021-02-01-preview/examples/listScheduledQueryRulesBySubscription.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf",
1313
"name": "perf",
1414
"type": "microsoft.insights/scheduledqueryrules",
15-
"location": "Global",
15+
"location": "eastus",
1616
"tags": {},
1717
"properties": {
1818
"description": "Performance rule",
@@ -67,14 +67,18 @@
6767
"key11": "value11",
6868
"key12": "value12"
6969
}
70-
}
70+
},
71+
"autoMitigate": true,
72+
"isWorkspaceAlertsStorageConfigured": true,
73+
"checkWorkspaceAlertsStorageConfigured": true,
74+
"skipQueryValidation": true
7175
}
7276
},
7377
{
7478
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/MyResourceGroupName2/providers/microsoft.insights/scheduledqueryrules/heartbeat",
7579
"name": "heartbeat",
7680
"type": "microsoft.insights/scheduledqueryrules",
77-
"location": "Global",
81+
"location": "eastus",
7882
"tags": {},
7983
"properties": {
8084
"description": "Health check rule",
@@ -112,7 +116,11 @@
112116
"key11": "value11",
113117
"key12": "value12"
114118
}
115-
}
119+
},
120+
"autoMitigate": true,
121+
"isWorkspaceAlertsStorageConfigured": true,
122+
"checkWorkspaceAlertsStorageConfigured": true,
123+
"skipQueryValidation": true
116124
}
117125
}
118126
]

specification/monitor/resource-manager/Microsoft.Insights/preview/2021-02-01-preview/examples/patchScheduledQueryRule.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/heartbeat",
1818
"name": "heartbeat",
1919
"type": "microsoft.insights/scheduledqueryrules",
20-
"location": "Global",
20+
"location": "eastus",
2121
"tags": {},
2222
"properties": {
2323
"description": "Health check rule",
@@ -55,7 +55,11 @@
5555
"key11": "value11",
5656
"key12": "value12"
5757
}
58-
}
58+
},
59+
"autoMitigate": true,
60+
"isWorkspaceAlertsStorageConfigured": true,
61+
"checkWorkspaceAlertsStorageConfigured": true,
62+
"skipQueryValidation": true
5963
}
6064
}
6165
}

0 commit comments

Comments
 (0)