Exercise - Create an action group
This guided project consists of the following exercises:
- Create an action group
- Create a Service Health alert
- Create an Activity Log alert
In this exercise, you create an action group with email notification and send a test message to verify delivery. Action groups are the notification backbone for Azure alerts—you set them up once and reuse them across multiple alert rules.
This exercise includes the following tasks:
- Prepare the environment
- Create the action group
- Test the action group
Outcome: An action group configured to send email notifications when alerts fire.
Tip
Pause after each major action and confirm the page status before moving on. This habit prevents compounding mistakes.
Task 1: Prepare the environment
Set up your Azure environment before you begin. You create a resource group to organize the monitoring resources for this project together.
Warning
This project creates Azure resources that are free or near-free, but you should still complete the clean-up unit when you're done to avoid unintended expenses.
- Sign in to the Azure portal with an account that has permissions to create monitoring resources.
- In the portal search bar, search for Resource groups and select Resource groups.
- Select + Create. Name the resource group rg-gp-monitoring-alerts, choose your preferred region, and select Review + create then Create.
- Note the email address you want to use for alert notifications.
Task 2: Create the action group
Create an action group that defines who gets notified and how. Action groups are reusable notification channels that you attach to alert rules, so the same team can be notified by multiple different alerts.
- In the portal search bar, search for Monitor and select Monitor.
- In the left menu, select Alerts.
- Select Action groups from the top menu bar.
- Select + Create.
- On the Basics tab, select rg-gp-monitoring-alerts as the resource group.
- For Action group name, enter ag-gp-ops-email.
- For Display name, enter OpsEmail.
- Select the Notifications tab.
- For Notification type, select Email/SMS message/Push/Voice.
- For Name, enter ops-team-email.
- In the panel that opens, check Email and enter your email address. Select OK.
- Select Review + create and then select Create.
Note
Validation step: Confirm the ag-gp-ops-email action group is created with email notification configured.
Note
Each exercise includes validation steps like this one. Track your results as you go—you'll review them all in the validation unit at the end of this module.
Task 3: Test the action group
Send a test notification to verify the action group delivers email successfully. In production environments, you should always test notification channels before relying on them for incident response.
- After the action group is created, select ag-gp-ops-email from the action groups list to open it.
- In the top menu bar, select Test action group.
- For Select sample type, choose Service Health.
- Make sure the ops-team-email notification is checked.
- Select Test.
- Wait for the test results to appear. Confirm the Status column shows Success.
- Check your email inbox for the test notification from Azure. Open the email and review its content—this is the same format you would receive during a real incident.
Note
Validation step: Confirm the test notification status shows Success and you received the email notification.