Menu: runbooks, process, how-to, NIS2, wireless

How-to H10

Status
Published
Last reviewed
Written

Set up Azure Service Health alerts

Get told about Azure incidents, maintenance and advisories for your subscriptions and regions before users tell you, on a channel that still works when Microsoft 365 is down.

Before you start

  • Scope: Service Health alerts are per subscription. List every subscription you run something in.
  • Rights: Microsoft lists read permission on the target, write permission on the resource group that will hold the alert rule, and read permission on any action group you attach.
  • Who gets told: at least one phone number for SMS and one email address outside your Microsoft 365 tenant. An alert that lands only in a mailbox in the tenant is lost when Microsoft 365 is part of the outage.
  • Microsoft 365 is separate. Azure Service Health does not cover Exchange Online or Teams. For those, set up the Microsoft 365 admin center’s own service health email notifications (view service health), and keep the public status page from Is it us or them? bookmarked on your phone.

Steps

1. Create the alert in the portal

In the Azure portal, open Service Health and, in the Service Issues panel, select Create service health alert. Set the scope to the subscription, then the services, regions and event types (service issues, planned maintenance, health advisories, security advisories). Microsoft’s tip is to select all services and all regions: Service Health only alerts for events that affect regions where your services run, so selecting everything does not add alerts for unused ones (Microsoft Learn: create Service Health alerts).

2. Attach an action group that reaches people outside the tenant

In the same wizard, create or choose an action group with an SMS to the on-call phone and an email to an outside address. Or with the Azure CLI, example names:

az monitor action-group create --name ag-ops-oncall --resource-group rg-monitoring --short-name opsoncall --action sms oncall-sms <country-code> <phone-number> --action email oncall-mail <outside-address@example.org>

Source: az monitor action-group create, Microsoft Learn

The short name is limited in length and appears in the SMS. Keep it readable.

3. Or create the alert rule with the CLI

az monitor activity-log alert create --name svc-health-all --resource-group rg-monitoring --scope /subscriptions/<subscription-id> --condition category=ServiceHealth --action-group ag-ops-oncall

Source: az monitor activity-log alert create, Microsoft Learn

Microsoft’s default for this command is a rule on the ServiceHealth category with no action group, so always add --action-group. Repeat per subscription.

4. Check that people really receive it

On the Action groups page, select the group, then Test, choose a sample type and the notification types, and run it. Microsoft: test emails carry “Test” in the subject, and the result shows Success or Failed (Action groups). Ask each person to confirm by phone that the SMS and the email arrived.

5. List what exists, every quarter

az monitor activity-log alert list --resource-group rg-monitoring --output table

Source: az monitor activity-log alert list, Microsoft Learn

New subscriptions and new regions need the alert too.

What good and bad look like

  • Good: every subscription has an enabled Service Health alert with an action group, and the last test notification reached a phone and an outside mailbox.
  • Bad: a subscription with no alert, an action group that emails only addresses in your tenant, or a phone number that belongs to someone who has left.
  • Bad: an email receiver never confirmed its verification code. Microsoft: an unverified receiver cannot receive alert or test notifications once verification is enforced.

Traps

  • Resource Health is different. Microsoft: Service Health notifications do not send alerts for Resource Health events. If you want to hear when one of your own resources is unhealthy, that is a separate alert.
  • Email only. In the outage you most care about, your own mail may be down.
  • Alert fatigue. Planned maintenance and advisories can be frequent. If SMS gets ignored, make two rules: service issues to SMS and email, the rest to email only.
  • The account that created the rules leaves. Alert rules keep working, but nobody knows they exist. Record them in your documentation (P4).

Undo

Delete a rule you no longer want:

az monitor activity-log alert delete --name svc-health-all --resource-group rg-monitoring

Source: az monitor activity-log alert delete, Microsoft Learn

Record it

Example included. The row marked Example is made up to show the format. Delete it and add your own rows.

Date Subscription Alert rule Action group receivers Test received? Initials
Example: 2026-12-09 Production svc-health-all SMS on-call, outside mailbox Yes, both AB

Sources

Was this useful?

Esc
↑ ↓ moveEnter openEsc close