When doing an ASR Failover (not a Test Failover, but actual Failover) I want to ensure same IP in DR Region for the VM

Rob McNees 361 Reputation points
2025-10-06T15:50:07.9633333+00:00

How can I make sure that the same IP address on a VM after failover gets assigned to the VM in the DR Region? First of all, we will bring down application and stop the VM in the primary region prior to doing the "Failover" - using this procedure: https://free.blessedness.top/en-us/azure/site-recovery/azure-to-azure-tutorial-failover-failback (we are not going to a failback (Or not replicate Dr testing data back from DR region to primary region) so no "Re-Protect", but will bring up primary servers only back in primary region). Since this is our first attempt of doing a "real" failover, we need the advice on how to make sure we can keep the same IP address.

Other notes:

  • The NIC on the primary servers are Dynamic per the attached screen shot: plm2023qasearchvm00-nic.jpg but I'm hoping that when VM, this NIC is attached to, gets shut down in primary region prior to Failover, that we can assign the same IP in the DR Region when it comes up there.
  • Please provide advisement on how we can achieve keeping the same IP in DR Region.
  • I have spoken with @vinod pittala and he has been very helpful on advisement on "failovers"
Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Siva shunmugam Nadessin 1,990 Reputation points Microsoft External Staff Moderator
    2025-10-09T14:12:34.66+00:00

    Hello Rob McNees,

    Here’s how you can achieve that:

    1. Ensure Identical Networks: Before the failover, make sure that the network architecture in the DR region is identical to the source region. This means having the same address spaces and subnets in both the source and the DR regions. This setup allows the Azure Site Recovery (ASR) to map the IP addresses correctly.
    2. Use Static IPs: If possible, switch your VM's NIC (Network Interface Card) configuration from Dynamic to Static IP. Azure Site Recovery typically tries to retain the original static IP address during failover if it's not in use.
    3. Pre-assign IP Addresses: In the SQL Server Always On availability groups example, they assign or verify target IP addresses for the replicated items. Before initiating the failover, verify and assign the target IP addresses in the DR region to match those from the primary. Make sure that before you initiate failover, these assignments are correctly in place.
    4. Perform the Failover: Once everything is set and you have verified the configurations, follow the failover process as detailed in the Azure documentation. Azure Site Recovery will attempt to allocate the IP addresses as per the configurations you set.

    You referred to stopping the applications and shutting down the VM in your primary region, which is good practice. Just ensure that all your IP assignments are done before you start the failover process.

    For more detailed guidance, you can check out the Azure documentation on retaining IP addresses during failover here.

     

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Jeff Pigott 395 Reputation points Microsoft Employee
    2025-10-06T16:11:11.51+00:00

    Hi Rob, it has been a minute since I wrote this blog on a similar topic keeping the same MAC Address. But could be something to review as it could also keep the same IP address if I recall.

    https://jpigott.com/2023/11/azure-site-recovery-maintaining-a-persistent-mac-address/

    0 comments No comments

Your answer

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