Statis DNS

%3CLINGO-SUB%20id%3D%22lingo-sub-873354%22%20slang%3D%22en-US%22%3EStatis%20DNS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-873354%22%20slang%3D%22en-US%22%3E%3CP%3EI%20want%20to%20configure%20static%20DNS%20settings%20for%20the%20WVD%20session%20hosts.%20This%20is%20needed%20because%20we%20cannot%20set%20DNS%20at%20the%20VNET%20(for%20now).%3C%2FP%3E%3CP%3EI%20thought%20that%20just%20creating%20a%20master%20image%2C%20creating%20an%20unattend.xml%20(with%20the%20DNS%20settings)%20and%20then%20sysprep%20the%20machine%20and%20use%20the%20VHD%20would%20be%20an%20option%2C%20but%20that%20does%20not%20seem%20to%20work.%3CBR%20%2F%3EAnyone%20else%20knows%20how%20the%20session%20hosts%20can%20run%20a%20command%20(powershell%20script)%20on%20deployment%20before%20the%20machines%20try%20to%20join%20the%20domain%26nbsp%3B%20%3F%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-881722%22%20slang%3D%22en-US%22%3ERe%3A%20Statis%20DNS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-881722%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F313219%22%20target%3D%22_blank%22%3E%40vinisz%3C%2FA%3EIn%20Azure%2C%20network%20settings%20for%20VMs%20are%20all%20handled%20by%20Azure%20and%20distributed%20to%20them%20via%20DHCP%3B%20you%20shouldn't%20set%20them%20within%20the%20VM%20image.%3C%2FP%3E%3CP%3EYou%20can%20either%20set%20the%20DNS%20servers%20after%20creation%20via%20commands%20or%20the%20GUI%2C%20or%20include%20them%20as%20part%20of%20the%20ARM%20template%20at%20deployment%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-network%2Fvirtual-network-network-interface%23change-dns-servers%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%3A%20Change%20DNS%20Servers%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
vinisz
New Contributor

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

@viniszIn 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 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies