Statis DNS

Deleted
Not applicable

I want to configure static DNS settings for the WVD session hosts. This is needed because we cannot set DNS at the VNET (for now).

I thought that just creating a master image, creating an unattend.xml (with the DNS settings) and then sysprep the machine and use the VHD would be an option, but that does not seem to work.
Anyone else knows how the session hosts can run a command (powershell script) on deployment before the machines try to join the domain  ?  

1 Reply

@DeletedIn Azure, network settings for VMs are all handled by Azure and distributed to them via DHCP; you shouldn't set them within the VM image.

You can either set the DNS servers after creation via commands or the GUI, or include them as part of the ARM template at deployment

Azure: Change DNS Servers