Skip to content

Commit

Permalink
Added default_desktop_display_name support in azurerm_virtual_desktop… (
Browse files Browse the repository at this point in the history
#1734)

* added default_desktop_display_name support in azurerm_virtual_desktop_application_group

* added in integration test

* Update .github/workflows/standalone-scenarios.json

---------

Co-authored-by: Arnaud Lheureux <[email protected]>
  • Loading branch information
hadiulla and arnaudlh authored Aug 3, 2023
1 parent 1c33fc2 commit ddd6937
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
4 changes: 2 additions & 2 deletions examples/app_config/101-private-link/configuration.tfvars
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ vnets = {
}
subnets = {
appconfig_endpoints = {
name = "appconfig"
cidr = ["10.1.100.64/26"]
name = "appconfig"
cidr = ["10.1.100.64/26"]
}
private_link = {
name = "private-links"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ resource_groups = {

wvd_application_groups = {
wvd_app_group_1 = {
resource_group_key = "wvd_region1"
host_pool_key = "wvd_hp1"
wvd_workspace_key = "wvd_ws1"
name = "desktopgroup"
friendly_name = "Published Desktop"
description = "A description of my workspace"
resource_group_key = "wvd_region1"
host_pool_key = "wvd_hp1"
wvd_workspace_key = "wvd_ws1"
name = "desktopgroup"
friendly_name = "Published Desktop"
description = "A description of my workspace"
default_desktop_display_name = "desktopgroup"
#Type of Virtual Desktop Application Group. Valid options are RemoteApp or Desktop.
type = "Desktop"
}
Expand Down Expand Up @@ -150,4 +151,4 @@ dynamic_keyvault_secrets = {
attribute_key = "token"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ resource "azurecaf_name" "dag" {
}

resource "azurerm_virtual_desktop_application_group" "dag" {
name = azurecaf_name.dag.result
location = local.location
resource_group_name = local.resource_group_name
friendly_name = try(var.settings.friendly_name, null)
description = try(var.settings.description, null)
type = var.settings.type
host_pool_id = var.host_pool_id
tags = merge(local.tags, try(var.settings.tags, null))
name = azurecaf_name.dag.result
location = local.location
resource_group_name = local.resource_group_name
friendly_name = try(var.settings.friendly_name, null)
default_desktop_display_name = var.settings.type == "Desktop" ? try(var.settings.default_desktop_display_name, null) : null
description = try(var.settings.description, null)
type = var.settings.type
host_pool_id = var.host_pool_id
tags = merge(local.tags, try(var.settings.tags, null))
}

resource "azurerm_virtual_desktop_workspace_application_group_association" "workspaceremoteapp" {
workspace_id = var.workspace_id
application_group_id = azurerm_virtual_desktop_application_group.dag.id
}

0 comments on commit ddd6937

Please sign in to comment.