decensas / terraform-azurerm-azure-virtual-desktop

Terraform module for deploying Azure Virtual Desktop.
MIT License
7 stars 3 forks source link

VMs are not joining AVD host pool #15

Closed vdmkenny closed 10 months ago

vdmkenny commented 10 months ago
module "avd" {
  source  = "decensas/azure-virtual-desktop/azurerm"
  version = "0.1.2"
  system_name         = "datapltfrm"
  resource_group_name = module.spoke.resource_group_name
  data_location       = local.region
  host_location       = local.region

  vm_size                      = "Standard_D2s_v3"
  number_of_hosts              = 3
  host_pool_type               = "Pooled"
  host_pool_load_balancer_type = "BreadthFirst"

  avd_admins_object_ids = local.avd_admins_object_ids
  avd_users_object_ids  = local.avd_users_object_ids

  start_vm_on_connect = true
  aad_joined_allow_access_from_nonjoined = true
  workspace_friendly_name = "avd-${module.spoke.convention_name}"

  local_admin_password = random_password.avd-admin-password.result
  local_admin_username = "admin-user"

  subnet_id = module.spoke.subnet_list["snet-virtual-desktop"].id

  depends_on = [module.spoke, module.keyvaultv2]
}

Using this configuration, everything is applied without errors in terraform. However, the Azure Virtual Desktop host pools remain empty.

vdmkenny commented 10 months ago

Our issue was that we needed to add a private link for virtual desktop. This failed silently.

https://learn.microsoft.com/en-us/azure/virtual-desktop/private-link-overview