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
Examples
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
--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.