Skip to main content

Command Palette

Search for a command to run...

Configuring Azure Monitor for Virtual Machines

Updated
2 min read
A

I’m Amir Rouhanipoor, an IT Consultant specializing in Azure and cloud solutions. I help organizations streamline their IT and drive growth through secure, efficient cloud technologies.

Key Differences from Other Azure Resources

  • Platform metrics are collected automatically for the VM host, but an agent is required for guest OS monitoring.

  • Resource logs are not generated by default; an agent is needed to collect logs from the guest OS.

  • Diagnostic settings for VMs cannot be configured in the Azure portal but can send data to storage or Event Hubs.

Monitoring Data Sources

  1. Virtual Machine Host:

    • Platform Metrics (collected automatically) – Requires diagnostics extension for guest OS metrics.

    • Activity Log – Tracks VM lifecycle events like start/stop and configuration changes.

  2. Guest Operating System (Requires Agents):

    • Log Analytics Agent – Collects logs from VMs (Azure, on-prem, and other clouds).

    • Dependency Agent – Tracks running processes and dependencies.

    • Azure Diagnostic Extension – Primarily for guest performance data in Azure Monitor Metrics.

    • Telegraf Agent – Collects Linux VM performance data.

StepActionsFeatures Enabled
No ConfigurationHost platform metrics & activity logs collected.Metrics explorer & alerts for host, activity log alerts.
Enable Azure Monitor for VMsInstall Log Analytics & Dependency Agents.Performance charts, log queries/alerts, dependency map.
Install Diagnostics Extension & Telegraf AgentCollect guest performance data to Metrics.Metrics explorer & alerts for guest OS.

For complete monitoring, collect data from both the host and guest OS using Azure Monitor Metrics and Azure Monitor Logs.

19 views

More from this blog

A

An Azure Cloud Lab Journey...

45 posts