CmdID

CmdID / az / az alerts-management / az alerts-management prometheus-rule-group

az alerts-management prometheus-rule-group update

Update a Prometheus rule group definition. Azure CLI extensions reference

1 example 8 options Its page in the Azure CLI extensions reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Update a Prometheus rule group definition.

az alerts-management prometheus-rule-group update -n TestPrometheusRuleGroup -g MyResourceGroup --tags key=valueIdentify
-nThe name of the rule group.
-gName of resource group.
--tagsResource tags.

Options

8 in the Azure CLI extensions reference
--cluster-nameApply rule to data from a specific cluster.
--descriptionRule group description.
--enabledEnable/disable rule group.
--intervalThe interval in which to run the Prometheus rule group represented in ISO 8601 duration format.
--name, -nThe name of the rule group.
--rulesDefines the rules in the Prometheus rule group.
--scopesTarget Azure Monitor workspaces resource ids.
--tagsResource tags.