PowerTip: Get a list of suspended Azure Automation jobs

Doctor Scripto

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

0 comments

Discussion is closed.

Feedback usabilla icon