Forum Discussion
Deploying Domain Controllers with an Availablility Group
An Availability set works differently than individual VM's. All VM's in an availability set use the same DNS settings. When you change one NIC DNS settings, that setting will propagate to all servers in the Availability Set. If you try to manually change the DNS setting, say in the VM, when the VM reboots, it will inherit the DNS from the Availability set.
This creates an issue specific to DC's where at least one DC will have it's primary DNS pointing to itself, which in not best practice.
I've just run up 2 VMs in an availability set and can change the DNS settings on a single NIC on a VM in the availability set.
- Lynn TowleMar 01, 2019Iron Contributor
Here are a couple resources. This has been a known issue for a while, but there hasn't been much direction from Microsoft regarding it.
https://social.msdn.microsoft.com/Forums/en-US/ac870e43-730c-4e2a-bd1e-b2bab1754cdf/individual-dns-settings-for-domain-controllers-in-azure-in-availability-sets
A quick search on uservoice brough this up: https://feedback.azure.com/forums/281804-azure-resource-manager/suggestions/18463720-delink-availability-set-from-dns-settings
For your test, change the DNS of one of the NICs in the Availablity set in the Portal, not using PowerBI, it will post a message stating that all servers will be rebooted to inherit the changes.
- paulp158Mar 01, 2019MCT
Ah, sorry. I'm with you now
So yeah the options are:
Don't use AV sets for your DCs (use the notifications of planned maintenance if you need to know if/when your VM will be rebooted https://docs.microsoft.com/en-us/azure/virtual-machines/windows/maintenance-notifications)
Put a single DC in your AV Set (which seems kind of pointless)
Settle on the fact that one DC in an AV Set will use itself as its primary DNS server
Point your Azure hosted DC's to your on-premises DCs as their primary DNS server (this may be the least bad option)
I admit none are brilliant options.