@@ -47,43 +47,14 @@ resource "azurerm_role_assignment" "avd_autoscale_blue_hostpool" {
4747 principal_type = " ServicePrincipal"
4848}
4949
50- # resource "azurerm_role_assignment" "avd_autoscale_blue" {
51- # for_each = (local.deploy_blue_avd ? var.regions : {})
52-
53- # scope = azurerm_resource_group.avd_blue[each.key].id
54- # role_definition_name = "Desktop Virtualization Contributor"
55-
56- # # Azure Virtual Desktop autoscale service principal (Microsoft-managed)
57- # principal_id = local.principal_id
58- # }
59-
60- # resource "azurerm_role_assignment" "avd_autoscale_blue_vm_contributor" {
61- # for_each = (local.deploy_blue_avd ? var.regions : {})
62-
63- # scope = azurerm_resource_group.avd_blue[each.key].id
64- # role_definition_name = "Virtual Machine Contributor"
65-
66- # # Azure Virtual Desktop autoscale service principal (Microsoft-managed)
67- # principal_id = local.principal_id
68- # }
69-
70- # # Assign role to Terraform SP so it can create role assignments
71- # resource "azurerm_role_assignment" "terraform_user_access_blue" {
72- # for_each = (local.deploy_blue_avd ? var.regions : {})
73-
74- # scope = azurerm_resource_group.avd_blue[each.key].id
75- # role_definition_name = "User Access Administrator"
76-
77- # principal_id = local.principal_id
78- # }
7950
8051module "virtual-desktop-blue" {
8152 for_each = (local. deploy_blue_avd ? var. regions : {})
8253
8354 source = " ../../../../dtos-devops-templates/infrastructure/modules/virtual-desktop"
8455
8556 custom_rdp_properties = " drivestoredirect:s:*;audiomode:i:0;videoplaybackmode:i:1;redirectclipboard:i:1;redirectprinters:i:1;devicestoredirect:s:*;redirectcomports:i:1;redirectsmartcards:i:1;usbdevicestoredirect:s:*;enablecredsspsupport:i:1;redirectwebauthn:i:1;use multimon:i:1;enablerdsaadauth:i:1;"
86- computer_name_prefix = " avd ${ var . env_type } "
57+ computer_name_prefix = " lung ${ var . env_type } "
8758 dag_name = module. config [each . key ]. names . avd-dag
8859 host_pool_name = module. config [each . key ]. names . avd-host-pool
8960 location = each. key
@@ -138,25 +109,6 @@ resource "azurerm_resource_group" "avd_green" {
138109 location = each. key
139110}
140111
141- # resource "azurerm_role_assignment" "avd_autoscale_green" {
142- # for_each = (local.deploy_green_avd ? var.regions : {})
143-
144- # scope = azurerm_resource_group.avd_green[each.key].id
145- # role_definition_name = "Desktop Virtualization Contributor"
146-
147- # principal_id = local.principal_id
148- # }
149-
150- # # Assign role to Terraform SP so it can create role assignments
151- # resource "azurerm_role_assignment" "terraform_user_access_green" {
152- # for_each = (local.deploy_green_avd ? var.regions : {})
153-
154- # scope = azurerm_resource_group.avd_green[each.key].id
155- # role_definition_name = "User Access Administrator"
156- # principal_id = local.principal_id
157- # }
158-
159-
160112
161113# Green AVD deployment
162114module "virtual-desktop-green" {
@@ -165,7 +117,7 @@ module "virtual-desktop-green" {
165117 source = " ../../../../dtos-devops-templates/infrastructure/modules/virtual-desktop"
166118
167119 custom_rdp_properties = " drivestoredirect:s:*;audiomode:i:0;videoplaybackmode:i:1;redirectclipboard:i:1;redirectprinters:i:1;devicestoredirect:s:*;redirectcomports:i:1;redirectsmartcards:i:1;usbdevicestoredirect:s:*;enablecredsspsupport:i:1;redirectwebauthn:i:1;use multimon:i:1;enablerdsaadauth:i:1;"
168- computer_name_prefix = " av4 ${ var . env_type } "
120+ computer_name_prefix = " lung ${ var . env_type } "
169121 dag_name = module. config [each . key ]. names . avd-dag
170122 host_pool_name = " ${ module . config [each . key ]. names . avd-host-pool } -v2"
171123 location = each. key
0 commit comments