Skip to content

Commit 2cc1e4a

Browse files
committed
Update Azure Virtual Desktop host pool configuration: add personal desktop assignment type and tags; rename Log Analytics Workspace resource
1 parent 448ddad commit 2cc1e4a

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

main/main.tf

+13-7
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,18 @@ resource "azurerm_virtual_desktop_workspace" "workspace" {
7171
}
7272

7373
resource "azurerm_virtual_desktop_host_pool" "hostpool" {
74-
name = "pd-hp-01"
75-
location = azurerm_resource_group.app_service.location
76-
resource_group_name = "avd-rg"
77-
type = "Personal"
78-
load_balancer_type = "Persistent"
79-
validate_environment = true
74+
name = "pd-hp-01"
75+
location = azurerm_resource_group.app_service.location
76+
resource_group_name = "avd-rg"
77+
type = "Personal"
78+
load_balancer_type = "Persistent"
79+
validate_environment = true
80+
personal_desktop_assignment_type = "Automatic"
81+
82+
tags = {
83+
owner = "martinyang"
84+
cost_center = "108"
85+
}
8086
}
8187

8288
resource "azurerm_virtual_desktop_application_group" "desktopapp" {
@@ -97,7 +103,7 @@ resource "azurerm_virtual_desktop_workspace_application_group_association" "work
97103
##################################################################################
98104

99105
resource "azurerm_log_analytics_workspace" "example" {
100-
name = "log-analytics-workspace"
106+
name = "mylab-law-01"
101107
location = var.location
102108
resource_group_name = "infra-rg"
103109
sku = "PerGB2018"

0 commit comments

Comments
 (0)