Edit

Share via


Tutorial: Enable recommended alerts for an Azure virtual machine scale set

Once you have enabled monitoring for a virtual machine scale set, you should enable alerts to get notified when the scale set or its instances experience 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 machine scale sets.

In this tutorial, you learn how to:

  • Enable recommended alert rules for a virtual machine scale set.
  • 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 virtual machine scale set in the Azure portal, select the Monitoring tab. In the Alerts section, select Enable next to Enable recommended alert rules.

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

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 virtual machine scale set.

Screenshot of alert screen for a virtual machine scale set.

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 scale set, you can collect additional log data such as Windows event log or Syslog to further enhance your monitoring capabilities.