From 473eeeeb46e732c87091e26f613fa7e6741d5c2b Mon Sep 17 00:00:00 2001 From: Abby Artagame Date: Wed, 20 Nov 2024 15:51:04 +1100 Subject: [PATCH] Test dev box definition deployment --- tf/main.tf | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tf/main.tf b/tf/main.tf index 3b97b33..554c506 100644 --- a/tf/main.tf +++ b/tf/main.tf @@ -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" + } + }) } \ No newline at end of file