Azure Windows Virtual Desktop Load Balancing

In this video, I go over the two options for WVD Load Balancing, Depth-First and Breadth-First.  I also demonstrate how each distributes new connections and how to change Load Balancing options and set the maximum number of connections per session host.

Commands Used:

Add Add-RdsAccount -DeploymentUrl ""

$tenantName = "<Tenant Name>"
$hostpoolName = "<Host Pool Name>"

Get-RdsHostPool -TenantName $tenantName -HostPoolName $hostpoolName

Get-RdsSessionHost -TenantName $tenantName -HostPoolName $hostpoolName | Format-Table SessionHostName,Sessions,AllowNewSession

Set-RdsSessionHost -TenantName $tenantName -HostPoolName $hostpoolName -SessionHostName -AllowNewSession $true

Get-RdsHostPool -TenantName $tenantName -HostPoolName $hostpoolName

Set-RdsHostPool -TenantName $tenantName -HostPoolName $hostpoolName -DepthFirstLoadBalancer -MaxSessionLimit 2

Set-RdsHostPool -TenantName $tenantName -HostPoolName $hostpoolName -BreadthFirstLoadBalancer

Set-RdsHostPool -TenantName $tenantName -HostPoolName $hostpoolName -BreadthFirstLoadBalancer -MaxSessionLimit 999999 

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.