At work, we wanted to migrate our domain controller to an azure VM.
Azure AD and Azure AD DS doesn't fulfill our needs. Like GPO etc..
Well, let's say : I had 3 windows clients : CL1 (win10), CL2(win10), CL3(win7) and my domain controllers are : OnPremDC - ip : 192.168.0.10 || AzureDC - ip : 10.1.0.5
What I did first was to join CL1,CL2,CL3 to OnPremDC, so I changed the DNS settings manually of each client to 192.168.0.10 ==> No surprise, everything worked.
After that, for the migration : I configured a VPN S2S connection between OnPremDC and the Azure vNET, I joined AzureDC to the local domain, promoted it to domain controller, installed DNS server, File server and what is necessary.
Now what I want to do : is to decommission OnPremDC but before doing that I need to be sure that local clients (CL1 - CL2 - CL3) are pointing towards my DC on AZURE.
The thing is that when I connect to the client, I can't ping the AzureDC :
Ping 10.1.0.5 doesn't work on the clients, but on the OnPremDC I can.
So my question is : how can I connect my on-prem clients to the AzureDC ?
And AFTER IT IS DONE, How can I change the DNS servers for all my clients at once and make it : 10.1.0.5 instead of 192.168.0.10 ?
Thanks in advance for your answers !