Web挂钩的Azure RM模板resourceId()

Web挂钩的Azure RM模板resourceId(),azure,azure-resource-manager,arm-template,Azure,Azure Resource Manager,Arm Template,我想通过ARM模板创建ActionGroup。我没有找到如何引用webhookResourceId { "apiVersion": "2019-06-01", "type": "microsoft.insights/actionGroups", "location": "Global", "name": "[variables('ActionGroupCallRunBook')]", "properties": { "enable

我想通过ARM模板创建ActionGroup。我没有找到如何引用webhookResourceId

{
     "apiVersion": "2019-06-01",
     "type": "microsoft.insights/actionGroups",
     "location": "Global",
     "name": "[variables('ActionGroupCallRunBook')]",
     "properties": {
        "enabled": true,
        "automationRunbookReceivers": [
           {
              "name": "[concat('webhook-',variables('ActionGroupCallRunBook'))]",
              "automationAccountId": "[resourceId('microsoft.insights/components', parameters('AzureTelemetryName'))]",
              "runbookName": "myRunbook",
              "webhookResourceId": "[resourceId('Microsoft.Automation/automationAccounts/webhooks'), parameters('WebHookOnRunBookName')]",
              "isGlobalRunbook": false,
              "useCommonAlertSchema": false
           }
        ]
     },
     "tags": {
        "displayName": "ActionGroupCallRunBook"
     }
  }

“webhookResourceId:“[resourceId('Microsoft.Automation/automationAccounts/webhooks'),参数('WebHookOnRunBookName')]”返回错误

是的,因为您必须像这样使用
resourceId()

resourceId('Microsoft.Automation/automationAccounts/webhooks', 'automationaccountname`, 'webhookname`)

阅读:

对,因为您必须使用
resourceId()
如下:

resourceId('Microsoft.Automation/automationAccounts/webhooks', 'automationaccountname`, 'webhookname`)
阅读: