Azure / Azure/azure-powershell
[Feature]: New Parameter for Get-AzAutomationJob -EndTimeAfter
- 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
Assessment
This issue has not been assessed yet.