PowerTip: Start Azure Automation Job from PowerShell

Doctor Scripto

Summary: Use Azure PowerShell cmdlets to launch a remote Azure Automation job.

Hey, Scripting Guy! Question How can I trigger an Azure Automation job from a regular computer?

Hey, Scripting Guy! Answer Use the Start-AzureAutomationRunbook cmdlet. For example, to trigger the runbook called 
           HSG-StopAzureVM that is attached to the HSG-AzureAutomation instance, run:

Start-AzureAutomationRunbook -Name HSG-ShutdownAzureVM -AutomationAccountName HSG-AzureAutomation

0 comments

Discussion is closed.

Feedback usabilla icon