February 2nd, 2017

PowerTip: Get a list of suspended Azure Automation jobs

Doctor Scripto
Scripter

Summary: Cloud and Datacenter Management MVP, Thomas Rayner, shows how get a list of all your suspended Azure Automation jobs.

Hey, Scripting Guy! Question I think I have an Azure Automation job that is getting suspended for running too long. How can I verify this?

Hey, Scripting Guy! Answer You can use the Get-AzureRmAutomationJob cmdlet and its -Status flag to get this information. Here is an example:

Get-AzureRmAutomationJob -ResourceGroupName $ResourceGroupName -AutomationAccountName $AutomationAccountName -Status Suspended

You can also use other values like Finished, Running, and Starting in that place.

The Doctor

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.

Feedback