Lesson 4 of 5 Monitoring Resources with Azure Monitor

Configuring Alerts, Action Groups and Alert Processing Rules

This lesson explains alert rule types, action groups and alert processing rules, and how they work together.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish between metric, log search, activity log, Service Health and Resource Health alerts.
  • Describe the notifications and actions in an action group.
  • Explain how alert processing rules suppress or route alerts.

Alert rules

An alert rule defines the scope (one or more resources, a resource group or a subscription), the condition (a signal and logic), the actions (action groups) and details such as severity (Sev 0 Critical to Sev 4 Verbose) and whether the alert resolves automatically. The signal types are summarized below.

Alert typeSignalExample
MetricA platform or custom metric against a static or dynamic thresholdPercentage CPU above 85% for 15 minutes
Log searchA KQL query run on a scheduleMore than 5 failed sign-ins per user in 10 minutes
Activity logAn activity log eventA VM or network security group is deleted
Service HealthAzure incidents, planned maintenance, advisories for chosen services and regionsAn outage affects App Service in West Europe
Resource HealthHealth status changes of specific resourcesA VM becomes unavailable
Smart detectionApplication Insights anomaliesFailure rate anomalies

Metric alerts can use dynamic thresholds, which learn the metric's normal pattern and fire on deviations, and can monitor many resources of the same type in a region with one rule, with separate alerts per resource. Fired alerts move through the states New, Acknowledged and Closed, and stateful metric alerts resolve automatically when the condition is no longer met.

Sort into groups

Which alert type?

Exam skills 5.1.4

Choose the alert signal type for each requirement.

Log in to try this activity Interactive activities are free with an account.

Action groups

An action group is a reusable collection of notifications and actions that many alert rules, budgets and Advisor alerts can share. Notifications are email, SMS, Azure mobile app push, voice call and email Azure Resource Manager role (for example every Owner of the subscription). Actions are Automation runbooks, Azure Functions, Logic Apps, webhooks (including secure webhooks with Microsoft Entra authentication), ITSM connectors and Event Hubs. Rate limits apply, for example to SMS and voice notifications, and the common alert schema gives every action the same payload format.

Select all that apply

What an action group can do

Exam skills 5.1.4

Select every notification or action that an action group supports.

Log in to try this activity Interactive activities are free with an account.

Alert processing rules

An alert processing rule acts on alerts after they fire, at a scope such as a subscription or resource group, optionally filtered by alert rule, severity, resource type or other properties, and optionally limited to a schedule (once, daily, weekly). It has one of two effects. Suppression stops action groups from running, for example during a planned maintenance window or outside business hours; the alerts still fire and appear in the portal. Apply action group adds an action group to every matching alert, so that one rule sends all Sev 0 and Sev 1 alerts in a subscription to the on-call team without editing each alert rule.

Alert rule
DefinesWhen an alert fires
ExampleCPU above 85%
Choose when Detecting a condition
Action group
DefinesWho is notified and what runs
ExampleEmail ops, run a runbook
Choose when Reusing a response
Alert processing rule
DefinesHow fired alerts are handled
ExampleSuppress Saturday 22:00-02:00
Choose when Maintenance windows and routing at scale

The following diagram shows an alert processing rule's suppression window over a weekly patching period.

Silencing notifications during weekly patching without losing the alerts. An alert processing rule scoped to RG-Prod with the suppression action and a weekly recurring schedule on Saturdays from 22:00 to 02:00 stops action groups from running, while the alerts still fire and remain visible. Nothing has to be changed each week.
The alerts shown are illustrative.
Scenario questions

Routing and silencing alerts

Exam skills 5.1.4

Choose how to handle fired alerts at scale.

Log in to try this activity Interactive activities are free with an account.
Worked example

A maintenance window

Patching restarts all VMs in resource group RG-Prod every Saturday from 22:00 to 02:00, which triggers dozens of availability alerts and pages the on-call engineer. Alerts must still be recorded, but no notifications should be sent during the window, and nobody should need to remember to change anything each week. What should you configure?

Create an alert processing rule scoped to RG-Prod with the suppression action and a weekly recurring schedule on Saturdays from 22:00 to 02:00. Alerts still fire and are visible, but action groups do not run during the window. Disabling the alert rules would need manual work each week and would lose the alert records.

Check yourself

Do alerts still fire while an alert processing rule suppresses them?

Show answer

Yes. They fire and appear in the portal, but their action groups do not run.

Exam Tips

Remember for the exam

  • Alert rules detect; action groups respond; alert processing rules adjust fired alerts.
  • Suppress notifications during maintenance with a scheduled alert processing rule.
  • Azure outages affecting your services: Service Health alerts.
  • Dynamic thresholds learn normal behaviour instead of using a fixed value.