导入 Azure 自动化中已提供的 Runbook 需要在 PowerShell 中使用 -Force
。虽然这对某些人有效,但对其他人来说却出现以下错误:
Import-AzureRmAutomationRunbook : BadRequest: Update runbook with definition of different runbook kind is not allowed
检查了有关运行手册类型等的所有内容,一切似乎都正常。如果我删除 Runbook,然后导入,然后重新导入(用 -Force 覆盖),那么我将不再收到上述消息。
但我需要能够“覆盖”Runbook 以保留 Webhook。
最佳答案
ISE/Automation Add-on 中存在错误,应该很快就会修复。暂时不要使用 ISE/Automation Add-on 上传 Runbook。用户门户或 PowerShell Import-AzureRmAutomationRunbook
来自 PowerShell(不是来自 ISE)。
关于azure-powershell - Azure 自动化 Runbook 导入失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38979235/