Jump to content

- - - - -

Azure Monitor for VMs – Health, Performance & Service Map

  Posted by Pantelis Apostolidis , in Azure 07 February 2019 · 67 views

Get real insights about your Windows and Linux VMs & VMSSs performance and their dependencies with Azure Monitor. Integrate with Log Analytics for even more in depth analysis and retain the data over time. Health, Performance & Service Map of your VM in a dashboard.

Posted Image
Deploy to Single VM
For a single VM, go to the VMs blade, scroll down to the “Monitoring” section, select “Insights” and press “Try now”

Posted Image

The Azure Monitor Insights Onboarding wizard will open. If your VM is already onboard at a Log Analytics workspace just click Enable. Otherwize select a Log Analytics workspace or create one.

Posted Image

You will start seeing data form the VM in about 20-30 minutes.
Deploy to multiple VMs using Azure Policy
For deploying to multiple VMs, the easiest way is to use Azure Policy

Go to the Azure Policy, select Assignments and press “Assign initiative”

Posted Image

The first option is the Scope. Press the three dots “…” at the Scope field. You can choose a a Management Group, a Subscription or a Resource Group. So if you just select a Management Group (And don’t select subscription and resource group), this policy will apply to all Subscriptions under the Management Group and of course to all resources of the subscription. If you choose a Subscription (and don’t select a resource group then the policy will apply to all resources of the subscription. Finally if you choose a resource group then the policy will apply only to this resource group. Later we will see how to select specific VMs in the Subscription or Resource group.

Posted Image

After selecting the Scope you can add exclusions. There you can check the VMs you don’t want this policy to apply.

Posted Image

The next step is to select the Policy. At the BASICS section, press the three dots “…” near the “Initiative definition” and find the “Enable Azure Monitor for VMs”

Posted Image

Next step is to configure the Parameters. There select the Log Analytics workspace that the VM will onboard, or create a new one. Optionally you can provide a list of VMs instead of adding all of them

Posted Image

Finally press Apply. Back at the Azure Policy main menu you will see the new Definition Assignment.

Posted Image
View the Health / Performance / Service Map of the VMs
To view the Azure Monitor of the VMs, go to the VM that you have enabled Insights, select the Insights blade and you will be able to see the health status not only for the common CPU. Memory, Disk,

Posted Image

But also for the services that run inside the VM and the Azure Monitor discovered.


By clicking on any service you will have a list of all logs of this service


At the performance section you have the ability to select time range and have performance analytics for a requisted period of time


Finally at the MAp, you have a service map of the services and ports that are open and listening


Product Documentation: https://docs.microso...sights-overview