D5 · Monitoring

Alerts and Notifications

alerts notify you when conditions of interest occur on your resources — metric thresholds, state changes or specific events in logs. The AZ-104 exam evaluates the creation and configuration of alert rules, alert types and action groups.

Alert Rules — anatomy

An Alert Rule continuously monitors data and creates an alert when defined conditions are met. It consists of: Scope (what to monitor), Condition (when to fire), Actions (what to do) and Alert Details (how it's named and documented).

Parts of an Alert Rule

Scope

Which resource(s) to monitor. It can be a specific resource, a resource group, or an entire subscription. For log alerts: the .

Condition (Signal + Logic)

Which signal to monitor (metric, log, activity log, health) and under what condition to fire (threshold, time window, operator).

Actions

What to do when it fires: Action Group with notifications and/or automations.

Alert Details

Name, description, severity (0-4) and whether the alert is created enabled or disabled.

Alert states

FiredThe condition has been met — the alert is active. If there is an action group, notifications are sent.
ResolvedThe condition is no longer met — the alert closes automatically. You can be notified on resolve.
NewState of the alert instance when it fires (before being reviewed).
AcknowledgedAn operator has noted the alert but has not resolved it.
ClosedThe operator has manually marked the alert as resolved.

Alert types

Metric Alerts

Based on Azure Monitor metric values. Frequent evaluation (every minute). Low latency.

  • •Threshold: Static (fixed value) or Dynamic (ML detects anomalies automatically)
  • •Aggregation: Average, Max, Min, Total, Count — over the evaluation window
  • •Evaluation period: how many periods to evaluate (e.g. 5 of the last 10 minutes)
  • •Operator: >, >=, <, <=, ==, !=
  • •Multi-resource: a single rule monitors all VMs in a subscription

Log Search Alerts

Based on results of KQL queries in Log Analytics. Higher latency (minimum 1 minute, typically 5-15 min). For complex patterns.

  • •Query: KQL that runs periodically
  • •Measure: Number of Results (count rows) or Metric Measurement (value of a column)
  • •Threshold: number of results that fires the alert
  • •Frequency: how often the query runs (5 min minimum)
  • •Time window: time range evaluated by the query (e.g. last 30 min)

Activity Log Alerts

Based on Activity Log events (operations on resources). For detecting configuration changes or service events.

  • •Triggered by: create/update/delete of resources, changes, Service Health events
  • •Near real-time: fires within seconds of the event
  • •No evaluation frequency — event-driven
  • •Typical case: alert when an NSG is deleted or a firewall rule is changed

Service Health Alerts

Notify of incidents, planned maintenance and health advisories for Azure services affecting your subscription/region.

  • •Types: Service Issues, Planned Maintenance, Health Advisories, Security Advisories
  • •Filter by region and specific service
  • •No additional data source configuration required
  • •Recommendation: always configure them to be informed of outages

Alert severities

LevelNameDescriptionExample
Sev 0CriticalService down — immediate impact on productionVM down, database unreachable
Sev 1ErrorSerious problem requiring urgent attentionCPU >95% sustained, disk >90%
Sev 2WarningSituation that could turn into an errorCPU >80%, high DB connections
Sev 3InformationalInformational event — no immediate impactStart of planned maintenance
Sev 4VerboseDetailed information for diagnosticsDebug logs, tracing events

Action Groups — configuration

Best practices

  • →Create reusable action groups by severity level (Critical-AG, Warning-AG)
  • →Include multiple notification types (email + SMS) for redundancy
  • →Configure a webhook or Logic App to create automatic tickets in ITSM
  • →Test the action group before production — "Test" button in the portal
  • →Action groups are regional but actions execute globally

Action group limits

• Max 5 action groups per alert rule

• Max 1000 emails per hour (rate limiting)

• SMS: 1 per 5 minutes per phone number

• Voice: 1 per 5 minutes per number

• Webhook: automatic retries on failure (exponential backoff)

Alert Processing Rules

Alert Processing Rules (formerly called Action Rules) let you modify the behavior of already-fired alerts: suppress notifications during maintenance windows, add additional action groups or filter which alerts receive which actions.

Suppression for maintenance

Silences all alerts for certain resources during a scheduled window. E.g. silencing CPU alerts during OS updates from 00:00-04:00.

Add action group

Adds an additional action group to alerts meeting certain criteria, without modifying existing alert rules. Useful for notifying multiple teams.

Assign owner

Automatically assigns alerts to a team or person based on the resource, severity or affected resource group.

Smart Groups

Smart Groups automatically group related alerts using ML, reducing alert noise. Instead of receiving 50 individual alerts from different VMs during an incident, you receive 1 Smart Group with all of them related.

  • • Automatic grouping by: trigger time, alert type, affected resource, similar condition
  • • The Smart Group resolves when all its alerts resolve
  • • Allows managing complex incidents in a unified way
  • • Visible in Azure Monitor → Alerts → Smart Groups

Did you get this topic?

Test what you just learned

A team wants to receive an alert when the CPU of any VM in a subscription exceeds 90% for more than 5 consecutive minutes. Which alert type and configuration is most efficient?

Ready to test "Alerts and Notifications"?

Put what you learned to the test with original AZ-104 exam questions.

Start AZ-104 mock exam

Unlimited mock exams with the Pro plan

Log in to track your progress.