Ich versuche, ein Webhook für Automation Runbook zu erstellen. Bisher habe ich folgendes erreicht:Erstellen Sie Azure Automation Runbook Webhook mithilfe von ARM-Vorlagen?
- erstellen Automation Konto
- Runbook erstellen
Hier ist die Vorlage, die ich verwende:
"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')]"
}
}
]
}
]
Ich bin nicht kann einen Webhook erstellen. Nach der Suche konnte ich das Template-Schema zum Erstellen des Runbooks auch nicht finden. Jede Hilfe wird geschätzt.
Vielen Dank im Voraus
Automatisierung unterstützt derzeit keine Webhooks in ARM-Vorlagen. Es wäre großartig, wenn Sie eine Feedbackanfrage für dieses Feature für das Automatisierungsteam senden können. https://feedback.azure.com/forums/246290-automation –