The challenge
A client was setting up Azure Virtual Desktop for his team. Every deployment failed at the same step: the DSC extension could not download the AVD agent, with “Unable to connect to the remote server.”
Several attempts had already been made, each leaving another failed VM behind.
What we found
Five stacked issues: private subnets with no outbound route, quota held by failed VMs, Intune breaking the Entra join, and no workspace.
What we did
- 01
Opened the nested error
The top-level deployment error is only a wrapper. The nested one showed the VM had no route to the internet.
- 02
Added a NAT Gateway
New Azure virtual networks now use private subnets by default, so VMs get no outbound access. A NAT Gateway fixed it and gave the team a fixed outbound IP as a bonus.
- 03
Released the quota
Failed VMs from earlier attempts were still holding vCPU quota. They were deleted.
- 04
Tested from inside the VM
Run Command confirmed outbound connectivity (TcpTestSucceeded: True) before redeploying, rather than hoping.
- 05
Separated Intune from the join
Intune enrolment was breaking the Entra join. The host pool was deployed without it, with Intune added as a follow-up.
- 06
Created the workspace
Users saw “No resources assigned” because no workspace existed. Once it was created, they were in.
What we learned
- “Network error” in Azure usually means the VM’s outbound path, not your own network.
- An AVD user needs four things: a healthy host pool, an app group assignment, the VM login role and a workspace.