Reference: Monitoring Azure virtual machine data

For more information about collecting and analyzing monitoring data for Azure virtual machines (VMs), see Monitoring Azure virtual machines.

Metrics

This section lists the platform metrics that are collected for Azure virtual machines and Virtual Machine Scale Sets.

Metric type Resource provider / type namespace
and link to individual metrics
Virtual machines Microsoft.Compute/virtualMachines
Virtual Machine Scale Sets Microsoft.Compute/virtualMachineScaleSets
Virtual Machine Scale Sets and virtual machines Microsoft.Compute/virtualMachineScaleSets/virtualMachines

For more information, see a list of platform metrics that are supported in Azure Monitor.

Metric dimensions

For more information about metric dimensions, see Multi-dimensional metrics.

Azure virtual machines and Virtual Machine Scale Sets have the following dimensions that are associated with their metrics.

Dimension name Description
LUN Logical unit number
VMName Used with Virtual Machine Scale Sets

VM availability metric (preview)

The VM availability metric is currently in public preview. This metric value indicates whether a machine is currently running and available. You can use the metric to trend availability over time and to alert if the machine is stopped. VM availability has the values in the following table.

Value Description
1 VM is running and available.
0 VM is unavailable. The VM could be stopped or rebooting. If you shutdown a VM from within the VM, it will emit this value.
Null State of the VM is unknown. If you stop a VM from the Azure portal, CLI, or PowerShell, it will immediately stop emitting the availability metric, and you will see null values.

Azure Monitor Logs tables

This section refers to all the Azure Monitor Logs tables that are relevant to virtual machines and Virtual Machine Scale Sets and available for query by Log Analytics.

Resource type Notes
Virtual machines
Virtual Machine Scale Sets

For reference documentation about Azure Monitor Logs and Log Analytics tables, see the Azure Monitor Logs table reference.

Activity log

The following table lists a few example operations that relate to creating virtual machines in the activity log. For a complete list of possible log entries, see Microsoft.Compute Resource Provider options.

Operation Description
Microsoft.Compute/virtualMachines/start/action Starts the virtual machine
Microsoft.Compute/virtualMachines/restart/action Deletes a managed cluster
Microsoft.Compute/virtualMachines/write Creates a new virtual machine or updates an existing one
Microsoft.Compute/virtualMachines/deallocate/action Powers off the virtual machine and releases the compute resources
Microsoft.Compute/virtualMachines/extensions/write Creates a new virtual machine extension or updates an existing one
Microsoft.Compute/virtualMachineScaleSets/write Starts the instances of the virtual machine scale set

For more information about the schema of activity log entries, see Activity log schema.

See also

For a description of monitoring Azure virtual machines, see Monitoring Azure virtual machines.