Microsoft has just released a new cmdlet in the realm of Azure automation.

Start-AutomationRunbook

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.

Syntax is:

Start-AutomationRunbook [-Name] <string> [-Parameters <IDictionary>] [-RunOn <string>] [<CommonParameters>]

How to start a runbook:

Start-AutomationRunbook – Name "Test-JSONOutput"

Start a runbook on a hybrid worker

Start-AutomationRunbook – Name "Test-JSONOutput" –RunOn "Denmark"

NB! The cmdlet can only be used inside runbooks

Great little addition to the built in cmdlets in Azure automation!