Skip to content

az monitor scheduled-query create condition #22212

Description

Need more details about the format of the condition argument. What is the purpose of the bolded text below on the condition :

--condition "count 'Placeholder_1' > 360 resource id _ResourceID at least 1 violations out of 5 aggregated points"

The example in the documentation is written as:

az monitor scheduled-query create -g {rg} -n {name1} --scopes {vm_id} --condition "count 'Placeholder_1' > 360 resource id _ResourceID at least 1 violations out of 5 aggregated points" --condition-query Placeholder_1="union Event, Syslog | where TimeGenerated > ago(1h) | where EventLevelName=='Error' or SeverityLevel=='err'" --description "Test rule"

By trial an error I noticed that the following doesn't work: --condition "count 'Placeholder_1' > 360 "

Is it just a comment? can it be changed in any way?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions