Maximum session limit (Azure Virtual Desktop)
Concept
The maximum session limit is the number of user sessions allowed per session host in an Azure Virtual Desktop pooled host pool. Available capacity equals available hosts times this limit, which autoscale uses.
Relationships
Maximum session limit (Azure Virtual Desktop) falls under the broader topic Host pool (Azure Virtual Desktop).
Description
The maximum session limit is a setting of a pooled host pool in Azure Virtual Desktop. It caps the number of concurrent user sessions per session host. In the Azure portal it is set under Host pools, the pool, Properties, next to the load balancing algorithm, and changing it requires the Desktop Virtualization Host Pool Contributor role. In a personal host pool each session host serves one user, and load balancing does not apply.
The limit interacts with the load balancing algorithm. Depth-first requires a limit: it sends new sessions to the available host with the most sessions that has not yet reached it. Breadth-first does not require one, and when a host pool is created with breadth-first the default is 999999, which is also the upper bound of the parameter. Lowering the limit does not affect sessions that are already running. Microsoft also notes that under a high rate of concurrent connections the number of sessions on a host can exceed the limit. Once every host has reached it, an admin must raise the limit or add session hosts.
Autoscale uses the limit to calculate capacity. Available host pool capacity is the number of available session hosts times the limit, so two available hosts with a limit of five give a capacity of ten. Used capacity is user sessions divided by that capacity, and autoscale starts another host only when used capacity exceeds the capacity threshold. During ramp-down, Learn gives the formula required hosts = total sessions (active plus disconnected) divided by (limit times capacity threshold). In its example with four sessions, a limit of five and a threshold of 75 percent, two hosts remain running. The right value depends on the workload, so it is an admin decision rather than a fixed recommendation.
| Type | Concept |
|---|---|
| Kind | Metric |
| Also known as | MaxSessionLimit |
| Documentation | Maximum session limit (Azure Virtual Desktop) – Microsoft Learn learn.microsoft.com |
Related topics in brief
Topics linked to Maximum session limit (Azure Virtual Desktop), each briefly explained:
- Host pool (Azure Virtual Desktop) – Narrower topic of Azure Virtual Desktop · Broader topic
A host pool in Azure Virtual Desktop is a collection of Azure virtual machines registered as session hosts; host pools are either pooled, shared by multiple users, or personal, with a dedicated machine per user.
All relationships of Maximum session limit (Azure Virtual Desktop), grouped by type of relationship:
Broader topic
Broader topics of Maximum session limit (Azure Virtual Desktop):
Community wiki
Short info above, community knowledge below: add practical tips, examples or corrections. New contributions are reviewed first; trusted members publish directly.
Experts and companies for this topic
Nobody has listed this topic yet. Add it to your profile.
Experts on related topics
Experts on topics related to Maximum session limit (Azure Virtual Desktop), each with the topic that connects them:
- Mirko Peters · via Host pool (Azure Virtual Desktop)
Sources
- Maximum session limit (Azure Virtual Desktop) – Microsoft Learn learn.microsoft.com
Maintained by Mirko Peters (Microsoft MVP) · Last updated: