Proposed Pull Request Change

title description ms.topic ms.author author ms.date ms.custom
Create activity log alerts for labs Learn how to create activity log alerts and configure alert rules for labs in Azure DevTest Labs. how-to rosemalcolm RoseHJM 04/30/2024 UpdateFrequency2
📄 Document Links
GitHub View on GitHub Microsoft Learn View on Microsoft Learn
Raw New Markdown
Generating updated version of doc...
Rendered New Markdown
Generating updated version of doc...
+0 -0
+0 -0
--- title: Create activity log alerts for labs description: Learn how to create activity log alerts and configure alert rules for labs in Azure DevTest Labs. ms.topic: how-to ms.author: rosemalcolm author: RoseHJM ms.date: 04/30/2024 ms.custom: UpdateFrequency2 #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. --- # Create activity log alerts for labs in Azure DevTest Labs 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). ## Create an alert In this example, you create an alert for all administrative operations on a lab with an action that sends an email to subscription owners. 1. Sign in to the [Azure portal](https://portal.azure.com). 1. In the Azure portal search bar, enter *Monitor*, and then select **Monitor** from the results list. :::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"::: 1. Select **Alerts** on the left menu, and then select **Create** > **Alert rule**. :::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"::: 1. On the **Create alert rule** page, in **Select a resource**, from the **Resource types** list, select **DevTest Labs**. :::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"::: 1. Expand your resource group, select your lab in the list, and then select **Apply**. :::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"::: 1. Back on the **Create alert rule** page, select **Next: Condition**. 1. On the **Condition** tab, select **See all signals**. :::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"::: 1. On the **Select a signal** pane, select **All Administrative operations**, and then select **Apply**. :::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"::: 1. Select **Next: Actions**. 1. On the **Actions** tab, ensure **Use quick actions (preview)** is selected. 1. On the **Use quick actions (preview)** pane, enter or select the following information, and then select **Save**. |Name |Value | |---------|---------| |Action group name |Enter an action group name that is unique within the resource group | |Display name |Enter a display name to be shown as the action group name in email and SMS notifications. | |Email | Enter an email address to receive alerts. | |Email Azure Resource Manager Role | Select an Azure Resource Manager role to receive alerts. | |Azure mobile app notification | Get a push notification on the Azure mobile app. | :::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"::: 1. On the **Create an alert rule** page, enter a name for the alert rule, and then select **Review + create**. :::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"::: 1. On the **Review + create** tab, review the settings, and then select **Create**. :::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"::: ## View alerts 1. You see alerts on the **Alerts** for all administrative operations (in this example). Alerts can take sometime to show up. :::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"::: 1. To view all alerts of a specific severity, select the number in the relevant column (for example: **Warning**). :::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"::: 1. To view the details of an alert, select the alert. :::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"::: 1. You see a details pane like the following screenshot: :::image type="content" source="./media/create-alerts/alert-details.png" alt-text="Screenshot showing the alert details." lightbox="./media/create-alerts/alert-details.png"::: 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. ## Related content - To learn more about creating action groups using different action types, see [Create and manage action groups in the Azure portal](/azure/azure-monitor/alerts/action-groups). - To learn more about activity logs, see [Azure Activity Log](/azure/azure-monitor/essentials/activity-log). - To learn about setting alerts on activity logs, see [Alerts on activity log](/azure/azure-monitor/alerts/activity-log-alerts).
Success! Branch created successfully. Create Pull Request on GitHub
Error: