@@ -83,27 +83,45 @@ Here's how to configure load balancing with Azure PowerShell.
83
83
- To set breadth-first without adjusting the maximum session limit, run the following command:
84
84
85
85
``` powershell
86
- Update-AzWvdHostPool -ResourceGroupName <ResourceGroupName> -Name <HostPoolName> -LoadBalancerType 'BreadthFirst'
86
+ $parameters = @{
87
+ Name = '<HostPoolName>'
88
+ ResourceGroupName = '<ResourceGroupName>'
89
+ LoadBalancerType = 'BreadthFirst'
90
+ }
91
+
92
+ Update-AzWvdHostPool @parameters
87
93
```
88
94
89
95
- To set depth-first and adjust the maximum session limit to 10, run the following command:
90
96
91
97
``` powershell
92
- Update-AzWvdHostPool -ResourceGroupName <ResourceGroupName> -Name <HostPoolName> -LoadBalancerType 'DepthFirst' -MaxSessionLimit 10
98
+ $parameters = @{
99
+ Name = '<HostPoolName>'
100
+ ResourceGroupName = '<ResourceGroupName>'
101
+ LoadBalancerType = 'DepthFirst'
102
+ MaxSessionLimit = '10'
103
+ }
104
+
105
+ Update-AzWvdHostPool @parameters
93
106
```
94
107
95
108
3 . To make sure the setting has updated, run this command:
96
109
97
110
``` powershell
98
- Get-AzWvdHostPool -ResourceGroupName <ResourceGroupName> -Name <HostPoolName> | Format-List Name, LoadBalancerType, MaxSessionLimit
111
+ $parameters = @{
112
+ Name = '<HostPoolName>'
113
+ ResourceGroupName = '<ResourceGroupName>'
114
+ }
115
+
116
+ Get-AzWvdHostPool @parameters | Format-Table Name, LoadBalancerType, MaxSessionLimit
99
117
```
100
118
101
119
The output should be similar to the following output:
102
120
103
121
``` output
104
- Name : contosohp01
105
- LoadBalancerType : DepthFirst
106
- MaxSessionLimit : 10
122
+ Name LoadBalancerType MaxSessionLimit
123
+ ----------- ---------------- ---------------
124
+ contosohp01 DepthFirst 10
107
125
```
108
126
109
127
### [ Azure CLI] ( #tab/cli )
0 commit comments