CmdID / az / az monitor
az monitor scheduled-query
Commands to manage scheduled queries. Azure CLI extensions reference
5 commands 17 options Its page in the Azure CLI extensions reference
Commands
Options
--action-groupsAction Group resource Ids to invoke when the alert fires.--auto-mitigateThe flag that indicates whether the alert should be automatically resolved or not.--check-ws-alerts-storage, --cwasThe flag which indicates whether this scheduled query rule should be stored in the customer's storage.--condition, --location--condition-queryQuery deteils to replace the placeholders in --condition argument.--custom-propertiesThe properties of an alert payload.--descriptionFree-text description of the rule.--disabledDisable the scheduled query.--evaluation-frequencyFrequency with which to evaluate the rule in "##h##m##s" format.--mute-actions-duration, --madMute actions for the chosen period of time (in ISO 8601 duration format) after the alert is fired.--name, -nName of the scheduled query rule.--scopesSpace-separated list of scopes the rule applies to.--severitySeverity of the alert from 0 (critical) to 4 (verbose).--skip-query-validationThe flag which indicates whether the provided query should be validated or not.--tagsspace-separated tags: key[=value] [key[=value] ...].--target-resource-type, --typeThe resource type of the target resource(s) in scopes.--window-sizeTime over which to aggregate metrics in "##h##m##s" format.