From 1a906585bfd3a7eb303d7eacc0f70e4d7e0c8838 Mon Sep 17 00:00:00 2001 From: Elena Xin Date: Fri, 14 Jun 2024 16:52:13 +0800 Subject: [PATCH] removing preferred app group type forcenew to fix issue 26324 --- .../desktopvirtualization/virtual_desktop_host_pool_resource.go | 1 - .../virtual_desktop_host_pool_resource_test.go | 2 +- website/docs/r/virtual_desktop_host_pool.html.markdown | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/services/desktopvirtualization/virtual_desktop_host_pool_resource.go b/internal/services/desktopvirtualization/virtual_desktop_host_pool_resource.go index 74542fd430b5..279b88395430 100644 --- a/internal/services/desktopvirtualization/virtual_desktop_host_pool_resource.go +++ b/internal/services/desktopvirtualization/virtual_desktop_host_pool_resource.go @@ -138,7 +138,6 @@ func resourceVirtualDesktopHostPool() *pluginsdk.Resource { "preferred_app_group_type": { Type: pluginsdk.TypeString, Optional: true, - ForceNew: true, Description: "Preferred App Group type to display", ValidateFunc: validation.StringInSlice([]string{ string(hostpool.PreferredAppGroupTypeDesktop), diff --git a/internal/services/desktopvirtualization/virtual_desktop_host_pool_resource_test.go b/internal/services/desktopvirtualization/virtual_desktop_host_pool_resource_test.go index 1cb071b53641..bf82798efaa3 100644 --- a/internal/services/desktopvirtualization/virtual_desktop_host_pool_resource_test.go +++ b/internal/services/desktopvirtualization/virtual_desktop_host_pool_resource_test.go @@ -373,7 +373,7 @@ resource "azurerm_virtual_desktop_host_pool" "test" { start_vm_on_connect = true load_balancer_type = "BreadthFirst" maximum_sessions_allowed = 100 - preferred_app_group_type = "Desktop" + preferred_app_group_type = "RailApplications" custom_rdp_properties = "audiocapturemode:i:1;audiomode:i:0;" tags = { diff --git a/website/docs/r/virtual_desktop_host_pool.html.markdown b/website/docs/r/virtual_desktop_host_pool.html.markdown index afff9a0570dc..6fe72f8dbcf4 100644 --- a/website/docs/r/virtual_desktop_host_pool.html.markdown +++ b/website/docs/r/virtual_desktop_host_pool.html.markdown @@ -77,7 +77,7 @@ The following arguments are supported: * `maximum_sessions_allowed` - (Optional) A valid integer value from 0 to 999999 for the maximum number of users that have concurrent sessions on a session host. Should only be set if the `type` of your Virtual Desktop Host Pool is `Pooled`. -* `preferred_app_group_type` - (Optional) Option to specify the preferred Application Group type for the Virtual Desktop Host Pool. Valid options are `None`, `Desktop` or `RailApplications`. Default is `Desktop`. Changing this forces a new resource to be created. +* `preferred_app_group_type` - (Optional) Option to specify the preferred Application Group type for the Virtual Desktop Host Pool. Valid options are `None`, `Desktop` or `RailApplications`. Default is `Desktop`. * `scheduled_agent_updates` - (Optional) A `scheduled_agent_updates` block as defined below. This enables control of when Agent Updates will be applied to Session Hosts.