M365Con 2027 – free online conference · 11–22 Jan 2027 · 120 sessions m365con.net

Blog · Mirko Peters

Key metrics and alerts for Azure Virtual Desktop

Partner · Neutral partner: Nerdio

By ·

In our grouping, Azure Virtual Desktop monitoring rests on connection and error diagnostics, session host performance counters and autoscale evaluations. Learn names no alert thresholds, so you set those yourself.

The metrics that matter most for Azure Virtual Desktop come from three places: connection and error diagnostics, performance counters from the session hosts, and autoscale evaluations. Insights charts all three, and Azure Monitor alert rules can notify you when they cross a limit you choose. Learn recommends Service Health alerts for Azure Virtual Desktop, but its Insights, diagnostics and service-alert pages name no thresholds for alert rules on diagnostics or performance data, so this article separates what Learn states from the starting rules we suggest.

Key points

  • Insights is an Azure Monitor Workbooks dashboard. It needs diagnostic settings on host pools and workspaces, the Azure Monitor Agent with a DCR on hosts and a Log Analytics workspace.
  • Learn gives two yardsticks for input delay: ideal below 100 ms, or good below 150 ms and acceptable 150 to 500 ms. Latency: generally below 100 ms, low quality above 200 ms.
  • Most AVD diagnostics are logs, so log search alerts on the WVD tables fit. Learn warns log alerts are poor at detecting missing data and suggests metric alerts for that.
  • Learn describes the Insights Overview page as showing active Azure Monitor alerts classified as severity 0. Alert rules, action groups and severity are configured in Azure Monitor.
  • Session host update does not install the Azure Monitor Agent on the new hosts, so monitoring can go quiet after an update unless Azure Policy installs the agent.

It does not cover query-by-query diagnostics, which belong to the separate article "Useful KQL queries for Azure Virtual Desktop diagnostics".

What has to be in place first

Azure Virtual Desktop Insights is, in Learn's words, a dashboard built on Azure Monitor Workbooks. The Insights setup page (ms.date January 2025, updated June 2025) lists what it needs:

  • A Log Analytics workspace. Learn recommends a designated workspace for the session hosts so that counters and events come only from your Azure Virtual Desktop deployment.
  • Diagnostic settings on each host pool for Management Activities, Feed, Connections, Errors, Checkpoints, HostRegistration and AgentHealthStatus, and on each workspace for Management Activities, Feed, Errors and Checkpoints. Diagnostics start flowing only after you enable them.
  • The Azure Monitor Agent on every session host, with a data collection rule for performance counters and Windows Event Logs. The Insights glossary names the required event logs, including FSLogix's Operational and Admin logs.
  • For people who read the dashboard: Desktop Virtualization Reader on the resource group or subscription and Log Analytics Reader on the workspace.

Autoscale health needs one more setting. Learn's autoscale monitoring page says that, in addition to the host pool logs above, you also send the category Autoscale logs for pooled host pools to Log Analytics. Our reading: without it the WVDAutoscaleEvaluationPooled table has nothing for an alert rule to evaluate.

Open Insights at aka.ms/avdi and use the configuration workbook to check the setup. Three caveats from Learn matter for alerting. The diagnostics page says data might take a few hours to appear after first set-up. Diagnostic events are sent to Log Analytics when an activity completes, and connections that never reach Azure Virtual Desktop do not show up at all, because the diagnostics service is part of Azure Virtual Desktop. And after a session host update, the agent is not installed on the new hosts automatically; Learn suggests Azure Policy for that.

The metrics worth watching

QuestionWhere Learn shows itReading
Can users connect?Insights glossary: connection success; potential connectivity issuesA failed connection means it could not reach the host. A problem spanning several hosts, users, resources or clients likely affects the whole system
Is the network slow?Insights, Connection Performance, round-trip time by gateway regionLatency generally below 100 ms, a session broadly low quality above 200 ms; compare median with the 95th percentile
Is sign-in slow?Time to connectSplit into user route, stack connected, logon (profiles, GPOs, shell start, FSLogix) and shell start to shell ready; the components can run in parallel, so they do not add up to the total. Learn subtracts the time users take to enter credentials
Do users feel lag?Host Performance, input delaySee the two yardsticks below
Are hosts under pressure?Host CPU and memory, disk timing, disk queue lengthLearn names no threshold values for these counters; the 60% over one minute appears only in the Host Diagnostics example of a session host with high CPU
Are connections dropping?Connection ReliabilityTop 20 disconnection events, pivoted by host pool, transport, session host, client version or gateway region
Is capacity right?Utilization: session history, session host countIdle hosts powered on suggest a scaling plan; the glossary also defines users per core
Is autoscale healthy?Autoscale tab; WVDAutoscaleEvaluationPooledPooled host pools only; personal pools send autoscale logs to a storage account or Event Hubs

The WVDAutoscaleEvaluationPooled table is the most direct source for autoscale health. Learn lists per-evaluation columns such as ActiveSessionHostCount, UnhealthySessionHostCount, ExcludedSessionHostCount, SessionOccupancyPercent and ScalingReasonMessage, which records what autoscale decided and why, plus the Config columns for the schedule phase in force. Learn's text says to join to WVDErrors on CorrelationId when ResultType is Failed, while its sample query filters on ResultType != "Succeeded" so that partial failures are included as well.

Learn's two Insights pages disagree slightly on input delay. The use-cases page says each host should ideally stay below 100 ms. The glossary sorts delay into good (below 150 ms), acceptable (150 to 500 ms), poor (500 to 2,000 ms) and bad (above 2,000 ms), based on a counter sampled every 30 seconds with the worst case in each window reported. Our reading: the use-cases value is a target and the glossary values are categories. Pick one and say which in your runbook.

What Insights does with alerts

Our reading: Insights reads alerts; it does not create them. Learn calls Azure Monitor alerts an optional feature to be set up separately, and says the Overview page shows active alerts classified as severity 0, the "most urgent items" that could stop a deployment working. The Alerts page in Azure Monitor lists the alert instances across your resources, and the severity of each rule is your decision.

Which alert type fits

Learn's alert types page gives the guide. This table maps it to Azure Virtual Desktop.

Alert typeLearn's useAzure Virtual Desktop fit
Log searchAdvanced logic on log data with KQL; billed by evaluation interval, and by time series if you split by dimensionsThe WVD tables: errors, autoscale evaluations, agent health
MetricData that is already precomputed as metrics; one rule can cover many resources of one type in one region, but not VM guest metricsPlatform metrics of session host VMs, for example a condition like the "Percentage CPU is higher than 90%" case on Learn's alert types page; detecting missing data
Activity logEvent-driven and stateless; the monitor condition stays "Fired", and the User response (New, Acknowledged, Closed) tracks handlingA VM deleted or restarted in a production resource group; Service Health and Resource Health

Learn's note on log alerts is worth keeping: they suit detecting specific data rather than a lack of data, because logs are more latent than metrics. For a session host that stopped reporting, Learn points to metric alerts.

Building a log search alert rule

Learn's rule wizard opens in the Azure portal from Monitor > Alerts > + Create > Alert rule, or from Alerts on a resource, which presets the scope:

  1. Choose the Log Analytics workspace as scope.
  2. On Condition, choose Custom log search and write the query. Learn lists limits: no bag_unpack(), pivot() or narrow(), and ago() only with timespan literals.
  3. Under Measurement, choose Table rows or a numeric column, an aggregation type and an aggregation granularity. By default, the rule counts results in the last five minutes.
  4. Optionally Split by dimensions, up to six string or numeric columns. Learn warns against volatile values such as timestamps or GUIDs, because each combination becomes a separate alert.
  5. Set the Threshold (static or dynamic) and the Frequency of evaluation, anywhere from one minute to one day. More frequent evaluation costs more. A one-minute frequency rules out queries with search, union or take.
  6. Under advanced options, require several violations, for example three failures within an hour. Learn notes that the query results must include a datetime column for this option.
  7. Add an action group, set severity, name the rule and, on the Details tab, choose the identity. Learn advises a managed identity if you want to see its permissions; without one, the rule inherits the permissions of the last editor. The identity needs Reader on every workspace the query reads.
  8. Optionally Automatically resolve alerts to make the rule stateful, and Mute actions to stop repeat notifications.

You need read permission on the target, write permission on the rule's resource group, and read on the action group. Fired alerts are kept for 30 days.

A starting set of rules

The first rule is the one Learn recommends for Azure Virtual Desktop. For the others, Learn's Insights, diagnostics and service-alert pages name no thresholds, so the conditions are our suggestions; the VM and health rows add starting values from the baseline alerts project described below. Tune them against two weeks of your own data.

RuleQuery ideaNotes
Service Health: service issue and health advisoryActivity log alerts on service notifications, set up under Service Health in the Azure portalLearn recommends these two event types: service issues that affect connectivity or management, and health advisories such as an open port 3389 or a deprecation
Autoscale evaluation not successfulWVDAutoscaleEvaluationPooled, where ResultType != "Succeeded" (Learn's own filter), threshold above 0Join to WVDErrors on CorrelationId for detail, as Learn's sample does
Admin-fixable errors risingWVDErrors, where ServiceError == false, split by CodeSymbolic, threshold above a count you setLearn says ServiceError false marks issues an admin task can resolve; true means escalate to Microsoft with the correlation ID
Agent healthWVDAgentHealthStatus, filtered on the Status values you see in your data, or on SessionHostHealthCheckResultLearn's column description for Status does not list the values, so read them from your own table first; the baseline project has a Health Check Failure rule, severity 1, evaluated every 5 minutes
Session host VM under loadMetric alert on VM platform metrics, for example from the recommended alert rules in Learn's VM tutorialLearn's VM tutorial lets you pick rules, change the threshold and set the severity, which defaults to Informational, but gives no Azure Virtual Desktop values. The baseline project uses CPU above 95% (severity 1) or 85% (severity 2) and available memory below 1 GB (severity 1) or 2 GB (severity 2), as metric alerts every 5 minutes. Multi-resource rules need the same resource type and region
VM deleted in productionActivity log alert on the resource groupLearn gives a VM deleted in a production resource group as an example scenario

The Azure Monitor baseline alerts project, which Learn's alerts overview links as an example of policy-based alerting at scale, has an Azure Virtual Desktop pattern with predefined rules that are disabled by default. Examples are host pool capacity at 95%, 85% and 50% and disconnected users after 24 and 72 hours; the values quoted in the table above come from the project's version 2.2.1 of 16 December 2025. It is a GitHub-hosted project, not a Learn page, so check its current version before use.

Keep the first version small, because dimension splitting multiplies alerts.

Sources

Follow the showApple PodcastsSpotify

FAQ

Does Azure Virtual Desktop have a built-in alert set?

Learn recommends two Service Health alert types for Azure Virtual Desktop, service issue and health advisory, but the Insights, diagnostics and service-alert pages name no thresholds for alert rules on diagnostics or performance data. Azure Monitor's recommended alert rules are enabled for virtual machines, AKS resources and Log Analytics workspaces. The Azure Monitor baseline alerts project, a GitHub-hosted project that Learn links and not a Learn page itself, includes an Azure Virtual Desktop pattern with predefined rules that are disabled by default. Otherwise you create the rules yourself,

Which alert type should I use for Azure Virtual Desktop diagnostics?

Log search alerts, because the diagnostics land in Log Analytics tables whose names start with WVD. Use activity log alerts for events such as a VM being deleted and for Service Health notifications, and metric alerts for platform metrics of the session host VMs or for detecting missing data.

Why did my Insights data stop after a session host update?

Learn says the Azure Monitor agent is not installed automatically on session hosts that session host update creates. It suggests Azure Policy to install the agent, or adding the hosts again from within Insights in the Azure portal.

Entities in this article

Topics of this article:

Azure Virtual Desktop Insights – Product by Microsoft Azure Virtual Desktop – Cloud platform by Microsoft

Related articles

More articles on related topics:

RSS