Home › Studies › AZ-104 › Monitor & Maintain › Alerts & Action Groups

Alerts & Action Groups

Alert rules · alert states · action groups · alert processing rules · roles

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Alert rules and types

An alert rule is the resources to monitor, a signal and a condition. When the condition is met, an alert fires and triggers its action groups. With several monitored resources, the condition is evaluated and alerts fire per resource.

TypeUse it forNotes
MetricNumeric metrics. Fast, because it uses precomputed metric dataMultiple conditions (up to 5, single resource), dimensions and dynamic thresholds. Microsoft's pages differ on the default state: the types page says stateful by default, the create page says unticking Automatically resolve alerts makes it stateless. One rule can monitor many resources of the same type in the same region, but not VM guest metrics or VM network metrics
Log searchSpecific data in logs, or advanced logic. Runs a KQL query at a set frequency; can measure table rows or a numeric columnPoor for "no data" detection: use a metric alert for heartbeat-style absence
Activity logA matching activity log event, such as a VM deleted or a role assignedIncludes Service Health and Resource Health alerts. All activity log alerts are stateless and never auto-resolve
Smart detection, PrometheusOther alert types in the overviewNot covered further here

Service Health alerts are about platform-wide service issues. Resource Health alerts are about the health of one resource. Both are activity log alerts.

Alert states

Create a metric alert rule

Action groups

Notification typesAction types
Email, email Azure Resource Manager role, SMS, Azure app push, voiceAutomation runbook, Event Hubs, Functions, ITSM, Logic Apps, Secure webhook, Webhook

Alert processing rules

Alert processing rules were called "action rules" (resource type Microsoft.AlertsManagement/actionRules). They change how alerts are handled after they fire. A normal alert rule generates alerts; a processing rule does not.

Rule typeEffectNotes
Suppress notificationsRemoves action groups from fired alertsThe alerts still fire and stay visible in the portal, Resource Graph and the API. Suppression has priority over "apply action groups"
Apply action groupAdds action groups to fired alertsUse it for alerts whose source can't specify action groups, such as Azure Backup alerts and VM insights guest health alerts

Limits

ItemValue
Alert retention30 days
Action groups per alert rule5
Email passcode validity30 minutes
Conditions per metric alert ruleUp to 5 (single resource)
Stateful metric alert resolves after3 consecutive checks without the condition
Alert processing rule delayUp to 30 minutes to take effect
Values per processing-rule filter5
Webhook retriesUp to 5 retries (delays of 5, 20 and 40 seconds), then none for 15 minutes

CLI and PowerShell

TaskAzure CLIPowerShell
Create an alert processing ruleaz extension add --name alertsmanagement, then az monitor alert-processing-rule create --name N --rule-type AddActionGroups --scopes /subscriptions/SUB1 --action-groups <id> --resource-group RGSet-AzAlertProcessingRule -Name N -AlertProcessingRuleType AddActionGroups -Scope /subscriptions/SUB1 -ActionGroupId <id> -ResourceGroupName RG
List, show, update, delete processing rulesaz monitor alert-processing-rule list|show|update|deleteGet-, Update-, Remove-AzAlertProcessingRule
Create a metric alertaz monitor metrics alert create --name N --resource-group RG --scopes <id> --condition "avg Percentage CPU > 90". Required: --condition, --name, --resource-group, --scopes. Optional include --action, --auto-mitigate, --description. The condition string is an illustrationNot covered on the page
Create an action groupaz monitor action-group create --name N --resource-group RG plus receiver options such as --action, --arm-role-receivers, --automation-runbook-receivers, --azure-app-push-receivers, --azure-function-receiversNot covered on the page
Create an action group as codeARM resource Microsoft.Insights/actionGroupsSame template

Exam Tips

Tick each tip once you can answer it without looking.

“Silence notifications for all VMs in a resource group every Sunday night” → Alert processing rule (suppression, recurring schedule) scoped to the resource group. Trap: Disabling an alert rule stops alerts firing at all, not just the notifications.

“Azure Backup alerts must email the ops team, and the alerts have no action group option” → Alert processing rule that applies an action group. Trap: Backup alerts come from a source that can't specify action groups, so there is no alert rule to edit for this.

“Is a suppressed alert still visible?” → Yes: it still fires and is listed; only the action groups are removed. Trap: Suppression doesn't stop the alert being created.

“A suppression rule and an apply-action-group rule both match an alert” → Suppression wins. Trap: Suppression has priority over applying action groups.

“Alert processing rule should also silence Service Health alerts” → Not possible: processing rules don't affect Service Health alerts.

“Processing rule scope includes resources in a second subscription” → Not allowed: the scope must be in the same subscription as the rule.

“Alert when any of 50 VMs in one region has CPU above 90%, with one rule” → Metric alert rule scoped to the VMs. Trap: A multi-resource rule needs the same resource type and the same region.

“Alert on guest memory across many VMs with one metric alert rule” → Not supported: multi-resource metric alert rules don't support VM guest metrics.

“Alert when a VM is deleted” → Activity log alert. Trap: A metric alert watches a numeric metric, not an activity log event.

“Activity log alert stays Fired forever” → Expected: activity log alerts are stateless and never auto-resolve; set the user response to Closed.

“Alert logic based on a KQL query over logs” → Log search alert. Trap: A metric alert uses precomputed metric data, not a query.

“Detect that a machine stopped sending heartbeats” → Metric alert. Trap: Log search alerts are poor at detecting "no data".

“Same notifications for 20 alert rules” → Reuse one action group. Trap: A rule can use at most 5 action groups, and many rules can share one.

“Call a webhook protected by Microsoft Entra ID” → Secure webhook. Trap: A plain Webhook uses basic authentication with the credentials in the URI.

“Email receiver added, but no email arrives” → The address wasn't verified: enter the one-time passcode within 30 minutes of saving (resend if needed).

“User must create alert rules but not manage other resources” → Monitoring Contributor. Trap: Monitoring Reader can only view.

“Rename a metric alert rule” → Not possible: a metric alert rule can't be renamed, so delete it and recreate it.

“Dynamic thresholds on a rule with two conditions” → Not supported: dynamic thresholds can't be used when the rule has multiple conditions.

“A metric alert resolves on its own” → Stateful: it resolves after 3 consecutive checks without the condition. Trap: Unticking Automatically resolve alerts makes it stateless.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Azure MonitorInsights →