Azure / Azure/azure-cli

EvaluationFrequency cannot be greater than MuteActionsDuration

Open
#26,581 2 comments 0 reactions 1 assignee Claimed by @AllyW View on GitHub
act-observability-squad Auto-Assign Azure CLI Team customer-reported feature-request Monitor
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

Running `az monitor scheduled-query create`, specifying `--evaluation-frequency 1h` and _omitting_ `--mute-actions-duration`, returns `EvaluationFrequency cannot be greater than MuteActionsDuration`.

If we do not wish to mute actions for any duration, how could the evaluation frequency ever not be greater than the mute action duration?

### Related command

az monitor scheduled-query create

### Errors

InvalidRequestContent: The request content was invalid and could not be deserialized: 'EvaluationFrequency cannot be greater than MuteActionsDuration'

### Issue script & Debug output

n/a

### Expected behavior

The scheduled query to be created as specified.

### Environment Summary

azure-cli 2.49.0

core 2.49.0
telemetry 1.0.8

Extensions:
aks-preview 0.5.41
scheduled-query 0.2.2

Dependencies:
msal 1.20.0
azure-mgmt-resource 22.0.0

### Additional context

_No response_

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.