You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: learn-pr/azure/incident-response-with-alerting-on-azure/includes/8-exercise-activity-log-alerts.md
+16-6Lines changed: 16 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,16 +16,18 @@ Your goal is to set up a Linux virtual machine (VM) and create an activity log m
16
16
17
17
1. On the **Select a resource** overlay pane in the **Resource types** dropdown list, search for and select **Virtual machines**.
18
18
19
-
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**.
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** (which you used in the previous exercise to create a VM), then select **Apply**.
20
20
21
-
:::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.":::
21
+
:::image type="content" source="../media/7-alert-resource.png" alt-text="Screenshot that shows the 'Select a resource' pane with the sandbox resource group selected.":::
22
22
23
23
1. Back on the **Create an alert rule** pane, the Scope target resource now shows **All Virtual machines**. Select the **Condition** tab.
24
24
25
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.
26
26
27
27
1. On the **Select a signal** overlay pane, search for and select **Delete Virtual Machine (Virtual Machines)**, then select **Apply**
28
28
29
+
:::image type="content" source="../media/7-alert-signal.png" alt-text="Screenshot that shows the 'Select a signal' pane with 'Delete Virtual Machine (Virtual Machines)' selected.":::
30
+
29
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.
30
32
31
33
## Add an email alert action
@@ -50,6 +52,8 @@ For the previous Azure Monitor alert, you didn't add any actions. You just viewe
50
52
| Action group name |**Alert the operations team**|
51
53
| Display name |**AlertOps**|
52
54
55
+
:::image type="content" source="../media/7-action-group-basics.png" alt-text="Screenshot that shows the 'Create action group' pane with with all Project details and Instance details entered.":::
56
+
53
57
1. Select **Next: Notifications** and enter the following values for each setting.
54
58
55
59
| Setting | Value |
@@ -61,6 +65,8 @@ For the previous Azure Monitor alert, you didn't add any actions. You just viewe
61
65
62
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**.
63
67
68
+
:::image type="content" source="../media/7-alert-action.png" alt-text="Screenshot that shows the 'Email/SMS message/Push/Voice' pane with Email selected.":::
69
+
64
70
1. Back on the **Create action group** pane, select **Review + create** to validate your input.
65
71
66
72
1. Select **Create**.
@@ -74,7 +80,7 @@ For the previous Azure Monitor alert, you didn't add any actions. You just viewe
74
80
75
81
1. Expand the **Advanced options** section and confirm that **Enable alert rule upon creation** is selected.
76
82
77
-
:::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/7-alert-details.png" alt-text="Screenshot that shows a completed alert details section.":::
78
84
79
85
1. Select **Review + create** to validate your input, then select **Create**.
80
86
@@ -98,6 +104,8 @@ To trigger an alert, you need to delete the Linux VM that you created in the pre
98
104
99
105
1. Enter *delete* to confirm deletion and select **Delete**.
100
106
107
+
:::image type="content" source="../media/7-delete-vm.png" alt-text="Screenshot that shows the 'Delete Resources' pane with the VM selected.":::
108
+
101
109
1. In the title bar, select the **Notifications** icon and wait until **vm1** is successfully deleted.
102
110
103
111
## View your activity log alerts in Azure Monitor
@@ -106,13 +114,13 @@ In the exercise, you set up an Ubuntu VM and created an activity log rule to det
106
114
107
115
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].
108
116
109
-

117
+
:::image type="content" source="../media/7-alert-email.png" alt-text="Screenshot that shows the email you receive when an alert fires.":::
110
118
111
119
1. On the Azure portal resource menu, select **Monitor**, and then select **Alerts** in the menu on the left.
112
120
113
121
1. You should have three verbose alerts that were generated by deleting **vm1**.
114
122
115
-

123
+
:::image type="content" source="../media/7-alerts-pane.png" alt-text="Screenshot that shows all alerts with Name, Severity, Alert condition, User response and Fired time.":::
116
124
117
125
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.
118
126
@@ -126,6 +134,8 @@ We're going to schedule a one-time, overnight, planned maintenance. It starts in
126
134
127
135
1. Check the box for your sandbox resource group as the scope of the alert processing rule, then select **Apply**.
128
136
137
+
:::image type="content" source="../media/7-alert-processing-rule-resource.png" alt-text="Screenshot that shows the selected resource group for the alert processing rule.":::
138
+
129
139
1. Select **Next: Rule settings**, then select **Suppress notifications**.
130
140
131
141
1. Select **Next: Scheduling**.
@@ -140,7 +150,7 @@ Enter these settings for the scheduling of the alert processing rule:
140
150
| End | Enter tomorrow's date at 7am. |
141
151
| Time zone | Select the local timezone. |
142
152
143
-
:::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/7-alert-processing-rule-schedule.png" alt-text="Screenshot of the scheduling section of an alert processing rule.":::
144
154
145
155
1. Select **Next: Details** and enter these settings:
0 commit comments