Skip to content

Commit

Permalink
lb type can be dynamically changed
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwilcox9 committed Mar 14, 2023
1 parent f25c80c commit 32c962a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ func resourceVirtualDesktopHostPool() *pluginsdk.Resource {
"load_balancer_type": {
Type: pluginsdk.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validation.StringInSlice([]string{
string(hostpool.LoadBalancerTypeBreadthFirst),
string(hostpool.LoadBalancerTypeDepthFirst),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ resource "azurerm_virtual_desktop_host_pool" "test" {
resource_group_name = azurerm_resource_group.test.name
type = "Pooled"
validate_environment = true
load_balancer_type = "BreadthFirst"
load_balancer_type = "DepthFirst"
}
`, data.RandomInteger, data.Locations.Secondary, data.RandomString)
}
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/virtual_desktop_host_pool.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The following arguments are supported:

* `type` - (Required) The type of the Virtual Desktop Host Pool. Valid options are `Personal` or `Pooled`. Changing the type forces a new resource to be created.

* `load_balancer_type` - (Required) `BreadthFirst` load balancing distributes new user sessions across all available session hosts in the host pool. Possible values are `BreadthFirst`, `DepthFirst` and `Persistent`. Changing this forces a new resource to be created.
* `load_balancer_type` - (Required) `BreadthFirst` load balancing distributes new user sessions across all available session hosts in the host pool. Possible values are `BreadthFirst`, `DepthFirst` and `Persistent`.
`DepthFirst` load balancing distributes new user sessions to an available session host with the highest number of connections but has not reached its maximum session limit threshold.
`Persistent` should be used if the host pool type is `Personal`

Expand Down

0 comments on commit 32c962a

Please sign in to comment.