az monitor scheduled-query is missing the optional parameter --override-query-time-range
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**Related command**
[az monitor scheduled-query create](https://learn.microsoft.com/en-us/cli/azure/monitor/scheduled-query?view=azure-cli-latest#az-monitor-scheduled-query-create)
[az monitor scheduled-query update](https://learn.microsoft.com/en-us/cli/azure/monitor/scheduled-query?view=azure-cli-latest#az-monitor-scheduled-query-update)
**Is your feature request related to a problem? Please describe.**
The schedule query create and update az cli commands are missing the property for `--override-query-time-range` which should ultimately create or update the `overrideQueryTimeRange` property of the alert rule json.

This property seems to exist in the [azure cmdlet](https://learn.microsoft.com/en-us/dotnet/api/azure.resourcemanager.monitor.scheduledqueryruledata.overridequerytimerange?view=azure-dotnet) so it would make sense that the az cli command should have it as well.
Like the cmdlet, this property should only apply for LogAlert rules.
**Describe the solution you'd like**
A new optional parameter named `--override-query-time-range` with a default value. This parameter could alternatively be short-handed with `-oqtr`.
Contributor guide
Assessment
This issue has not been assessed yet.