Add native support for job concurrency control
Certain runbooks must not have more than one concurrent job instance running at any time. Although we have some workarounds using helper runbooks / job queue tables, including this natively as we had it in SCORCH would really help, as the workarounds do not guarantee the behavior 100%
Thank you for the feedback. The product team has noted this suggestion and will consider it if resourcing allows.
Danny Cherry commented
I would like to add my desire to see this become a reality within Azure Automation. I have implemented some code to workaround the issue, but I have certain runbooks on Hybrid Workers that I would prefer only ran 1 at a time in order to avoid potential issues or heavy resource utilization.
I want to point out a few sample scripts that the Automation team has written for this as a workaround.
For PowerShell script runbooks, you can use:
For PowerShell Workflow runbooks, you can use: https://www.powershellgallery.com/packages/Wait-RunbookLock/1.0/DisplayScript
You will want to call these runbooks inline in the runbook that you would like to control job concurrency from.