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 VM is created or when a VM is deleted).
Create alerts
In this example, you create an alert for all administrative operations on a lab with an action that sends an email to subscription owners.
Sign in to the Azure portal.
In the search bar of the Azure portal, type Monitor, and then select Monitor from the results list.
Select Alerts on the left menu, and then select New alert rule on the toolbar.
On the Create alert rule page, click Select resource.
Select DevTest Labs for Filter by resource type, select your lab in the list, and then select Done.
Back on the Create alert rule page, click Select condition.
On the Configure signal logic page, select a signal supported by DevTest Labs.
Filter by event level (Verbose, Informational, Warning, Error, Critical, All), status (Failed, Started, Succeeded), and who initiated the event.
Select Done to complete configuring the condition.
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.
Select Create action group link on the toolbar.
On the Add action group page, follow these steps:
Enter a name for the action group.
Enter a short name for the action group.
Select the resource group in which you want the alert to be created.
Enter a name for the action.
Select the action type (in this example, Email Azure Resource Manager Role).
On the Email Azure Resource Manager Role page, select the role. In this example, it's Owner. Then, select OK.
Select OK on the Add action group page.
Now, on the Create alert rule page, enter a name for the alert rule, and then select OK.
View alerts
You will see alerts on the Alerts for all administrative operations (in this example). Alerts may take sometime to show up.
If you select number in a column (for example: Total alerts), you see the alerts that were raised.
If you select an alert, you see details about it.
In this example, you also receive an email with content as shown in the following example:
Next steps
- To learn more about creating action groups using different action types, see Create and manage action groups in the Azure portal.
- To learn more about activity logs, see Azure Activity Log.
- To learn about setting alerts on activity logs, see Alerts on activity log.
Feedback
Submit and view feedback for