Microsoft has just released a new cmdlet in the realm of Azure automation.
The cmdlet is designed to start runbook jobs in the same account as the current running runbook, without having to define any endpoints/credentials/etc.
<strong>Start-AutomationRunbook [-Name] <string> [-Parameters <IDictionary>] [-RunOn <string>] [<CommonParameters>]
How to start a runbook:
<strong>Start-AutomationRunbook – Name "Test-JSONOutput"</strong>
Start a runbook on a hybrid worker
<strong>Start-AutomationRunbook – Name "Test-JSONOutput" –RunOn "Denmark"</strong>
NB! The cmdlet can only be used inside runbooks
Great little addition to the built in cmdlets in Azure automation!