1
我正在嘗試爲Automation Runbook創建一個Webhook。到目前爲止,我已經實現了以下內容:使用ARM模板創建Azure自動化Runbook Webhook?
- 創建自動化帳戶
- 創建運行手冊
下面是我使用的模板:
"resources": [
{
"name": "[parameters('accountName')]",
"type": "Microsoft.Automation/automationAccounts",
"apiVersion": "2015-10-31",
"location": "[parameters('location')]",
"dependsOn": [ ],
"tags": { },
"properties": {
"sku": {
"name": "[parameters('sku')]"
}
},
"resources": [
{
"name": "[variables('runbookName')]",
"type": "runbooks",
"apiVersion": "2015-10-31",
"location": "[parameters('location')]",
"dependsOn": [
"[concat('Microsoft.Automation/automationAccounts/', parameters('accountName'))]"
],
"tags": { },
"properties": {
"runbookType": "Script",
"logProgress": "false",
"logVerbose": "false",
"publishContentLink": {
"uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-automation-runbook-getvms/Runbooks/Get-AzureVMTutorial.ps1",
"version": "1.0.0.0"
},
"webhook": {
"name": "test"
}
}
,"resources": [
{
"apiVersion": "2015-10-31",
"type": "webhooks",
"name": "testwebhook",
"dependsOn": [
"[concat('Microsoft.Automation/automationAccounts/', parameters('accountName'), '/runbooks/', variables('runbookName'))]"
]
}
]
},
{
"name": "[parameters('credentialName')]",
"type": "credentials",
"apiVersion": "2015-10-31",
"location": "[parameters('location')]",
"dependsOn": [
"[concat('Microsoft.Automation/automationAccounts/', parameters('accountName'))]"
],
"tags": { },
"properties": {
"userName": "[parameters('userName')]",
"password": "[parameters('password')]"
}
}
]
}
]
我不是能夠創建一個webhook。到目前爲止,搜索之後,我也找不到用於創建Runbook的模板模式。任何幫助表示讚賞。
在此先感謝
自動化目前不支持ARM模板中的webhooks。如果您可以爲自動化團隊提交此功能的反饋請求以進行跟蹤,那將是非常好的。 https://feedback.azure.com/forums/246290-automation –