Skip to content

Commit

Permalink
Updated examples to use non-global locations and added new flags (Azu…
Browse files Browse the repository at this point in the history
…re#15094)

Co-authored-by: Avi Jerafi <avjerafi@microsoft.com>
  • Loading branch information
avjerafi and Avi Jerafi authored Jul 7, 2021
1 parent b41cb67 commit 036c2de
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"ruleName": "perf",
"api-version": "2021-02-01-preview",
"parameters": {
"location": "Global",
"location": "eastus",
"properties": {
"description": "Performance rule",
"severity": 4,
Expand Down Expand Up @@ -56,7 +56,10 @@
"key11": "value11",
"key12": "value12"
}
}
},
"autoMitigate": true,
"checkWorkspaceAlertsStorageConfigured": true,
"skipQueryValidation": true
}
}
},
Expand All @@ -67,7 +70,7 @@
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf",
"name": "perf",
"type": "microsoft.insights/scheduledqueryrules",
"location": "Global",
"location": "eastus",
"tags": {},
"properties": {
"description": "Performance rule",
Expand Down Expand Up @@ -119,7 +122,11 @@
"key11": "value11",
"key12": "value12"
}
}
},
"autoMitigate": true,
"isWorkspaceAlertsStorageConfigured": true,
"checkWorkspaceAlertsStorageConfigured": true,
"skipQueryValidation": true
}
}
},
Expand All @@ -129,7 +136,7 @@
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf",
"name": "perf",
"type": "microsoft.insights/scheduledqueryrules",
"location": "Global",
"location": "eastus",
"tags": {},
"properties": {
"description": "Performance rule",
Expand Down Expand Up @@ -181,7 +188,11 @@
"key11": "value11",
"key12": "value12"
}
}
},
"autoMitigate": true,
"isWorkspaceAlertsStorageConfigured": true,
"checkWorkspaceAlertsStorageConfigured": true,
"skipQueryValidation": true
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"ruleName": "heartbeat",
"api-version": "2021-02-01-preview",
"parameters": {
"location": "Global",
"location": "eastus",
"properties": {
"description": "Health check rule",
"severity": 4,
Expand Down Expand Up @@ -42,7 +42,10 @@
"key11": "value11",
"key12": "value12"
}
}
},
"autoMitigate": true,
"checkWorkspaceAlertsStorageConfigured": true,
"skipQueryValidation": true
}
}
},
Expand All @@ -53,7 +56,7 @@
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/heartbeat",
"name": "heartbeat",
"type": "microsoft.insights/scheduledqueryrules",
"location": "Global",
"location": "eastus",
"tags": {},
"properties": {
"description": "Health check rule",
Expand Down Expand Up @@ -91,7 +94,11 @@
"key11": "value11",
"key12": "value12"
}
}
},
"autoMitigate": true,
"isWorkspaceAlertsStorageConfigured": true,
"checkWorkspaceAlertsStorageConfigured": true,
"skipQueryValidation": true
}
}
},
Expand Down Expand Up @@ -139,7 +146,11 @@
"key11": "value11",
"key12": "value12"
}
}
},
"autoMitigate": true,
"isWorkspaceAlertsStorageConfigured": true,
"checkWorkspaceAlertsStorageConfigured": true,
"skipQueryValidation": true
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"ruleName": "perf",
"api-version": "2021-02-01-preview",
"parameters": {
"location": "Global",
"location": "eastus",
"properties": {
"description": "Performance rule",
"severity": 4,
Expand Down Expand Up @@ -59,7 +59,10 @@
"key11": "value11",
"key12": "value12"
}
}
},
"autoMitigate": true,
"checkWorkspaceAlertsStorageConfigured": true,
"skipQueryValidation": true
}
}
},
Expand All @@ -70,7 +73,7 @@
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf",
"name": "perf",
"type": "microsoft.insights/scheduledqueryrules",
"location": "Global",
"location": "eastus",
"tags": {},
"properties": {
"description": "Performance rule",
Expand Down Expand Up @@ -125,7 +128,11 @@
"key11": "value11",
"key12": "value12"
}
}
},
"autoMitigate": true,
"isWorkspaceAlertsStorageConfigured": true,
"checkWorkspaceAlertsStorageConfigured": true,
"skipQueryValidation": true
}
}
},
Expand All @@ -135,7 +142,7 @@
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf",
"name": "perf",
"type": "microsoft.insights/scheduledqueryrules",
"location": "Global",
"location": "eastus",
"tags": {},
"properties": {
"description": "Performance rule",
Expand Down Expand Up @@ -190,7 +197,11 @@
"key11": "value11",
"key12": "value12"
}
}
},
"autoMitigate": true,
"isWorkspaceAlertsStorageConfigured": true,
"checkWorkspaceAlertsStorageConfigured": true,
"skipQueryValidation": true
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf",
"name": "perf",
"type": "microsoft.insights/scheduledqueryrules",
"location": "Global",
"location": "eastus",
"tags": {},
"properties": {
"description": "Performance rule",
Expand Down Expand Up @@ -64,7 +64,11 @@
"key11": "value11",
"key12": "value12"
}
}
},
"autoMitigate": true,
"isWorkspaceAlertsStorageConfigured": true,
"checkWorkspaceAlertsStorageConfigured": true,
"skipQueryValidation": true
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf",
"name": "perf",
"type": "microsoft.insights/scheduledqueryrules",
"location": "Global",
"location": "eastus",
"tags": {},
"properties": {
"description": "Performance rule",
Expand Down Expand Up @@ -68,14 +68,18 @@
"key11": "value11",
"key12": "value12"
}
}
},
"autoMitigate": true,
"isWorkspaceAlertsStorageConfigured": true,
"checkWorkspaceAlertsStorageConfigured": true,
"skipQueryValidation": true
}
},
{
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/heartbeat",
"name": "heartbeat",
"type": "microsoft.insights/scheduledqueryrules",
"location": "Global",
"location": "eastus",
"tags": {},
"properties": {
"description": "Health check rule",
Expand Down Expand Up @@ -113,7 +117,11 @@
"key11": "value11",
"key12": "value12"
}
}
},
"autoMitigate": true,
"isWorkspaceAlertsStorageConfigured": true,
"checkWorkspaceAlertsStorageConfigured": true,
"skipQueryValidation": true
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf",
"name": "perf",
"type": "microsoft.insights/scheduledqueryrules",
"location": "Global",
"location": "eastus",
"tags": {},
"properties": {
"description": "Performance rule",
Expand Down Expand Up @@ -67,14 +67,18 @@
"key11": "value11",
"key12": "value12"
}
}
},
"autoMitigate": true,
"isWorkspaceAlertsStorageConfigured": true,
"checkWorkspaceAlertsStorageConfigured": true,
"skipQueryValidation": true
}
},
{
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/MyResourceGroupName2/providers/microsoft.insights/scheduledqueryrules/heartbeat",
"name": "heartbeat",
"type": "microsoft.insights/scheduledqueryrules",
"location": "Global",
"location": "eastus",
"tags": {},
"properties": {
"description": "Health check rule",
Expand Down Expand Up @@ -112,7 +116,11 @@
"key11": "value11",
"key12": "value12"
}
}
},
"autoMitigate": true,
"isWorkspaceAlertsStorageConfigured": true,
"checkWorkspaceAlertsStorageConfigured": true,
"skipQueryValidation": true
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/heartbeat",
"name": "heartbeat",
"type": "microsoft.insights/scheduledqueryrules",
"location": "Global",
"location": "eastus",
"tags": {},
"properties": {
"description": "Health check rule",
Expand Down Expand Up @@ -55,7 +55,11 @@
"key11": "value11",
"key12": "value12"
}
}
},
"autoMitigate": true,
"isWorkspaceAlertsStorageConfigured": true,
"checkWorkspaceAlertsStorageConfigured": true,
"skipQueryValidation": true
}
}
}
Expand Down

0 comments on commit 036c2de

Please sign in to comment.