Monitor & Alert for your Azure VM
Lets see how easy it is to monitor and create an alert, in order to be notified when your VMs are restarted, when they start, stop, get high CPU usage, memory and much more.
First navigate to the Azure Portal https://portal.azure.com, and then click the Monitor button.
You will be navigated to the Monitor blade. At the center of the screen you will see three mail buttons, each starts a wizard.
Click the “Create Alert” under the Explore monitoring essentials, the first of the three buttons.
The create rule wizard will start. First you need to Select target.
Select the subscription, at the Filter resource type select Virtual machines and select the VM from the Resource list.
Once you press the target VM you will see a preview of the selection and the available signals.
After the alert target, select the criteria
At the configure signal login blade, select the signal from the list. I have selected the Restart Virtual Machine.
Once you select the signal you can select the severity level and also you will see the preview of the condition.
After that give a name and a description for the alert. Also select the resource group where the alert will be saved and if you want the alert to be enabled upon creation.
The next step is to create an action group. The action group is the list of accounts to get the notifications when the alert is triggered. The notification can be email, SMS, Push Notifications and Voice call. You can add many action groups and many action in each group.
Now the alert is ready. Once the alert is triggered you will be notified. At this example I added an email alert and once the VM restarted I received the following email:
More Microsoft Azure guides at Apostolidis IT Corner
Pantelis Apostolidis is a Cloud Solutions Architect at Microsoft and an ex Microsoft Azure MVP. For the last 15 years, Pantelis has been involved to major cloud projects in Greece and abroad, helping companies to adopt and deploy cloud technologies, driving business value. He is entitled to a lot of Microsoft Expert Certifications, demonstrating his proven experience in delivering high quality solutions. He is an author, blogger and he is acting as a spokesperson for conferences, workshops and webinars. He is also an active member of several communities as a moderator in azureheads.gr and autoexec.gr. Follow him on Twitter @papostolidis.