
close
close
This post will show you how to use Azure virtual machine performance threshold alerts to trigger email alerts or start automated-response actions.
A pre-requisite to creating alerts is that you have enabled metrics monitoring for your virtual machines. By default, we get guest-level metrics from the Azure Hyper-V hosts. However, more interesting information is available from the guest OS, such as SQL Server, memory available, and so forth. You can enable guest level monitoring in each virtual machine’s Diagnostics Settings and either stick with the default set of collected Basic metrics or customize the metrics that are gathered.
advertisment
You can view metrics and create alerts in two ways:
It would be good to get into the habit of using Azure Monitor for centralized management of virtual machines, so I will use the latter option.
I opened Monitor from the navigation bar in the Azure Portal and clicked Alerts. Each alert that you create is associated with a virtual machine, so I then selected:
The +Add Metric Alert button was then enabled, so I clicked it. The Add Rule blade appears. This is a long blade with tons of options. I want to create an alert to respond to when processor utilization is over 80 percent for 10 minutes, so I enter the following configuration:
Note that the diagram below Metric is updated. A light-blue line shows the current measurements and the dark-blue line shows the threshold of the alert.
Now, I configured the threshold:
advertisment
Creating a Performance Metric Alert for an Azure Virtual Machine [Image Credit: Aidan Finn]
How the Alert Response to a Breach of the Azure Virtual Machine Metric Threshold [Image Credit: Aidan Finn]
The alert will be saved if you click OK. You will get emails in the event of the alert being triggered but you can also view the status of this alert and all alerts in Monitor > Alerts.
Viewing the Alert Status in Azure Monitor [Image Credit: Aidan Finn]
More from Aidan Finn
advertisment
Petri Newsletters
Whether it’s Security or Cloud Computing, we have the know-how for you. Sign up for our newsletters here.
advertisment
More in Microsoft Azure
Microsoft Revises Restrictive Cloud Licensing Policies to Avoid EU Antitrust Probe
May 19, 2022 | Rabia Noureen
Microsoft's Azure AD Conditional Access Service Can Now Require Reauthentication
May 13, 2022 | Rabia Noureen
Microsoft Addresses Cross-Tenant Database Vulnerability in Azure PostgreSQL
Apr 29, 2022 | Rabia Noureen
Microsoft Simplifies IT Monitoring with New Azure Managed Grafana Service
Apr 19, 2022 | Rabia Noureen
System Center 2022 is Now Available with New Datacenter Management Capabilities
Apr 4, 2022 | Rabia Noureen
Most popular on petri
Log in to save content to your profile.
Article saved!
Access saved content from your profile page. View Saved
Join The Conversation
Create a free account today to participate in forum conversations, comment on posts and more.
Copyright ©2019 BWW Media Group