Skip to content

Commit 042db4d

Browse files
author
RoseHJM
committed
Freshness revisions
1 parent ac6d5a1 commit 042db4d

12 files changed

+56
-43
lines changed
Lines changed: 56 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,97 @@
11
---
22
title: Create activity log alerts for labs
3-
description: This article provides steps to create activity log alerts for lab in Azure DevTest Labs.
3+
description: Learn how to create activity log alerts and configure alert rules for labs in Azure DevTest Labs.
44
ms.topic: how-to
55
ms.author: rosemalcolm
66
author: RoseHJM
7-
ms.date: 07/10/2020
7+
ms.date: 04/30/2024
88
ms.custom: UpdateFrequency2
99

1010
#customer intent: As a lab administrator, I want to create activity log alerts for labs in Azure DevTest Labs, so that I can respond to issues quickly.
1111
---
1212

1313
# Create activity log alerts for labs in Azure DevTest Labs
14-
This article explains how to create activity log alerts for labs in Azure DevTest Labs (for example: when a VM is created or when a VM is deleted).
14+
This article explains how to create activity log alerts for labs in Azure DevTest Labs (for example: when a virtual machine is created or deleted).
15+
16+
## Create an alert
1517

16-
## Create alerts
1718
In this example, you create an alert for all administrative operations on a lab with an action that sends an email to subscription owners.
1819

1920
1. Sign in to the [Azure portal](https://portal.azure.com).
21+
2022
1. In the Azure portal search bar, enter *Monitor*, and then select **Monitor** from the results list.
2123

22-
:::image type="content" source="./media/create-alerts/search-monitor.png" alt-text="Search for Monitor":::
24+
:::image type="content" source="./media/create-alerts/search-monitor.png" alt-text="Screenshot of the Azure portal, showing a search for Monitor." lightbox="./media/create-alerts/search-monitor.png":::
25+
26+
1. Select **Alerts** on the left menu, and then select **Create** > **Alert rule**.
27+
28+
:::image type="content" source="./media/create-alerts/alerts-page.png" alt-text="Screenshot showing the Azure Monitor alerts page with Create Alert rule highlighted." lightbox="./media/create-alerts/alerts-page.png":::
29+
30+
1. On the **Create alert rule** page, in **Select a resource**, from the **Resource types** list, select **DevTest Labs**.
2331

24-
1. Select **Alerts** on the left menu, and then select **Create** > **Alert rule** on the toolbar.
32+
:::image type="content" source="./media/create-alerts/select-resource-link.png" alt-text="Screenshot showing the Select a resource pane, with the Resource type set to DevTest Labs." lightbox="./media/create-alerts/select-resource-link.png":::
2533

26-
:::image type="content" source="./media/create-alerts/alerts-page.png" alt-text="Alerts page":::
34+
1. Expand your resource group, select your lab in the list, and then select **Apply**.
2735

28-
1. On the **Create alert rule** page, click **Select resource**.
36+
:::image type="content" source="./media/create-alerts/select-lab-resource.png" alt-text="Screenshot showing the Select a resource pane, with a lab selected." lightbox="./media/create-alerts/select-lab-resource.png":::
2937

30-
:::image type="content" source="./media/create-alerts/select-resource-link.png" alt-text="Select resource for the alert":::
38+
1. Back on the **Create alert rule** page, select **Next: Condition**.
3139

32-
1. Select **DevTest Labs** for **Filter by resource type**, select your lab in the list, and then select **Done**.
40+
1. On the **Condition** tab, select **See all signals**.
3341

34-
:::image type="content" source="./media/create-alerts/select-lab-resource.png" alt-text="Select your lab as the resource":::
35-
1. Back on the **Create alert rule** page, click **Select condition**.
42+
:::image type="content" source="./media/create-alerts/see-all-signals-link.png" alt-text="Screenshot of the Condition tab, with the See all signals link highlighted." lightbox="./media/create-alerts/see-all-signals-link.png":::
3643

37-
:::image type="content" source="./media/create-alerts/select-condition-link.png" alt-text="Select condition link":::
38-
1. On the **Configure signal logic** page, select a signal supported by DevTest Labs.
44+
1. On the **Select a signal** pane, select **All Administrative operations**, and then select **Apply**.
3945

40-
:::image type="content" source="./media/create-alerts/select-signal.png" alt-text="Select signal":::
41-
1. Filter by **event level** (Verbose, Informational, Warning, Error, Critical, All), **status** (Failed, Started, Succeeded), and **who initiated** the event.
42-
1. Select **Done** to complete configuring the condition.
46+
:::image type="content" source="./media/create-alerts/all-administrative-operations.png" alt-text="Screenshot of the Select a signal pane, with All Administrative operations highlighted." lightbox="./media/create-alerts/all-administrative-operations.png":::
4347

44-
:::image type="content" source="./media/create-alerts/configure-signal-logic-done.png" alt-text="Configure signal logic - done":::
45-
1. You have specified for the scope (lab) and the condition for the alert. Now, you need to specify an action group with actions to be run when the condition is met. Back on the **Create alert rule** page, choose **Select action group**.
48+
1. Select **Next: Actions**.
4649

47-
:::image type="content" source="./media/create-alerts/select-action-group-link.png" alt-text="Select action group link":::
48-
1. Select **Create action group** link on the toolbar.
50+
1. On the **Actions** tab, ensure **Use quick actions (preview)** is selected.
51+
52+
1. On the **Use quick actions (preview)** pane, enter or select the following information, and then select **Save**.
53+
54+
|Name |Value |
55+
|---------|---------|
56+
|Action group name |Enter an action group name that is unique within the resource group |
57+
|Display name |Enter a display name to be shown as the action group name in email and SMS notifications. |
58+
|Email | Enter an email address to receive alerts. |
59+
|Email Azure Resource Manager Role | Select an Azure Resource Manager role to receive alerts. |
60+
|Azure mobile app notification | Get a push notification on the Azure mobile app. |
61+
62+
:::image type="content" source="./media/create-alerts/quick-actions-preview.png" alt-text="Screenshot showing the Use quick actions (preview) pane." lightbox="./media/create-alerts/quick-actions-preview.png":::
4963

50-
:::image type="content" source="./media/create-alerts/create-action-group-link.png" alt-text="Create action group link":::
51-
1. On the **Add action group** page, follow these steps:
52-
1. Enter a **name** for the action group.
53-
1. Enter a **short name** for the action group.
54-
1. Select the **resource group** in which you want the alert to be created.
55-
1. Enter a **name for the action**.
56-
1. Select the **action type** (in this example, **Email Azure Resource Manager Role**).
64+
1. On the **Create an alert rule** page, enter a name for the alert rule, and then select **Review + create**.
5765

58-
:::image type="content" source="./media/create-alerts/add-action-group.png" alt-text="Add action group page":::
59-
1. On the **Email Azure Resource Manager Role** page, select the role. In this example, it's **Owner**. Then, select **OK**.
66+
:::image type="content" source="./media/create-alerts/details-alert-name.png" alt-text="Screenshot showing the Create an alert rule tab, with Alert rule name highlighted." lightbox="./media/create-alerts/details-alert-name.png":::
67+
68+
1. On the **Review + create** tab, review the settings, and then select **Create**.
6069

61-
:::image type="content" source="./media/create-alerts/select-role.png" alt-text="Select role":::
62-
1. Select **OK** on the **Add action group** page.
63-
1. Now, on the **Create alert rule** page, enter a name for the alert rule, and then select **OK**.
70+
:::image type="content" source="./media/create-alerts/alert-review-create.png" alt-text="Screenshot showing the Review and create tab, with Create highlighted." lightbox="./media/create-alerts/alert-review-create.png":::
6471

65-
:::image type="content" source="./media/create-alerts/create-alert-rule-done.png" alt-text="Create alert rule - done":::
6672

6773
## View alerts
68-
1. You will see alerts on the **Alerts** for all administrative operations (in this example). Alerts may take sometime to show up.
6974

70-
:::image type="content" source="./media/create-alerts/alerts.png" alt-text="Screen capture displays alerts in the Dashboard.":::
71-
1. If you select number in a column (for example: **Total alerts**), you see the alerts that were raised.
75+
1. You see alerts on the **Alerts** for all administrative operations (in this example). Alerts can take sometime to show up.
76+
77+
:::image type="content" source="./media/create-alerts/alerts.png" alt-text="Screenshot showing the Alerts page with the full list of alerts." lightbox="./media/create-alerts/alerts.png":::
78+
79+
1. To view all alerts of a specific severity, select the number in the relevant column (for example: **Warning**).
80+
81+
:::image type="content" source="./media/create-alerts/select-type-alert.png" alt-text="Screenshot showing the Alerts page with the Warning column heading highlighted." lightbox="./media/create-alerts/select-type-alert.png":::
82+
83+
1. To view the details of an alert, select the alert.
84+
85+
:::image type="content" source="./media/create-alerts/select-alert.png" alt-text="Screenshot showing the Alerts page with the full list of alerts and one alert name highlighted." lightbox="./media/create-alerts/select-alert.png":::
86+
87+
1. You see a details pane like the following screenshot:
7288

73-
:::image type="content" source="./media/create-alerts/all-alerts.png" alt-text="All alerts":::
74-
1. If you select an alert, you see details about it.
89+
:::image type="content" source="./media/create-alerts/alert-details.png" alt-text="Screenshot showing the alert details." lightbox="./media/create-alerts/alert-details.png":::
7590

76-
:::image type="content" source="./media/create-alerts/alert-details.png" alt-text="Alert details":::
77-
1. In this example, you also receive an email with content as shown in the following example:
91+
1. If you configured the alert to send an email notification, you receive an email that contains a summary of the error and a link to view the alert.
7892

79-
:::image type="content" source="./media/create-alerts/alert-email.png" alt-text="Alert email":::
93+
## Related content
8094

81-
## Next steps
8295
- To learn more about creating action groups using different action types, see [Create and manage action groups in the Azure portal](../azure-monitor/alerts/action-groups.md).
8396
- To learn more about activity logs, see [Azure Activity Log](../azure-monitor/essentials/activity-log.md).
8497
- To learn about setting alerts on activity logs, see [Alerts on activity log](../azure-monitor/alerts/activity-log-alerts.md).
63.3 KB
Loading
45.7 KB
Loading
60.2 KB
Loading
78.8 KB
Loading
29 KB
Loading
37.7 KB
Loading
25.7 KB
Loading
60.3 KB
Loading
82.5 KB
Loading

0 commit comments

Comments
 (0)