Azure Runbook-无法停止作业

时间:2018-10-26 04:27:54

标签: azure azure-automation azure-runbook

我的PowerShell Azure Runbook处于运行状态。

通过Azure门户按“停止”会导致错误消息:

  

“作业无法停止”。

使用PowerShell cmdlet Stop-AzureRMAutomationJob会导致错误消息:

  

“ InternalServerError:{”消息“:”发生错误。“}

documentation看来,该作业将在3小时后停止,但是还有其他方法可以停止Runbook作业或处理这种情况吗?

2 个答案:

答案 0 :(得分:0)

此问题已由Microsoft产品组解决,应该立即修复。

答案 1 :(得分:0)

首先,您应该找到状态为失败的作业ID ...

Get-AzureRmAutomationJob -ResourceGroupName $ RG -AutomationAccountName $ AA |其中{$ .RunbookName -eq“ runbook name”-和$ .status -eq“ Failed”}

然后停止运行手册

Stop-AzureRmAutomationJob -ResourceGroupName $ RG -AutomationAccountName $ AA -id JOBID

相关问题