πŸ”’ Guided

Pre-launch preview. Authorised access only.

Incorrect code

Guided by A Guide to Cloud
Explore AB-900 AI-901
Guided AZ-140 Domain 4
Domain 4 β€” Module 1 of 4 25%
25 of 28 overall

AZ-140 Study Guide

Domain 1: Plan and Implement an AVD Infrastructure

  • AVD Architecture: The Big Picture Free
  • Network Capacity and Design Free
  • RDP Shortpath, Multipath and QoS Free
  • Private Link and Network Troubleshooting Free
  • Storage Planning for User Data Free
  • File Shares and Azure NetApp Files Free
  • Host Pool Architecture: Personal vs Pooled Free
  • Sizing for Performance and Capacity Free
  • Creating Host Pools and Session Hosts Free
  • Session Host Licensing Free
  • Building Session Host Images Free
  • Image Lifecycle and Compute Gallery Free

Domain 2: Plan and Implement Identity and Security

  • Identity Scenarios for AVD
  • RBAC, Conditional Access and SSO
  • Defending AVD with Microsoft Defender
  • Network Security: NSGs, Firewall, Bastion
  • Threat Protection and Confidential VMs

Domain 3: Plan and Implement User Environments and Apps

  • FSLogix Profile Containers and ODFC
  • FSLogix Cloud Cache and Application Masking
  • AVD Clients: Choose and Deploy
  • User Experience and Session Settings
  • Application Groups and RemoteApp
  • Microsoft 365, Teams and OneDrive on AVD
  • App Attach: Dynamic Application Delivery

Domain 4: Monitor and Maintain an AVD Infrastructure

  • Monitoring AVD with Azure Monitor
  • Autoscaling and Session Management
  • Update Strategy and Backups
  • Disaster Recovery and Multi-Region

AZ-140 Study Guide

Domain 1: Plan and Implement an AVD Infrastructure

  • AVD Architecture: The Big Picture Free
  • Network Capacity and Design Free
  • RDP Shortpath, Multipath and QoS Free
  • Private Link and Network Troubleshooting Free
  • Storage Planning for User Data Free
  • File Shares and Azure NetApp Files Free
  • Host Pool Architecture: Personal vs Pooled Free
  • Sizing for Performance and Capacity Free
  • Creating Host Pools and Session Hosts Free
  • Session Host Licensing Free
  • Building Session Host Images Free
  • Image Lifecycle and Compute Gallery Free

Domain 2: Plan and Implement Identity and Security

  • Identity Scenarios for AVD
  • RBAC, Conditional Access and SSO
  • Defending AVD with Microsoft Defender
  • Network Security: NSGs, Firewall, Bastion
  • Threat Protection and Confidential VMs

Domain 3: Plan and Implement User Environments and Apps

  • FSLogix Profile Containers and ODFC
  • FSLogix Cloud Cache and Application Masking
  • AVD Clients: Choose and Deploy
  • User Experience and Session Settings
  • Application Groups and RemoteApp
  • Microsoft 365, Teams and OneDrive on AVD
  • App Attach: Dynamic Application Delivery

Domain 4: Monitor and Maintain an AVD Infrastructure

  • Monitoring AVD with Azure Monitor
  • Autoscaling and Session Management
  • Update Strategy and Backups
  • Disaster Recovery and Multi-Region
Domain 4: Monitor and Maintain an AVD Infrastructure Premium ⏱ ~10 min read

Monitoring AVD with Azure Monitor

Configure log collection, monitor Azure Virtual Desktop with Azure Monitor, and customise workbooks for AVD Insights.

Monitoring AVD with Azure Monitor

You have deployed Azure Virtual Desktop β€” host pools are running, users are connecting. But how do you know if things are actually going well? Are users waiting too long to connect? Is a session host about to run out of memory? Did five people fail to log in this morning?

That is what monitoring solves. Azure Monitor gives you a single pane of glass to see everything happening inside your AVD environment β€” from connection reliability to host CPU usage.

β˜• Simple explanation

What Data Does Azure Monitor Collect?

Azure Monitor pulls data from three layers of your AVD environment:

LayerWhat is collectedExamples
AVD control planeDiagnostic logs from host pools and workspacesConnection attempts, feed refreshes, errors, management actions
Session host OSPerformance counters and event logsCPU percentage, available memory, disk I/O, logon events
User sessionsSession-level metricsRound-trip latency, frames skipped, input delay

All of this data is sent to a Log Analytics workspace β€” think of it as a central database where everything lands for querying and visualisation.


Setting Up Diagnostics

Before Azure Monitor can show you anything, you need to tell AVD to send its data somewhere. This involves two steps:

Step 1 β€” Enable Diagnostic Settings on the Host Pool

Go to your host pool in the Azure portal, select Diagnostic settings, and add a setting that sends logs to your Log Analytics workspace. The key log categories are:

  • Checkpoint β€” lifecycle events (VM started, session created)
  • Connection β€” every user connection attempt and result
  • Error β€” failures and error codes
  • Management β€” admin actions (scaling, drain mode changes)
  • Feed β€” workspace feed refresh events

Step 2 β€” Enable Diagnostic Settings on the AVD Workspace

The AVD workspace (not the Log Analytics workspace β€” confusing, yes) also has diagnostic settings. Enable the Feed category here to track when users refresh their app feed.

Step 3 β€” Install the Azure Monitor Agent on Session Hosts

For OS-level data (CPU, memory, event logs), you need the Azure Monitor Agent (AMA) installed on each session host. A Data Collection Rule (DCR) tells the agent what performance counters and event logs to collect.

Exam Tip β€” Diagnostic Settings vs Azure Monitor Agent

The exam loves to test whether you know the difference. Diagnostic settings are configured on the AVD resource (host pool, workspace) and collect control-plane data. The Azure Monitor Agent is installed on session host VMs and collects OS-level data. You need BOTH for full monitoring.


AVD Insights β€” Your Dashboard

AVD Insights is a pre-built Azure Monitor workbook designed specifically for Azure Virtual Desktop. It gives you four key dashboard views:

1. Connection Reliability

How many connections succeeded vs failed? Which error codes appear most? Which users have repeated failures?

2. User Experience

Round-trip latency, input delay, and frame quality. If users complain that β€œit feels laggy,” this tab shows you the numbers.

3. Host Utilisation

CPU, memory, and disk usage per session host. Spot that one VM running at 95 percent CPU while others sit idle.

4. Session Details

Who is connected, to which host, for how long, and what apps are they running?

🎧 Mia’s morning routine at Horizons Health: Every morning at 7:30, Mia opens AVD Insights before the day shift arrives. She checks the connection reliability tab β€” three nurses failed to connect overnight. She drills into the error codes: all three hit ConnectionBrokenMissedHeartbeat. That tells her the network at the north clinic dropped briefly. She messages Tom (night shift) to confirm, then checks host utilisation β€” the radiology host pool is already at 80 percent CPU because Dr. Patel started her imaging sessions early. Mia flags it for the scaling plan review.


Key Metrics to Watch

Not all metrics are equally important. Focus on these for both the exam and real life:

MetricWhy it mattersAlert threshold example
Active sessions per hostShows load distributionMore than 15 per host (depends on VM size)
CPU percentage per hostOverloaded hosts degrade user experienceAbove 85 percent for 5 minutes
Available memoryLow memory causes app crashesBelow 1 GB
Round-trip latencyDirectly impacts how β€œsnappy” the session feelsAbove 150 ms
Connection failuresUsers cannot work if they cannot connectMore than 5 failures in 10 minutes
Disconnect rateFrequent disconnects signal network or host issuesAbove 10 percent of sessions

Custom Workbooks

AVD Insights is great out of the box, but you can customise it:

  1. Open AVD Insights in the Azure portal
  2. Click Edit to enter edit mode
  3. Modify existing tiles, add new KQL queries, or change visualisations
  4. Save as a new workbook (do not overwrite the built-in one)

Common customisations include filtering by department, adding cost-per-user calculations, or building an executive summary view.

🏒 Raj’s enterprise dashboard: TerraStack has 8,000 users across three host pools β€” engineering, finance, and general. Raj cloned AVD Insights and added a top-level dropdown that filters by host pool. He added a cost tile that pulls VM pricing data and divides by active user count. Andrea (the CIO) now gets a weekly email with a screenshot showing cost-per-user trending downward since the Citrix migration. Dmitri added a network latency heatmap broken down by office location.

Deep Dive β€” Useful KQL Queries for AVD

Here are starter queries you can paste into Log Analytics:

Failed connections in the last 24 hours: WVDConnections | where TimeGenerated > ago(24h) | where State == "Failed" | summarize count() by UserName, Error

Average round-trip time by user: WVDConnections | where TimeGenerated > ago(7d) | where State == "Connected" | summarize avg(RoundTripTimeMs) by UserName

Session host CPU over 80 percent: Perf | where ObjectName == "Processor" and CounterName == "% Processor Time" | where CounterValue > 80 | summarize avg(CounterValue) by Computer, bin(TimeGenerated, 5m)


Setting Up Alerts

Monitoring is only useful if someone actually looks at it. Alerts close the gap by notifying you when something goes wrong.

To create an alert:

  1. Navigate to Azure Monitor then Alerts then Create alert rule
  2. Set the scope to your host pool or session host resource group
  3. Choose a signal (e.g., custom log query for failed connections)
  4. Define the threshold (e.g., more than 5 failures in 10 minutes)
  5. Attach an action group (email, SMS, Teams webhook, or Logic App)

Common alerts for AVD:

  • High CPU on any session host
  • No available sessions in a host pool (capacity exhausted)
  • Spike in connection failures
  • Host in drain mode for more than 24 hours (forgot to bring it back?)

Performance Optimisation

Monitoring naturally leads to optimisation. Use AVD Insights data to:

  • Right-size VMs β€” If hosts consistently use less than 30 percent CPU, you are paying for too much compute. Scale down to a smaller VM size.
  • Rebalance load β€” If breadth-first balancing leaves some hosts overloaded after scaling events, review your maximum session limit per host.
  • Identify noisy users β€” One user running heavy Excel models can tank a session host. Move them to a dedicated host pool with GPU-backed VMs.
  • Tune scaling plans β€” If users complain about slow logins at 9 AM, your ramp-up schedule might start too late.
Exam Tip β€” Workbook vs Dashboard vs Alert

The exam may ask when to use each. Workbooks are for detailed, interactive investigation (drill-down, filters, KQL). Azure Dashboards are for pinning key tiles to a shared overview (less interactive). Alerts are for automated notification when thresholds are breached. AVD Insights is a workbook, not a dashboard.


Flashcards

Question

Where does AVD diagnostic data get stored?

Click or press Enter to reveal answer

Answer

In a Log Analytics workspace. You must configure diagnostic settings on the host pool and AVD workspace to send data there. The Azure Monitor Agent sends OS-level data from session hosts to the same workspace.

Click to flip back

Question

What are the four tabs in AVD Insights?

Click or press Enter to reveal answer

Answer

1. Connection Reliability β€” success/failure rates. 2. User Experience β€” latency and frame quality. 3. Host Utilisation β€” CPU, memory, disk per host. 4. Session Details β€” who is connected, to which host, with what apps.

Click to flip back

Question

What is the difference between Diagnostic Settings and the Azure Monitor Agent?

Click or press Enter to reveal answer

Answer

Diagnostic Settings are configured on AVD resources (host pool, workspace) and collect control-plane logs like connection events. The Azure Monitor Agent is installed on VMs and collects OS-level data like CPU and event logs. You need both for full visibility.

Click to flip back

Question

What is a Data Collection Rule (DCR)?

Click or press Enter to reveal answer

Answer

A DCR tells the Azure Monitor Agent exactly what data to collect from a VM β€” which performance counters, which Windows Event Logs, and where to send them. Without a DCR, the agent collects nothing.

Click to flip back


Knowledge Check

Knowledge Check

Mia notices users at one clinic are complaining about lag. Which AVD Insights tab should she check first?

Knowledge Check

Raj wants to monitor AVD connection failures. He has enabled diagnostic settings on the host pool. What else must he configure to get OS-level performance data from session hosts?

Knowledge Check

Which of the following are valid log categories when configuring diagnostic settings on an AVD host pool? (Select all that apply)


Summary

Azure Monitor is how you keep your AVD environment healthy. Enable diagnostic settings on host pools and workspaces, install the Azure Monitor Agent on session hosts, and use AVD Insights as your daily dashboard. Set alerts so problems find you before users do.

Next up: Now that you can see what is happening, let us make AVD respond automatically β€” Autoscaling and Session Management.

🎬 Video coming soon

Monitoring AVD with Azure Monitor

← Previous

App Attach: Dynamic Application Delivery

Next β†’

Autoscaling and Session Management

Guided

I learn, I simplify, I share.

A Guide to Cloud YouTube Feedback

© 2026 Sutheesh. All rights reserved.

Guided is an independent study resource and is not affiliated with, endorsed by, or officially connected to Microsoft. Microsoft, Azure, and related trademarks are property of Microsoft Corporation. Always verify information against Microsoft Learn.