我需要使用 ARM 模板部署“microsoft.insights/actionGroups”类型的资源,但我遇到了一个问题。我的模板:
{
"apiVersion": "2019-06-01",
"type": "microsoft.insights/actionGroups",
"location": "Global",
"name": "[variables('ActionGroupName')]",
"tags": {
"displayName": "MyActionGroupName"
},
"properties": {
"groupShortName": "variables('ActionGroupShortName')",
"enabled": true,
"automationRunbookReceivers": [
{
"name": "MyRunbookRecieverName",
"automationAccountId": "[resourceId('microsoft.insights/components', parameters('AzureTelemetryName'))]",
"runbookName": "MyRunbook",
"webhookResourceId": "[resourceId('Microsoft.Automation/automationAccounts/webhooks', parameters('AzureAutomationName'), 'WebHookName')]",
"isGlobalRunbook": false
}
]
}
}
但是当我尝试部署时,我得到了这个错误:
New-AzureRmResourceGroupDeployment : 08:39:52 - 资源 microsoft.insights/actionGroups 'ActionGroupName' 失败,消息'{“代码”:“AutomationRunbookServiceUriIsNotValid”,“消息”:“AutomationRunbookServiceUriIsNotValid”
我查看了模板定义,并提到这WebhookReceiver.identifierUri
不是强制性的。
我究竟做错了什么?