Azure / Azure/azure-powershell

[Feature]: New Parameter for Get-AzAutomationJob -EndTimeAfter

Open
#22,896 3 comments 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad Automation customer-reported feature-request Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Description of the new feature

Currently, with Get-AzAutomationJob, you can retrieve jobs that ended before a specific datetime, started after a specific datetime, or a combination of both. In a lot of ways, it would be very useful to get jobs that ended after a specific datetime. This could be extrapolated to the StartTime parameter as well, StartTimeBefore to get jobs that started before a specific datetime.

With current implementation, if you want to find all jobs that ended in the last hour, without knowing when they started, your stuck with pulling every Azure Automation job and filtering via where-object. You can probably make a best guess that the jobs probably haven't been running for more than 3 hours. That does cut down on the return time; however, it's imprecise and still lends itself to possible errors. It also would rely on where-object to properly filter the jobs.

### Proposed implementation details (optional)

Update current parameter names to better reflect what their returning, i.e. EndTimeBefore and StartTimeAfter.

In addition to this, add two more parameters for better filtering and opposites of the two above, i.e. EndTimeAfter and StartTimeBefore.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.