June 4th, 2015

PowerTip: Start Azure Automation Job from PowerShell

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.