Configuring Azure Monitor for Virtual Machines
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.
Search for a command to run...
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.
No comments yet. Be the first to comment.
PowerShell Script for VM Size Comparison This script lists all session hosts with their host pool, VM name, and VM size across all host pools(loop through multiple resource groups): Connect-AzAccount # Get all host pools $hostPools = Get-AzWvdHostPo...
M03 - Unit 4: Configure an ExpressRoute Gateway Exercise Scenario To connect your Azure virtual network to your on-premises network using ExpressRoute, you must first create a virtual network gateway. A virtual network gateway serves two key purposes...
M02-Unit 3 Create and configure a virtual network gateway Scenario You will configure a VPN gateway to securely connect CoreServicesVnet (East US) and ManufacturingVnet (North Europe) using VNet-to-VNet VPN. Task 1: Create CoreServicesVnet and Manuf...
Introduction Azure ExpressRoute is a private, enterprise-grade connection that enables secure and reliable network connectivity between your on-premises infrastructure and Microsoft’s global network. It bypasses the public internet and provides high ...
You need to create three virtual networks: 1. CoreServicesVnet Region: East US Purpose: Main network (web services, databases, shared services like DC/DNS). Connectivity: Needs VPN connection to on-premises. Address Space: Large (because of expe...
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.
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.
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.
| Step | Actions | Features Enabled |
| No Configuration | Host platform metrics & activity logs collected. | Metrics explorer & alerts for host, activity log alerts. |
| Enable Azure Monitor for VMs | Install Log Analytics & Dependency Agents. | Performance charts, log queries/alerts, dependency map. |
| Install Diagnostics Extension & Telegraf Agent | Collect 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.