How do I properly change the private ip address of an Azure vm running windows?

Scott Minar 6 Reputation points
2021-10-14T18:11:54.67+00:00

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
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,036 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sreeju Nair 12,666 Reputation points
    2021-10-17T11:08:57.457+00:00
    2 people found this answer helpful.
    0 comments No comments

  2. 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.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.