Skip to content

Commit

Permalink
Test dev box definition deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Abby Artagame committed Nov 20, 2024
1 parent 7aa5157 commit 473eeee
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion tf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,23 @@ resource "azurerm_dev_center_project_pool" "devBoxPool" {
dev_center_project_id = azurerm_dev_center_project.devCenterProject.id
dev_box_definition_name = azurerm_dev_center_dev_box_definition.devBoxDefinition.name
local_administrator_enabled = true
dev_center_attached_network_name = ""
dev_center_attached_network_name = "managedNetwork"
stop_on_disconnect_grace_period_minutes = 60
depends_on = [azurerm_dev_center_dev_box_definition.devBoxDefinition]
}

resource "azapi_resource" "symbolicname" {
type = "Microsoft.DevCenter/projects/pools@2023-04-01"
name = var.devBoxPoolName
location = data.azurerm_resource_group.rg.location
parent_id = azurerm_dev_center_project.devCenterProject.id
body = jsonencode({
properties = {
devBoxDefinitionName = azurerm_dev_center_dev_box_definition.devBoxDefinition.name
licenseType = "Windows_Client"
localAdministrator = "Enabled"
networkConnectionName = "managedNetwork"
singleSignOnStatus = "Enabled"
}
})
}

0 comments on commit 473eeee

Please sign in to comment.