Why is the primary VM associated with the Test Failover VM IP after cleanup?

faraz ahmad 20 Reputation points
2025-05-20T23:32:46.2433333+00:00

After creating an ASR for a VM and performing a test failover, the test VM was created successfully. Post-testing, the test VM and its resources were deleted through the ASR UI. However, following this cleanup, the application on the primary VM stopped working.

During investigation, it was discovered that the primary VM was now responding to the IP address of the test VM, although it is still accessible via its original private IP through RDP. It appears that the DNS for the primary VM has changed.

What could cause the DNS to change for the primary VM in this scenario? The workaround identified was to restart the primary VM, which restored its ability to be pinged with its actual IP.

Key Point - primary and failover vnet are in different location

Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
824 questions
{count} votes

Accepted answer
  1. Jose Benjamin Solis Nolasco 3,511 Reputation points
    2025-05-21T02:54:17.4266667+00:00

    @faraz ahmad the cleanup process didn’t fully remove all resources associated with the test VM, leading to lingering configurations. Documentation highlights that incomplete cleanup can cause IP address conflicts, as noted in troubleshooting guides

    See https://learn.microsoft.com/en-us/azure/site-recovery/site-recovery-failover-to-azure-troubleshoot

    The most likely because of your issue is a DNS resolution problem, where DNS records were updated during test failover (either manually or through automation) and not reverted after cleanup, leading to cached incorrect entries on the primary VM. Restarting the VM cleared its DNS cache, restoring normal operation. To prevent recurrence, ensure DNS changes are reverted post-cleanup, verify no lingering resources in Azure, and monitor application behavior during future tests. If issues persist, contact Microsoft Support with detailed logs and configurations for further investigation.

    😊 If my answer helped you resolve your issue, please consider marking it as the correct answer. This helps others in the community find solutions more easily. Thanks!


0 additional answers

Sort by: Most 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.