Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Fix - azurerm_virtual_desktop_workspace_application_group_association- Association should not remove the tags #19574

Merged
merged 2 commits into from
Dec 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func resourceVirtualDesktopWorkspaceApplicationGroupAssociationCreate(d *plugins
Properties: &workspace.WorkspacePatchProperties{
ApplicationGroupReferences: &applicationGroupAssociations,
},
Tags: model.Tags,
}
if _, err = client.Update(ctx, *workspaceId, payload); err != nil {
return fmt.Errorf("creating association between %s and %s: %+v", *workspaceId, *applicationGroupId, err)
Expand Down Expand Up @@ -200,6 +201,7 @@ func resourceVirtualDesktopWorkspaceApplicationGroupAssociationDelete(d *plugins
Properties: &workspace.WorkspacePatchProperties{
ApplicationGroupReferences: &applicationGroupReferences,
},
Tags: model.Tags,
}
if _, err = client.Update(ctx, id.Workspace, payload); err != nil {
return fmt.Errorf("removing association between %s and %s: %+v", id.Workspace, id.ApplicationGroup, err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ resource "azurerm_virtual_desktop_workspace" "test" {
name = "acctestWS%d"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
tags = {
environment = "test"
}
}

resource "azurerm_virtual_desktop_host_pool" "test" {
Expand Down Expand Up @@ -168,6 +171,9 @@ resource "azurerm_virtual_desktop_workspace" "test" {
name = "acctestWS%d"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
tags = {
environment = "test"
}
}

resource "azurerm_virtual_desktop_host_pool" "test" {
Expand Down