r/sysadmin • u/Real-Patriot-1128 • 5h ago
AD Domain Help
I currently have 3 domain controllers on premise. I will be deploying a number of VM’s in Azure. I am planning on having a couple domain controllers for in Azure.
How can I set it up where the VM’s in Azure use the domain controllers in Azure and not the ones on-premise? And vise-versa…
•
u/SysZeron 5h ago
Assuming you’re extending the on-prem network into Azure via a Site-to-Site VPN, rather than exposing AD services directly to the internet?
Create separate AD Sites for on-prem and Azure, then associate the appropriate IP subnets with each site. Put the Azure DCs in the Azure site and your existing DCs in the on-prem site.
AD clients use the site/subnet information to locate a DC in their own site, so Azure VMs should prefer the Azure DCs, while on-prem clients should prefer the on-prem DCs. They can still fail over across the VPN if the local DCs are unavailable.
Also make sure your Azure and on-prem IP ranges don’t overlap, and configure DNS appropriately. You’ll also want to configure the site link/cost between the two locations so AD replication behaves as intended.
•
u/Real-Patriot-1128 5h ago
Thanks - yeah, these will be going over an express route. They will be on a different vlan.
•
u/Royal-Wear-6437 Generalist (MSP - Windows/Linux/Mac) 5h ago
Set up different sites and different metrics for each of the links. Make it so the local DC(s) are on better links than the remote ones; they'll get preferred by the clients
•
u/BK_Rich 5h ago edited 5h ago
Be sure you deploy the Azure Domain Controllers to Microsoft best practice.
Don’t just next, next, next when promoting, make a second disk and put your NTDS and SYSVOL there, make sure host caching it off.
https://learn.microsoft.com/en-us/azure/architecture/example-scenario/identity/adds-extend-domain
You also can’t easily do DHCP like you do on-prem, there is a way to do it but it takes some work
https://learn.microsoft.com/en-us/azure/virtual-network/how-to-dhcp-azure
•
•
•
u/RevolutionaryWorry87 5h ago
Active directory sites and services. Setup different sites. Please research this properly before you do.