From 279b7a4a992726d1007efe8492ee8a6d594fc864 Mon Sep 17 00:00:00 2001 From: elena Date: Thu, 15 Dec 2022 11:40:27 +0800 Subject: [PATCH] fix issue 19687 --- .../virtual_desktop_application_group_resource.go | 1 + website/docs/r/virtual_desktop_application_group.html.markdown | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/services/desktopvirtualization/virtual_desktop_application_group_resource.go b/internal/services/desktopvirtualization/virtual_desktop_application_group_resource.go index 374ed1f51c95..70a930839ac0 100644 --- a/internal/services/desktopvirtualization/virtual_desktop_application_group_resource.go +++ b/internal/services/desktopvirtualization/virtual_desktop_application_group_resource.go @@ -81,6 +81,7 @@ func resourceVirtualDesktopApplicationGroup() *pluginsdk.Resource { "host_pool_id": { Type: pluginsdk.TypeString, Required: true, + ForceNew: true, ValidateFunc: hostpool.ValidateHostPoolID, }, diff --git a/website/docs/r/virtual_desktop_application_group.html.markdown b/website/docs/r/virtual_desktop_application_group.html.markdown index 58de12b3c072..4c00f496e339 100644 --- a/website/docs/r/virtual_desktop_application_group.html.markdown +++ b/website/docs/r/virtual_desktop_application_group.html.markdown @@ -76,8 +76,7 @@ The following arguments are supported: * `type` - (Required) Type of Virtual Desktop Application Group. Valid options are `RemoteApp` or `Desktop` application groups. Changing this forces a new resource to be created. -* `host_pool_id` - (Required) Resource ID for a Virtual Desktop Host Pool to associate with the - Virtual Desktop Application Group. +* `host_pool_id` - (Required) Resource ID for a Virtual Desktop Host Pool to associate with the Virtual Desktop Application Group. Changing the name forces a new resource to be created. * `friendly_name` - (Optional) Option to set a friendly name for the Virtual Desktop Application Group.