|
| 1 | +{ |
| 2 | + "parameters": { |
| 3 | + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", |
| 4 | + "resourceGroupName": "Default-NotificationRules", |
| 5 | + "actionGroupName": "SampleActionGroup", |
| 6 | + "api-version": "2022-06-01", |
| 7 | + "actionGroup": { |
| 8 | + "location": "Global", |
| 9 | + "tags": {}, |
| 10 | + "properties": { |
| 11 | + "groupShortName": "sample", |
| 12 | + "enabled": true, |
| 13 | + "emailReceivers": [ |
| 14 | + { |
| 15 | + "name": "John Doe's email", |
| 16 | + "emailAddress": "[email protected]", |
| 17 | + "useCommonAlertSchema": false |
| 18 | + }, |
| 19 | + { |
| 20 | + "name": "Jane Smith's email", |
| 21 | + "emailAddress": "[email protected]", |
| 22 | + "useCommonAlertSchema": true |
| 23 | + } |
| 24 | + ], |
| 25 | + "smsReceivers": [ |
| 26 | + { |
| 27 | + "name": "John Doe's mobile", |
| 28 | + "countryCode": "1", |
| 29 | + "phoneNumber": "1234567890" |
| 30 | + }, |
| 31 | + { |
| 32 | + "name": "Jane Smith's mobile", |
| 33 | + "countryCode": "1", |
| 34 | + "phoneNumber": "0987654321" |
| 35 | + } |
| 36 | + ], |
| 37 | + "webhookReceivers": [ |
| 38 | + { |
| 39 | + "name": "Sample webhook 1", |
| 40 | + "serviceUri": "http://www.example.com/webhook1", |
| 41 | + "useCommonAlertSchema": true |
| 42 | + }, |
| 43 | + { |
| 44 | + "name": "Sample webhook 2", |
| 45 | + "serviceUri": "http://www.example.com/webhook2", |
| 46 | + "useCommonAlertSchema": true, |
| 47 | + "useAadAuth": true, |
| 48 | + "objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", |
| 49 | + "identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", |
| 50 | + "tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" |
| 51 | + } |
| 52 | + ], |
| 53 | + "itsmReceivers": [ |
| 54 | + { |
| 55 | + "name": "Sample itsm", |
| 56 | + "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", |
| 57 | + "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", |
| 58 | + "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", |
| 59 | + "region": "westcentralus" |
| 60 | + } |
| 61 | + ], |
| 62 | + "azureAppPushReceivers": [ |
| 63 | + { |
| 64 | + "name": "Sample azureAppPush", |
| 65 | + "emailAddress": "[email protected]" |
| 66 | + } |
| 67 | + ], |
| 68 | + "automationRunbookReceivers": [ |
| 69 | + { |
| 70 | + "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", |
| 71 | + "runbookName": "Sample runbook", |
| 72 | + "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", |
| 73 | + "isGlobalRunbook": false, |
| 74 | + "name": "testRunbook", |
| 75 | + "serviceUri": "<serviceUri>", |
| 76 | + "useCommonAlertSchema": true |
| 77 | + } |
| 78 | + ], |
| 79 | + "voiceReceivers": [ |
| 80 | + { |
| 81 | + "name": "Sample voice", |
| 82 | + "countryCode": "1", |
| 83 | + "phoneNumber": "1234567890" |
| 84 | + } |
| 85 | + ], |
| 86 | + "logicAppReceivers": [ |
| 87 | + { |
| 88 | + "name": "Sample logicApp", |
| 89 | + "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", |
| 90 | + "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", |
| 91 | + "useCommonAlertSchema": false |
| 92 | + } |
| 93 | + ], |
| 94 | + "azureFunctionReceivers": [ |
| 95 | + { |
| 96 | + "name": "Sample azureFunction", |
| 97 | + "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", |
| 98 | + "functionName": "HttpTriggerCSharp1", |
| 99 | + "httpTriggerUrl": "http://test.me", |
| 100 | + "useCommonAlertSchema": true |
| 101 | + } |
| 102 | + ], |
| 103 | + "armRoleReceivers": [ |
| 104 | + { |
| 105 | + "name": "Sample armRole", |
| 106 | + "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", |
| 107 | + "useCommonAlertSchema": true |
| 108 | + } |
| 109 | + ], |
| 110 | + "eventHubReceivers": [ |
| 111 | + { |
| 112 | + "name": "Sample eventHub", |
| 113 | + "eventHubNameSpace": "testEventHubNameSpace", |
| 114 | + "eventHubName": "testEventHub", |
| 115 | + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", |
| 116 | + "tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" |
| 117 | + } |
| 118 | + ] |
| 119 | + } |
| 120 | + } |
| 121 | + }, |
| 122 | + "responses": { |
| 123 | + "200": { |
| 124 | + "headers": {}, |
| 125 | + "body": { |
| 126 | + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", |
| 127 | + "type": "Microsoft.Insights/ActionGroups", |
| 128 | + "name": "SampleActionGroup", |
| 129 | + "location": "Global", |
| 130 | + "tags": {}, |
| 131 | + "properties": { |
| 132 | + "groupShortName": "sample", |
| 133 | + "enabled": true, |
| 134 | + "emailReceivers": [ |
| 135 | + { |
| 136 | + "name": "John Doe's email", |
| 137 | + "emailAddress": "[email protected]", |
| 138 | + "status": "Enabled", |
| 139 | + "useCommonAlertSchema": false |
| 140 | + }, |
| 141 | + { |
| 142 | + "name": "Jane Smith's email", |
| 143 | + "emailAddress": "[email protected]", |
| 144 | + "status": "Enabled", |
| 145 | + "useCommonAlertSchema": true |
| 146 | + } |
| 147 | + ], |
| 148 | + "smsReceivers": [ |
| 149 | + { |
| 150 | + "name": "John Doe's mobile", |
| 151 | + "countryCode": "1", |
| 152 | + "phoneNumber": "1234567890", |
| 153 | + "status": "Enabled" |
| 154 | + }, |
| 155 | + { |
| 156 | + "name": "Jane Smith's mobile", |
| 157 | + "countryCode": "1", |
| 158 | + "phoneNumber": "0987654321", |
| 159 | + "status": "Enabled" |
| 160 | + } |
| 161 | + ], |
| 162 | + "webhookReceivers": [ |
| 163 | + { |
| 164 | + "name": "Sample webhook 1", |
| 165 | + "serviceUri": "http://www.example.com/webhook1", |
| 166 | + "useCommonAlertSchema": true |
| 167 | + }, |
| 168 | + { |
| 169 | + "name": "Sample webhook 2", |
| 170 | + "serviceUri": "http://www.example.com/webhook2", |
| 171 | + "useCommonAlertSchema": true, |
| 172 | + "useAadAuth": true, |
| 173 | + "objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", |
| 174 | + "identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", |
| 175 | + "tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" |
| 176 | + } |
| 177 | + ], |
| 178 | + "itsmReceivers": [ |
| 179 | + { |
| 180 | + "name": "Sample itsm", |
| 181 | + "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", |
| 182 | + "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", |
| 183 | + "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", |
| 184 | + "region": "westcentralus" |
| 185 | + } |
| 186 | + ], |
| 187 | + "azureAppPushReceivers": [ |
| 188 | + { |
| 189 | + "name": "Sample azureAppPush", |
| 190 | + "emailAddress": "[email protected]" |
| 191 | + } |
| 192 | + ], |
| 193 | + "automationRunbookReceivers": [ |
| 194 | + { |
| 195 | + "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", |
| 196 | + "runbookName": "Sample runbook", |
| 197 | + "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", |
| 198 | + "isGlobalRunbook": false, |
| 199 | + "name": "testRunbook", |
| 200 | + "serviceUri": "<serviceUri>", |
| 201 | + "useCommonAlertSchema": true |
| 202 | + } |
| 203 | + ], |
| 204 | + "voiceReceivers": [ |
| 205 | + { |
| 206 | + "name": "Sample voice", |
| 207 | + "countryCode": "1", |
| 208 | + "phoneNumber": "1234567890" |
| 209 | + } |
| 210 | + ], |
| 211 | + "logicAppReceivers": [ |
| 212 | + { |
| 213 | + "name": "Sample logicApp", |
| 214 | + "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", |
| 215 | + "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", |
| 216 | + "useCommonAlertSchema": false |
| 217 | + } |
| 218 | + ], |
| 219 | + "azureFunctionReceivers": [ |
| 220 | + { |
| 221 | + "name": "Sample azureFunction", |
| 222 | + "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", |
| 223 | + "functionName": "HttpTriggerCSharp1", |
| 224 | + "httpTriggerUrl": "<httpTriggerUrl>", |
| 225 | + "useCommonAlertSchema": true |
| 226 | + } |
| 227 | + ], |
| 228 | + "armRoleReceivers": [ |
| 229 | + { |
| 230 | + "name": "Sample armRole", |
| 231 | + "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", |
| 232 | + "useCommonAlertSchema": true |
| 233 | + } |
| 234 | + ], |
| 235 | + "eventHubReceivers": [ |
| 236 | + { |
| 237 | + "name": "Sample eventHub", |
| 238 | + "eventHubNameSpace": "testEventHubNameSpace", |
| 239 | + "eventHubName": "testEventHub", |
| 240 | + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", |
| 241 | + "tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84", |
| 242 | + "useCommonAlertSchema": false |
| 243 | + } |
| 244 | + ] |
| 245 | + } |
| 246 | + } |
| 247 | + }, |
| 248 | + "201": { |
| 249 | + "headers": {}, |
| 250 | + "body": { |
| 251 | + "id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-NotificationRules/providers/microsoft.insights/actionGroups/SampleActionGroup", |
| 252 | + "type": "Microsoft.Insights/ActionGroups", |
| 253 | + "name": "SampleActionGroup", |
| 254 | + "location": "Global", |
| 255 | + "tags": {}, |
| 256 | + "properties": { |
| 257 | + "groupShortName": "sample", |
| 258 | + "enabled": true, |
| 259 | + "emailReceivers": [ |
| 260 | + { |
| 261 | + "name": "John Doe's email", |
| 262 | + "emailAddress": "[email protected]", |
| 263 | + "status": "Enabled", |
| 264 | + "useCommonAlertSchema": false |
| 265 | + }, |
| 266 | + { |
| 267 | + "name": "Jane Smith's email", |
| 268 | + "emailAddress": "[email protected]", |
| 269 | + "status": "Enabled", |
| 270 | + "useCommonAlertSchema": true |
| 271 | + } |
| 272 | + ], |
| 273 | + "smsReceivers": [ |
| 274 | + { |
| 275 | + "name": "John Doe's mobile", |
| 276 | + "countryCode": "1", |
| 277 | + "phoneNumber": "1234567890", |
| 278 | + "status": "Enabled" |
| 279 | + }, |
| 280 | + { |
| 281 | + "name": "Jane Smith's mobile", |
| 282 | + "countryCode": "1", |
| 283 | + "phoneNumber": "0987654321", |
| 284 | + "status": "Enabled" |
| 285 | + } |
| 286 | + ], |
| 287 | + "webhookReceivers": [ |
| 288 | + { |
| 289 | + "name": "Sample webhook 1", |
| 290 | + "serviceUri": "http://www.example.com/webhook1", |
| 291 | + "useCommonAlertSchema": true |
| 292 | + }, |
| 293 | + { |
| 294 | + "name": "Sample webhook 2", |
| 295 | + "serviceUri": "http://www.example.com/webhook2", |
| 296 | + "useCommonAlertSchema": true, |
| 297 | + "useAadAuth": true, |
| 298 | + "objectId": "d3bb868c-fe44-452c-aa26-769a6538c808", |
| 299 | + "identifierUri": "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", |
| 300 | + "tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84" |
| 301 | + } |
| 302 | + ], |
| 303 | + "itsmReceivers": [ |
| 304 | + { |
| 305 | + "name": "Sample itsm", |
| 306 | + "workspaceId": "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", |
| 307 | + "connectionId": "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", |
| 308 | + "ticketConfiguration": "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}", |
| 309 | + "region": "westcentralus" |
| 310 | + } |
| 311 | + ], |
| 312 | + "azureAppPushReceivers": [ |
| 313 | + { |
| 314 | + "name": "Sample azureAppPush", |
| 315 | + "emailAddress": "[email protected]" |
| 316 | + } |
| 317 | + ], |
| 318 | + "automationRunbookReceivers": [ |
| 319 | + { |
| 320 | + "automationAccountId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", |
| 321 | + "runbookName": "Sample runbook", |
| 322 | + "webhookResourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", |
| 323 | + "isGlobalRunbook": false, |
| 324 | + "name": "testRunbook", |
| 325 | + "serviceUri": "<serviceUri>", |
| 326 | + "useCommonAlertSchema": true |
| 327 | + } |
| 328 | + ], |
| 329 | + "voiceReceivers": [ |
| 330 | + { |
| 331 | + "name": "Sample voice", |
| 332 | + "countryCode": "1", |
| 333 | + "phoneNumber": "1234567890" |
| 334 | + } |
| 335 | + ], |
| 336 | + "logicAppReceivers": [ |
| 337 | + { |
| 338 | + "name": "Sample logicApp", |
| 339 | + "resourceId": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", |
| 340 | + "callbackUrl": "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", |
| 341 | + "useCommonAlertSchema": false |
| 342 | + } |
| 343 | + ], |
| 344 | + "azureFunctionReceivers": [ |
| 345 | + { |
| 346 | + "name": "Sample azureFunction", |
| 347 | + "functionAppResourceId": "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", |
| 348 | + "functionName": "HttpTriggerCSharp1", |
| 349 | + "httpTriggerUrl": "<httpTriggerUrl>", |
| 350 | + "useCommonAlertSchema": true |
| 351 | + } |
| 352 | + ], |
| 353 | + "armRoleReceivers": [ |
| 354 | + { |
| 355 | + "name": "Sample armRole", |
| 356 | + "roleId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", |
| 357 | + "useCommonAlertSchema": true |
| 358 | + } |
| 359 | + ], |
| 360 | + "eventHubReceivers": [ |
| 361 | + { |
| 362 | + "name": "Sample eventHub", |
| 363 | + "eventHubNameSpace": "testEventHubNameSpace", |
| 364 | + "eventHubName": "testEventHub", |
| 365 | + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", |
| 366 | + "tenantId": "68a4459a-ccb8-493c-b9da-dd30457d1b84", |
| 367 | + "useCommonAlertSchema": false |
| 368 | + } |
| 369 | + ] |
| 370 | + } |
| 371 | + } |
| 372 | + } |
| 373 | + } |
| 374 | +} |
0 commit comments