Add Get-AzureRmAutomationJob status filters for "active" and "inactive" runbooks
Currently the Get-AzureRmAutomationJob cmdlet provides the ability to filter on a specific status of jobs (e.g. "Running" or "Suspended" etc.). I would like to see two additional status options that represent a grouping of status selections such as "Active" which would encompass all the status selections where the job has not yet completed execution and perhaps something like "Inactive" that would represent all selections where the job has finished executing (e.g. "Completed", "Failed" or "Stopped").
Currently to achieve this I have to query for each of the status options that would make up an "active" job individually which then requires multiple queries and is inefficient.

Thanks for the feedback on this. We will look to see if we can add this in a future release of the cmdlet.
1 comment
-
Anonymous commented
could we just pass an array of status