Help: Terraform Can’t Find My AVD Network Security Group

0
0
Asked By TechWanderer42 On

I'm diving into Azure Virtual Desktop (AVD) management and using Terraform for automation, but I'm running into a snag. I've set up a network security group (NSG) that works perfectly with my manually configured host pools, but it seems like Terraform isn't recognizing it during deployment. I've double-checked the names and resource groups in the Azure portal, and everything seems correct. However, I keep getting an error when I try to deploy a host pool with Terraform, specifically a polling failure related to a VM extension. I suspect it might be related to DNS issues since the error message states that the remote name couldn't be resolved. The key parts of my configuration are included below. Can anyone help me figure out what's going wrong?

3 Answers

Answered By CloudGuru2023 On

Hey! It sounds like you might have a DNS configuration issue with your virtual network. The error message suggests your VM can’t resolve the URL, so check if DNS settings are assigned in your VNet resource. You can either set DNS servers directly in the VNet or use a separate resource for assignment. That might fix your problem!

ExpertInAzure -

Good point! Just remember to ensure the DNS servers you're using are functional and reachable from the VM.

Answered By TerraformTinkerer On

Just to update everyone, I realized the DNS issue was actually linked to not having a route table defined for the subnet! I also had problems logging into my VMs using EntraID; turns out I needed to ensure they were properly joined. Here's what I've done to fix that portion and get my VMs connected correctly.

Answered By AVD_Explorer On

If you're still stuck, consider looking into tools like Nerdio. They automated a lot of AVD management processes which could save you time, and I've heard great things about their service!

CuriousCoder -

Yeah, I have heard good things! But I'm trying to learn the ropes myself first. It's kind of a personal challenge and helps with the AZ-104 prep!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.