Skip to content

Commit a6bc856

Browse files
Merge pull request #50168 from kainawroth/kainawroth-alerts
Changing instructions based on updated Azure portal UI
2 parents 4167f35 + 18ccb47 commit a6bc856

19 files changed

+85
-64
lines changed
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.incident-response-with-alerting-on-azure.7-exercise-activity-log-alerts
3-
metadata:
4-
title: Exercise - Use an activity log alert and an action group to notify users about events in your Azure infrastructure
5-
description: In this exercise, you create an activity log alert and set up an action group that sends you an email.
6-
ms.date: 09/14/2023
7-
author: AbbyMSFT
8-
ms.author: abbyweisberg
9-
ms.topic: unit
10-
title: Exercise -Use an activity log alert and an action group to notify users about events in your Azure infrastructure
11-
durationInMinutes: 10
12-
interactive: bash
13-
azureSandbox: true
14-
content: |
15-
[!include[](includes/8-exercise-activity-log-alerts.md)]
16-
1+
### YamlMime:ModuleUnit
2+
uid: learn.incident-response-with-alerting-on-azure.7-exercise-activity-log-alerts
3+
metadata:
4+
title: Exercise - Use an activity log alert and an action group to notify users about events in your Azure infrastructure
5+
description: In this exercise, you create an activity log alert and set up an action group that sends you an email.
6+
ms.date: 09/14/2023
7+
author: AbbyMSFT
8+
ms.author: abbyweisberg
9+
ms.topic: unit
10+
title: Exercise - Use an activity log alert and an action group to notify users about events in your Azure infrastructure
11+
durationInMinutes: 10
12+
interactive: bash
13+
azureSandbox: true
14+
content: |
15+
[!include[](includes/8-exercise-activity-log-alerts.md)]
16+

learn-pr/azure/incident-response-with-alerting-on-azure/includes/8-exercise-activity-log-alerts.md

Lines changed: 69 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -6,77 +6,89 @@ Your goal is to set up a Linux virtual machine (VM) and create an activity log m
66

77
1. Sign in to the [Azure portal](https://portal.azure.com/learn.docs.microsoft.com?azure-portal=true) with the same account you used to activate the sandbox.
88

9+
1. Select your user icon in the top right corner, then go to **Switch directory** and **Switch** to **Microsoft Learn Sandbox**.
10+
911
1. On the Azure portal resource menu or under **Azure services**, select **Monitor**. The **Overview** pane for Monitor appears.
1012

1113
1. In the Monitor menu, select **Alerts**. The **Monitor | Alerts** pane appears.
1214

13-
1. On the command bar, select **Create +** and select **Alert rule**. The **Create an alert rule** pane appears with the **Scope** section open and the **Select a resource** pane open on the right-hand side of your screen.
15+
1. On the command bar, select **+ Create** and select **Alert rule** from the dropdown list. The **Create an alert rule** pane appears in the background with the **Scope** section open, and the **Select a resource** overlay pane on the right-hand side of your screen.
16+
17+
1. On the **Select a resource** overlay pane in the **Resource types** dropdown list, search for and select **Virtual machines**.
1418

15-
1. In the **Resource type** dropdown list, search for and select **Virtual machines**.
19+
1. You want an alert when any virtual machine in your resource group is deleted. Select the box for the Sandbox resource group **learn-53f3da3b-946a-4d7d-974e-6ac534868856**, then select **Apply**.
1620

17-
1. You want an alert when any virtual machine in your resource group is deleted. Select the box for the **<rgn>[sandbox resource group name]</rgn>** resource group, then select **Apply**.
21+
:::image type="content" source="../media/8-alert-resource.png" lightbox="../media/8-alert-resource.png" alt-text="Screenshot that shows the 'Select a resource' pane with the sandbox resource group selected.":::
1822

19-
:::image type="content" source="../media/7-alert-select-resource.png" alt-text="Screenshot that shows the Select a scope pane with the sandbox resource group selected.":::
23+
1. Back on the **Create an alert rule** pane, the Scope target resource now shows **All Virtual machines**. Select the **Condition** tab.
2024

21-
1. The **Create an alert rule** pane reappears with the Scope target resource showing **All Virtual machines**. Select the **Condition** tab. The **Select a signal** pane appears.
25+
1. On the **Condition** tab, select the **See all signals** link, which opens the **Select a signal** overlay pane to the right-hand side of your screen.
2226

23-
1. Select the **See all signals** link, then search for and select **Delete Virtual Machine (Virtual Machines)**. Select **Apply**
27+
1. On the **Select a signal** overlay pane, search for and select **Delete Virtual Machine (Virtual Machines)**, then select **Apply**
2428

25-
1. The **Create an alert rule** pane reappears. You want to receive alerts of all types, so leave **Alert logic** settings at their default of **All selected**. Leave the **Create an alert rule** pane open for the next section.
29+
:::image type="content" source="../media/8-alert-signal.png" lightbox="../media/8-alert-signal.png" alt-text="Screenshot that shows the 'Select a signal' pane with 'Delete Virtual Machine (Virtual Machines)' selected.":::
30+
31+
1. You're back on the **Create an alert rule** pane. To receive alerts of all types, leave **Alert logic** settings at their default of **All selected**. Leave the **Create an alert rule** pane open for the next section.
2632

2733
## Add an email alert action
2834

2935
For the previous Azure Monitor alert, you didn't add any actions. You just viewed triggered alerts in the Azure portal. Actions let you send an email for notifications, to trigger an Azure function, or to call a webhook. In this exercise, we're adding an email alert when VMs are deleted.
3036

31-
1. On the **Create an alert rule** pane, select the **Next: Actions** button, and select **Use action groups**.
37+
1. On the **Create an alert rule** pane, select the **Next: Actions** button.
38+
39+
1. Close the **Use quick actions (preview)** overlay pane. Then, select **Use action group** on the **Actions** tab. The **Select action groups** overlay pane appears.
3240

33-
1. Select **Create action group** in the **Select action group** pane. The **Create an action group** pane appears.
41+
1. On the **Select action groups** overlay pane, select **+ Create action group**.
3442

3543
1. On the **Basics** tab, enter the following values for each setting.
3644

37-
| Setting | Value |
38-
|---------|---------|
39-
| **Project details** |
40-
| Subscription | **Concierge Subscription** |
41-
| Resource group | From the dropdown list, select your sandbox resource group |
42-
| Region | **Global** (default) |
43-
| **Instance details** |
44-
| Action group name | **Alert the operations team** |
45-
| Display name | **AlertOps** |
45+
| Setting | Value |
46+
|----------------------|-------------------------------------------------------------|
47+
| **Project details** | |
48+
| Subscription | **Concierge Subscription** |
49+
| Resource group | From the dropdown list, select your sandbox resource group. |
50+
| Region | **Global** (default) |
51+
| **Instance details** | |
52+
| Action group name | **Alert the operations team** |
53+
| Display name | **AlertOps** |
4654

47-
1. Select **Next: Notifications**, and enter the following values for each setting.
55+
:::image type="content" source="../media/8-action-group-basics.png" lightbox="../media/8-action-group-basics.png" alt-text="Screenshot that shows the 'Create action group' pane with all Project details and Instance details entered.":::
4856

49-
| Setting | Value |
50-
|---------|---------|
57+
1. Select **Next: Notifications** and enter the following values for each setting.
58+
59+
| Setting | Value |
60+
|-------------------|-----------------------------------------|
5161
| Notification type | Select **Email/SMS message/Push/Voice** |
52-
| Name | **VM was deleted** |
62+
| Name | **VM was deleted** |
63+
64+
1. The **Email/SMS message/Push/Voice** overlay pane appears automatically on the right-hand side of the screen. If it didn't, select the **Edit** pencil icon.
5365

54-
1. The **Email/SMS message/Push/Voice** pane appears automatically. If it didn't, select the **Edit** pencil icon.
66+
1. On the **Email/SMS message/Push/Voice** overlay pane, select **Email**. Then, in the **Email** field, enter your email address and select **OK**.
5567

56-
1. Select **Email**, and in the **Email** box, enter your email address, and then select **OK**.
68+
:::image type="content" source="../media/8-alert-action.png" lightbox="../media/8-alert-action.png" alt-text="Screenshot that shows the 'Email/SMS message/Push/Voice' pane with Email selected.":::
5769

58-
1. Select **Review + create** to validate your input.
70+
1. Back on the **Create action group** pane, select **Review + create** to validate your input.
5971

6072
1. Select **Create**.
6173

6274
1. The **Create an alert rule** pane reappears. Select **Next: Details** and enter the following values for each setting.
6375

64-
| Setting | Value |
65-
|---------|---------|
66-
| Alert rule name | **VM was deleted** |
67-
| Description | **A VM in your resource group was deleted** |
76+
| Setting | Value |
77+
|-----------------|---------------------------------------------|
78+
| Alert rule name | **VM was deleted** |
79+
| Description | **A VM in your resource group was deleted** |
6880

6981
1. Expand the **Advanced options** section and confirm that **Enable alert rule upon creation** is selected.
7082

71-
:::image type="content" source="../media/7-all-vm-alert-details.png" alt-text="Screenshot that shows a completed alert details section.":::
83+
:::image type="content" source="../media/8-alert-details.png" lightbox="../media/8-alert-details.png" alt-text="Screenshot that shows a completed alert details section.":::
7284

7385
1. Select **Review + create** to validate your input, then select **Create**.
7486

7587
Recipients added to the configured action group (operations team) receive a notification:
7688

77-
- When they're added to the action group
78-
- When the alert is activated
79-
- When the alert is triggered
89+
* When they're added to the action group
90+
* When the alert is activated
91+
* When the alert is triggered
8092

8193
It can take up to five minutes for an activity log alert rule to become active. In this exercise, if you delete the virtual machine before the rule deploys, the alert rule might not be triggered. Because of this delay, you might not see the same results in the following steps after you delete the VM.
8294

@@ -92,6 +104,8 @@ To trigger an alert, you need to delete the Linux VM that you created in the pre
92104

93105
1. Enter *delete* to confirm deletion and select **Delete**.
94106

107+
:::image type="content" source="../media/8-delete-vm.png" lightbox="../media/8-delete-vm.png" alt-text="Screenshot that shows the 'Delete Resources' pane with the VM selected.":::
108+
95109
1. In the title bar, select the **Notifications** icon and wait until **vm1** is successfully deleted.
96110

97111
## View your activity log alerts in Azure Monitor
@@ -100,13 +114,13 @@ In the exercise, you set up an Ubuntu VM and created an activity log rule to det
100114

101115
1. You should receive a notification email that reads, **Important notice: Azure Monitor alert VM was deleted was activated...** If not, open your email program and look for an email from [email protected].
102116

103-
![Screenshot of alert email.](../media/7-alert-email.png)
117+
:::image type="content" source="../media/8-alert-email.png" lightbox="../media/8-alert-email.png" alt-text="Screenshot that shows the email you receive when an alert fires.":::
104118

105119
1. On the Azure portal resource menu, select **Monitor**, and then select **Alerts** in the menu on the left.
106120

107121
1. You should have three verbose alerts that were generated by deleting **vm1**.
108122

109-
![Screenshot that shows all alerts with Name, Severity, Alert condition, User response and Fired time.](../media/7-vm-rg-deleted-alert.png)
123+
:::image type="content" source="../media/8-alerts-pane.png" lightbox="../media/8-alerts-pane.png" alt-text="Screenshot that shows all alerts with Name, Severity, Alert condition, User response and Fired time.":::
110124

111125
1. Select the name of one of the alerts (For example, **VM was deleted**). An **Alert details** pane appears that shows more details about the event.
112126

@@ -115,28 +129,35 @@ In the exercise, you set up an Ubuntu VM and created an activity log rule to det
115129
We're going to schedule a one-time, overnight, planned maintenance. It starts in the evening and continues until the next morning.
116130

117131
1. In the Azure portal resource menu, select **Monitor**, select **Alerts** in the menu on the left, and select **Alert processing rules** in the menu bar.
132+
118133
1. Select **+ Create**.
134+
119135
1. Check the box for your sandbox resource group as the scope of the alert processing rule, then select **Apply**.
136+
137+
:::image type="content" source="../media/8-alert-processing-rule-resource.png" lightbox="../media/8-alert-processing-rule-resource.png" alt-text="Screenshot that shows the selected resource group for the alert processing rule.":::
138+
120139
1. Select **Next: Rule settings**, then select **Suppress notifications**.
140+
121141
1. Select **Next: Scheduling**.
142+
122143
1. By default, the rule works all the time, unless you disable it. We're going to define the rule to suppress notifications for a one-time overnight planned maintenance.
123144
Enter these settings for the scheduling of the alert processing rule:
124145

125-
| Setting | Value |
126-
|---------|---------|
127-
|Apply the rule |At a specific time|
128-
|Start|Enter today's date at 10pm.|
129-
|End|Enter tomorrow's date at 7am.|
130-
|Time zone|Select the local timezone.|
146+
| Setting | Value |
147+
|----------------|-------------------------------|
148+
| Apply the rule | At a specific time |
149+
| Start | Enter today's date at 10pm. |
150+
| End | Enter tomorrow's date at 7am. |
151+
| Time zone | Select the local timezone. |
131152

132-
:::image type="content" source="../media/8-alert-processing-rule-schedule.png" alt-text="Screenshot of the scheduling section of an alert processing rule." lightbox="../media/8-alert-processing-rule-schedule.png":::
153+
:::image type="content" source="../media/8-alert-processing-rule-schedule.png" lightbox="../media/8-alert-processing-rule-schedule.png" alt-text="Screenshot of the scheduling section of an alert processing rule.":::
133154

134155
1. Select **Next: Details** and enter these settings:
135156

136-
| Setting | Value |
137-
|---------|---------|
138-
|Resource group |Select your sandbox resource group. |
139-
|Rule name|**Planned Maintenance**|
140-
|Description|**Suppress notifications during planned maintenance.**|
157+
| Setting | Value |
158+
|----------------|--------------------------------------------------------|
159+
| Resource group | Select your sandbox resource group. |
160+
| Rule name | **Planned Maintenance** |
161+
| Description | **Suppress notifications during planned maintenance.** |
141162

142-
1. Select **Review + create** to validate your input, then select **Create**.
163+
1. Select **Review + create** to validate your input, then select **Create**.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)