You may add another private ip address to the NIC
How do I properly change the private ip address of an Azure vm running windows?
I am working on a project to change a few 2012 domain controllers over to 2019 domain controllers but they must keep the same ip address. Azure will not allow you to assign the same ip address as another vm, and I've had issues changing the static private ip address in Azure. Sometimes I lose rdp connection on the test vm's and dont regain connectivity. What is the best way to replace an aging server in Azure with a newer OS and still keep the same ip address? Keep in mind, these are windows domain controllers so that complicates things a bit.
Azure Virtual Machines
2 answers
Sort by: Most helpful
-
-
TravisCragg-MSFT 5,696 Reputation points Microsoft Employee Moderator
2021-10-15T23:50:17.627+00:00 Unfortunately I cannot advise from the AD perspective, only from the Azure perspective.
Changing the Private IP of a VM (or even setting the private IP allocation type (static / dynamic) will reset the VM. The best way to change the IP is to stop the VM (wait for the VM to be in the stopped (deallocated) state), go to the NIC of the VM and change the IP (and set to static if you want to keep that IP, and then start the VM.