azure-powershell - Azure 自动化 Runbook 导入失败

标签 azure-powershell azure-automation

导入 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/

相关文章:

Powershell显示存储帐户不存在

azure - 术语 'New-AzureRmServiceBusNamespace' 未被识别为 cmdlet、函数、脚本文件或可操作程序的名称

powershell - New-AzureWebsite 错误 "Value cannot be null"参数 ServerFarm

powershell - 循环遍历 Azure 对象并筛选标签

powershell - 从Runbook执行时,Invoke-AzureRmVMRunCommand在 “Output”字段中不返回任何内容

azure - 如何在 Azure 自动化帐户中将 AzureRM 模块替换为 Az

powershell - 在调用 Add-AzureCertificate 之前确定 .pfx 文件是否需要密码

powershell - 使用 Get-AzureStorageBlobContent 从 Azure 下载 - 内容出现乱码

azure - 将 Azure 存储中的 Azure 自动化帐户列入白名单,以便从 blob 读取压缩模块并上传到 azure 自动化模块中

azure - 作业暂停运行 Login-AzureRmAccount 以使用 Azure AutomationAccounts 系统托管标识登录