-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Wrong documentation for conditions #26881
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamMonitoraz monitoraz monitoract-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-request
Milestone
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamMonitoraz monitoraz monitoract-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-request
Describe the bug
It should be adjusted to:
--condition "avg CpuPercentage > 90" --window-size 5m --evaluation-frequency 1m .
I have seen this syntax error in multiple documentation pages about az monitor metrics alert.
Related command
az monitor metrics alert
Errors
If typed into the CLI:
(BadRequest) Couldn't find a metric named Percentage CPU. Make sure the name is correct.
Code: BadRequest
Issue script & Debug output
(BadRequest) Couldn't find a metric named Percentage CPU. Make sure the name is correct.
Code: BadRequest
Expected behavior
Adjusted documentation.
Environment Summary
azure-cli 2.50.0
core 2.50.0
telemetry 1.0.8
Extensions:
ai-examples 0.2.5
ml 2.18.0
ssh 1.1.6
Dependencies:
msal 1.22.0
azure-mgmt-resource 23.1.0b2
Additional context
No response