azureautomationazure-sql-databaserunbook

Azure Automation runbook stops for no reason


I created a runbook to process multiple partitions of my cube. I launched it and 3 hours later, it stops. There is no error message or warning and nothing in the output pane. The only message I have is this one

Exception The job was evicted and subsequently reached a Stopped state. The job cannot continue running

I have absolutely no idea of the reason why it stopped.

Any idea ?


Solution

  • Azure Automation runbook can only run for 3 hours.

    In order to share resources among all runbooks in the cloud, Azure Automation will temporarily unload any job after it has been running for three hours. During this time, jobs for PowerShell-based runbooks are stopped and are not be restarted. The job status shows Stopped. This type of runbook is always restarted from the beginning since they don't support checkpoints.

    https://learn.microsoft.com/en-us/azure/automation/automation-runbook-execution#fair-share