Edit

Share via


Tutorial: Enable recommended alerts for an Azure virtual machine

Once you have enabled enhanced monitoring for a virtual machine, you should enable alerts to get notified when the virtual machine experiences issues or performance degradation. Azure Monitor provides a set of recommended alert rules based on common performance scenarios that you can quickly enable for your virtual machines.

Note

For virtual machine scale sets, see Enable recommended alerts for an Azure virtual machine scale set.

In this tutorial, you learn how to:

  • Enable recommended alert rules for a virtual machine.
  • Configure alert thresholds and severity levels.
  • Set up email notifications using action groups.
  • View and manage created alert rules.

Prerequisites

To complete this tutorial, you need:

From the menu for the VM in the Azure portal, select Alerts in the Monitoring section. Select View + set up or Set up recommended alerts.

Screenshot of option to enable recommended alerts for a virtual machine.

A list of recommended alert rules is displayed. You can select which rules to create. You can also change the recommended threshold. Ensure that Email is enabled and provide an email address to be notified when any of the alerts fire. An action group will be created with this address. If you already have an action group that you want to use, you can specify it instead.

Screenshot of recommended alert rule configuration.

Configure alert severity

Expand each of the alert rules to see its details. By default, the severity for each is Informational. You might want to change to another severity such as Error or Warning depending on how critical each condition is for your environment.

Screenshot of recommended alert rule severity configuration.

Select Save to create the alert rules.

View created alert rules

When the alert rule creation is complete, you'll see the alerts screen for the VM.

Screenshot of alert screen for a VM.

Click Alert rules to view the rules you just created. You can click on any of the rules to view their details and to modify their threshold if you want.

Screenshot of list of created alert rules.

Next steps

Now that you have enabled alerts for your virtual machine, you can collect additional guest logs such as Windows event logs or Syslog to further enhance your monitoring capabilities.