Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Azure powershell add second DNS server to VM

$
0
0

I'm currently rolling out an IaaS environment with 2 Domain controllers (both VM's too) Setting the DNS statically in the OS adapter settings is not the way to go in Azure (reload will clear settings)

I'm setting the DNS settings through powershell, when I create the VM

$myDNS = New-AzureDNS -Name 'myDC01' -IPAddress a.b.c.d .. New-AzureVM -serviceName $cloudservice -DnsSettings $myDNS -VNetName $vnetname -waitforboot

this sets 1 DNS server in ipconfig, but is there a way to add an alternate (second) DNS setting too? this way I can put both DC's in an Availability Group and make sure DNS is guaranteed.


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>