AVD Scaling Plans: Setup, Best Practices and "Not Working" Fixes
By Jay H.Published Updated 10 min read
Jay H. · Founder, Sessionright
Founder of Sessionright. Twenty years running Citrix, NetScaler, Citrix Cloud, NetScaler Console, Azure and Azure Virtual Desktop estates; writes the guides and reviews the platform's rules.
Scaling plan not doing what it should? Talk it through with a Sessionright engineer: 15 minutes, free.
In September 2026 Microsoft made managed identity support generally available for autoscale and Start VM on Connect (what's new). That is one more identity to grant power rights to, and one more way to get the assignment wrong. The complaint is always the same: you create an Azure Virtual Desktop scaling plan, and hosts never start, never stop, or stay on all night.
This guide covers how autoscale decides, the role it needs, pooled and personal schedules, Start VM on Connect, the causes behind "not working", and the logs. For the money side, see the AVD cost optimization checklist.
How autoscale works
A scaling plan holds schedules with four phases: ramp-up, peak, ramp-down and off-peak. One plan can serve several host pools of the same type, but each pool takes only one plan, and the plan runs in its own time zone (autoscale scenarios).
The capacity math comes from Microsoft's autoscale glossary:
- Available host pool capacity = max session limit × available session hosts. "Available" means powered on and passing all agent health checks.
- Used host pool capacity = active plus disconnected sessions ÷ available capacity.
- Capacity threshold: when used capacity goes above it, autoscale starts hosts. When used capacity is below it and a host can be stopped without going over it, autoscale stops one.
Microsoft's example: two hosts with a limit of 20 give 40 sessions of capacity. At a 75% threshold, autoscale starts a third host once there are more than 30 sessions (create a scaling plan). At exactly the threshold, it does nothing (autoscale FAQ).
| Phase | What you set | Behaviour worth knowing |
|---|---|---|
| Ramp-up | Start time, load balancing, minimum % of hosts, capacity threshold | Pooled autoscale never stops hosts in this phase |
| Peak | Start time, load balancing | Threshold carries over from ramp-up |
| Ramp-down | Start time, load balancing, minimum %, threshold, force logoff, wait time, message | The only phase where users can be forced to sign out |
| Off-peak | Start time, load balancing | Threshold carries over from ramp-down |
Minimum percentages round up: 10% of seven hosts keeps one on. Unscheduled days inherit the last off-peak settings until the next ramp-up (create a scaling plan).
Load balancing. In pooled pools, autoscale ignores the host pool's setting and applies each phase's own (autoscale scenarios). Microsoft suggests breadth-first for ramp-up and peak, and depth-first for ramp-down and off-peak, so sessions consolidate onto fewer hosts (autoscale FAQ).
Ramp-down. Without force logoff, hosts stop when they have no active or disconnected sessions, or no active sessions (rampDownStopHostsWhen: ZeroSessions or ZeroActiveSessions in the REST API). Either way autoscale keeps Total sessions / (Max session limit × Capacity threshold %) hosts running, rounded up. With force logoff, it drains the host with the fewest sessions, sends your message, waits, signs users out and deallocates (autoscale scenarios).
Step 1: Prepare the host pool
- Set the max session limit. Go to Host pools > pool > Properties > Max session limit, or run
Update-AzWvdHostPool -ResourceGroupName <rg> -Name <hostpool> -MaxSessionLimit <n>. Breadth-first pools are created with999999(load balancing). - Remove any other scaler, including the Azure Automation scaling tool and third-party tools (autoscale scenarios).
Step 2: Assign the role (the "permissions" failure)
Assign Desktop Virtualization Power On Off Contributor (role ID 40c5ff49-9181-41f8-ae61-143b0e78555e) on every subscription that holds the host pools or their session hosts. It lets the service start and deallocate VMs, write session hosts and sign users out (built-in roles). Assigning it needs Microsoft.Authorization/roleAssignments/write, which comes with Owner or User Access Administrator (create a scaling plan).
The service principal is named Azure Virtual Desktop or Windows Virtual Desktop, depending on when the provider was registered, and tenants that used AVD classic can see two apps with the same name. Match on the application ID (assign roles to the service principal):
$parameters = @{
RoleDefinitionName = "Desktop Virtualization Power On Off Contributor"
ApplicationId = "9cdead84-a844-4324-93f2-b2e6bb768d07"
Scope = "/subscriptions/$subId"
}
New-AzRoleAssignment @parameters
Verify with Get-AzRoleAssignment; Scope should be /subscriptions/<id>:
Get-AzRoleAssignment -ServicePrincipalName '9cdead84-a844-4324-93f2-b2e6bb768d07' |
Where-Object RoleDefinitionName -like 'Desktop Virtualization Power On*' |
Select-Object RoleDefinitionName, Scope
Using a host pool managed identity instead? Give it the same role at the same scope (assign roles).
Step 3: Create and assign the plan
In the portal, go to Azure Virtual Desktop > Scaling Plans > Create (create a scaling plan):
- Basics: time zone, host pool type, Exclusion tag (for example
excludeFromScaling) and, for pooled plans, Power management autoscaling. - Schedules: Add schedule, pick days under Repeat on, then fill in Ramp up, Peak hours, Ramp-down and Off-peak hours.
- Host pool assignments: tick the pools, then Review + create. Changes apply immediately.
In IaC, the matching REST properties are exclusionTag, hostPoolReferences[].scalingPlanEnabled and schedule fields such as rampUpCapacityThresholdPct (REST reference). Confirm the assignment took:
(Get-AzWvdScalingPlan -ResourceGroupName <rg> -Name <plan>).HostPoolReference | FL HostPoolArmPath,ScalingPlanEnabled
Pooled vs personal host pools (and hibernate)
Personal schedules have no capacity threshold. Per phase you set Start VM on Connect on or off, and what happens after a session is disconnected or logged off for 0 to 360 minutes: deallocate, hibernate or nothing. At ramp-up you also choose Assigned VMs only, Assigned and unassigned VMs or Don't turn VMs on at start time (create a scaling plan), which is rampUpAutoStartHosts = WithAssignedUser, All or None in the REST API.
Personal autoscale never forces a sign-out, doesn't touch drain mode, and deallocates a VM that was started but never signed into. If you pick hibernate on VMs without hibernation enabled, it does nothing at all (autoscale FAQ).
FSLogix and App Attach don't support hibernate, so don't use it with them (create a scaling plan). Hibernate for personal pools and for autoscale has been generally available since May 2024 (what's new).
Dynamic autoscale: treat it as preview
Dynamic autoscaling creates and deletes session hosts as well as powering them on and off. It works only with pooled host pools that use session host configuration, and it isn't available in Azure Government (autoscale scenarios).
The June 2026 what's new entry calls it "now available", but the scenarios page and glossary still label it "(preview)". It also needs Az.DesktopVirtualization 5.4.2-preview or later, the Desktop Virtualization Virtual Machine Contributor role on top of Power On Off Contributor, and access to wvdhpustgr0prod.blob.core.windows.net, without which host creation fails with CustomerVmNoAccessToDeploymentPackageException (create a scaling plan).
To get create and delete only, set Minimum percentage of active hosts to 100. To get power management only, set the minimum and maximum host pool sizes to the same value (autoscale FAQ).
Start VM on Connect
Start VM on Connect needs Desktop Virtualization Power On Contributor (489581de-a3bd-480d-9518-53dea7416b33, built-in roles). Microsoft has corrected its scope guidance: subscription scope is recommended, but a lower scope works if it contains the session host VMs (Start VM on Connect). Autoscale's subscription requirement still stands.
To turn it on, go to Host pools > pool > Properties > Start VM on connect: Yes, or run Update-AzWvdHostPool -ResourceGroupName <resourcegroupname> -Name <hostpoolname> -StartVMOnConnect:$true (Start VM on Connect).
Alongside autoscale:
- Pooled pools: it starts a VM only when none are running, and at most one every five minutes; anyone else signing in during that window gets No resources available (Start VM on Connect). If you set off-peak minimum hosts to 0%, this is what starts the first host.
- Personal pools: if ramp-up starts no VMs, Microsoft strongly recommends turning on Start VM on Connect for that phase (create a scaling plan).
- It never deallocates. A user who shuts down from the Start menu leaves the VM allocated (Start VM on Connect FAQ). Pair it with autoscale.
If it isn't working, check the role, ANSI-only names for the host pool, session hosts and resource group, that the pool has an application group and workspace, and that the user came through AVD: connecting straight to a VM's IP or name doesn't start it (Start VM on Connect).
Why your scaling plan isn't working
| Symptom | Likely cause | Fix |
|---|---|---|
| Nothing ever starts or stops | Role missing, scoped below subscription, or given to the wrong "Windows Virtual Desktop" app | Step 2; verify by app ID |
| A host you drained comes back into service | Autoscale overrides drain mode in pooled pools, whoever set it | Add the exclusion tag (below) |
| Hosts stay on overnight | Disconnected sessions count toward capacity | Disconnected-session time limit plus 0% off-peak minimum |
| Force logoff never happens | Ramp-down is shorter than the wait time, and off-peak never forces sign-outs | Lengthen ramp-down or shorten the wait |
| No host starts at a busy moment | Used capacity equals the threshold, or MaxSessionLimit is still 999999 |
Set a real limit |
| Extra hosts stay on in the morning | Pooled ramp-up never stops hosts | By design; tune the minimum % |
| Weekend runs on Friday's settings | Unselected days inherit the last off-peak phase | Add a weekend schedule |
| Hibernate does nothing | Hibernation isn't enabled on the VMs | Enable it, or choose deallocate |
| Users get "No resources available" | Every untagged host is off, or the five-minute Start VM on Connect limit applies | See AVD no available resources |
| Unhealthy hosts are never used | Only hosts that pass the health checks count as available | Fix Unavailable hosts |
Causes per the autoscale FAQ and scenarios.
Exclusion tags. Only the tag name has to match the plan's exclusion tag. Autoscale won't start or stop a tagged VM or change its drain mode, but tagged hosts still count toward the minimum percentage (glossary; create a scaling plan). Apply the tag with Update-AzTag:
Update-AzTag -ResourceId '/subscriptions/<sub>/resourceGroups/<rg>/providers/Microsoft.Compute/virtualMachines/<vm>' -Tag @{ 'excludeFromScaling' = 'maintenance' } -Operation Merge
Remove it afterwards with -Operation Delete, then turn off drain mode.
Disconnected sessions. Microsoft's example: 6 disconnected users, a limit of 5 and a 90% threshold give 6 / 4.5 = 1.33, so 2 hosts stay up. The fix is Remote Desktop Session Host > Session Time Limits > Set time limit for disconnected sessions under Administrative Templates (autoscale FAQ).
Reading the logs and Insights
For pooled pools, add Autoscale logs for pooled host pools to the host pool's Diagnostic settings, alongside Checkpoint, Error, Management, Connection, HostRegistration and AgentHealthStatus, sent to Log Analytics. The Autoscale tab then appears in the host pool's Insights workbook (monitor autoscale).
Every evaluation lands in WVDAutoscaleEvaluationPooled (table reference):
WVDAutoscaleEvaluationPooled
| where TimeGenerated > ago(1d)
| project TimeGenerated, ConfigSchedulePhase, ResultType, SessionCount, SessionOccupancyPercent,
ActiveSessionHostCount, ExcludedSessionHostCount, UnhealthySessionHostCount,
MaxSessionLimitPerSessionHost, ScalingReasonMessage
| order by TimeGenerated desc
A high ExcludedSessionHostCount means forgotten tags; MaxSessionLimitPerSessionHost of 999999 means a missed Step 1. For failures, use Microsoft's join:
WVDAutoscaleEvaluationPooled
| where ResultType != "Succeeded"
| join kind=leftouter WVDErrors
on CorrelationId
| order by _ResourceId asc, TimeGenerated asc, CorrelationId, TimeGenerated1 asc
Insights doesn't cover personal pools. For those, send Autoscale logs from the scaling plan's diagnostic setting to a storage account (container insight-logs-autoscaling) or an event hub, read ResultType and Message, and quote the CorrelationId to support (autoscale diagnostics). For workspace setup and ingestion costs, see our AVD monitoring guide.
FAQ
What is an AVD scaling plan?
An Azure Resource Manager object holding schedules that power session hosts on and off (or, with dynamic scaling, create and delete them). There's no extra charge for it (autoscale FAQ).
Why is my AVD scaling plan not working?
Check the Power On Off Contributor assignment at subscription scope, a default MaxSessionLimit, another scaling tool, and disconnected sessions. ScalingReasonMessage usually names the reason.
What permissions does an AVD scaling plan need?
Desktop Virtualization Power On Off Contributor at subscription scope for the service principal or host pool managed identity, plus Desktop Virtualization Virtual Machine Contributor for dynamic autoscale.
Why is Start VM on Connect not working?
Usually a missing Power On Contributor assignment, non-ANSI names, a direct connection that bypassed AVD, or the pooled five-minute limit.
Can an AVD scaling plan scale to zero hosts?
Yes: 0% minimum, no remaining sessions (disconnected included), and Start VM on Connect so the first user can get in.
Want a second pair of eyes?
Sessionright's AVD assessment reviews scaling plans, role assignments, exclusion tags and autoscale evaluation results across your host pools, then gives you a report. It's read-only by default. If you later let Sessionright for Azure Virtual Desktop make changes, you approve each one and every action is logged (security). If you would rather talk it through, book a 15-minute call: no install, no sales deck.
Sources
- Microsoft Learn: Autoscale scaling plans and example scenarios
- Microsoft Learn: Create and assign an autoscale scaling plan
- Microsoft Learn: Azure Virtual Desktop autoscale FAQ
- Microsoft Learn: Autoscale glossary
- Microsoft Learn: Assign Azure RBAC roles to the Azure Virtual Desktop service principals
- Microsoft Learn: Built-in Azure RBAC roles for Azure Virtual Desktop
- Microsoft Learn: Configure Start VM on Connect
- Microsoft Learn: Start VM on Connect FAQ
- Microsoft Learn: Configure host pool load balancing
- Microsoft Learn: Drain session hosts for maintenance
- Microsoft Learn: Monitor Autoscale operations with Insights
- Microsoft Learn: Set up diagnostics for Autoscale
- Microsoft Learn: WVDAutoscaleEvaluationPooled table reference
- Microsoft Learn: Scaling Plans - Create (REST API 2026-04-16)
- Microsoft Learn: Scaling Plan Personal Schedules - Create (REST API 2026-04-16)
- Microsoft Learn: What's new in Azure Virtual Desktop
- Microsoft Learn: Get-AzRoleAssignment
- Microsoft Learn: Update-AzTag
Want this watched for you, with the fix drafted before you ask?
Sessionright is an AI operator for Azure Virtual Desktop: it checks session hosts, scaling plans, FSLogix and cost continuously, attaches the evidence, and proposes fixes for a named approver to sign. It has run against simulated estates and Sessionright's own Azure lab tenant so far. To see what it finds on your own estate, run the free assessment: one command in Azure Cloud Shell reads your estate, never changes it, and writes an HTML report in about five minutes for a typical estate. Your estate data stays with you unless you choose to email yourself the HTML report through Sessionright. Design partner program: 90-day free Operator pilot, then 50% off year 1; list price at signing held to month 24. Engineer-led assessments are 50% off for design partners. Outside the program the onboarding assessment is $2,500, up to 500 users, one tenant.
Not ready for that? Talk to a Sessionright engineer: 15 minutes, free, and you leave with a next step.
Get this script as a file
Download the read-only script pack, with the source guides and instructions for each file.
Or get the next guide by email. One email per new guide, no marketing list.
Related guides
- AVD No Available Resources Error: Causes and Fixes
Fix the AVD No resources available error: check desktop assignment, drained or stopped hosts, scaling plan exclusions, session limits and Start VM on Connect.
- Azure Virtual Desktop Cost Optimization: 20-Point Checklist
A 20-point Azure Virtual Desktop cost optimization checklist: scaling plans, Start VM on Connect, license flags, reservations, ephemeral OS disks, storage.
- AVD Autoscale Limitations: Where Native Scaling Plans Stop
The limits Microsoft documents for native AVD autoscale, how power management and dynamic autoscaling differ, and which jobs need another native feature.
- FSLogix Azure Files and NetApp Files: Permissions and Kerberos
Set up FSLogix profile shares on Azure Files or Azure NetApp Files: Microsoft's sizing guidance, the documented share and NTFS ACLs, Entra Kerberos and costs.
- AVD Health Check: 40-Point Checklist for Azure Virtual Desktop
A 40-point AVD health check for Azure Virtual Desktop: the PowerShell, portal path or query for each check, what good looks like, and the Microsoft source.
Citrix and NetScaler are trademarks of Citrix Systems, Inc. and/or its affiliates. Azure is a trademark of the Microsoft group of companies. Sessionright is not affiliated with or endorsed by Cloud Software Group, Citrix or Microsoft.