Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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:
- An Azure virtual machine scale set with monitoring enabled. If you haven't enabled monitoring yet, see Enable monitoring for an Azure virtual machine scale set.
- Permission to create alert rules and action groups for the virtual machine scale set.
Enable recommended alert rules
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.
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.
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.
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.
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.
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.