Fail back VMware VMs to on-premises site
This article describes how to fail back Azure VMs to an on-premises site, following failover of on-premises VMs to Azure with Azure Site Recovery. After failback to on-premises, you enable replication so that the on-premises VMs start replicating to Azure.
Before you start
- Learn about VMware failback.
- Make sure you've reviewed and completed the steps to prepare for failback, and that all the required components are deployed. Components include a process server in Azure, an on-premises master target server, and a VPN site-to-site connection (or ExpressRoute private peering) for failback.
- Make sure you've completed the requirements for reprotection and failback, and that you've enabled reprotection of Azure VMs, so that they're replicating from Azure to the on-premises site. VMs must be in a replicated state is order to fail back.
Run a failover to fail back
- Make sure that Azure VMs are reprotected and replicating to the on-premises site.
- A VM needs at least one recovery point in order to fail back.
- If you fail back a recovery plan, then all machines in the plan should have at least one recovery point.
- In the vault > Replicated items, select the VM. Right-click the VM > Unplanned Failover.
- In Confirm Failover, verify the failover direction (from Azure).
- Select the recovery point that you want to use for the failover.
- We recommend that you use the Latest recovery point. The app-consistent point is behind the latest point in time, and causes some data loss.
- Latest is a crash-consistent recovery point.
- With Latest, a VM fails over to its latest available point in time. If you have a replication group for multi-VM consistency within a recovery plan, each VM in the group fails over to its independent latest point in time.
- If you use an app-consistent recovery point, each VM fails back to its latest available point. If a recovery plan has a replication group, each group recovers to its common available recovery point.
- Failover begins. Site Recovery shuts down the Azure VMs.
- After failover completes, check everything's working as expected. Check that the Azure VMs are shut down.
- With everything verified, right-click the VM > Commit, to finish the failover process. Commit removes the failed-over Azure VM.
For Windows VMs, Site Recovery disables the VMware tools during failover. During failback of the Windows VM, the VMware tools are enable again.
Reprotect from on-premises to Azure
After committing the failback, the Azure VMs are deleted. The VM is back in the on-premises site, but it isn't protected. To start replicating VMs to Azure again,as follows:
- In the vault > Replicated items, select failed back VMs, and then select Re-Protect.
- Specify the process server that's used to send data back to Azure.
- Select OK to begin the reprotect job.
After an on-premises VM starts, it takes up to 15 minutes for the agent to register back to the configuration server. During this time, reprotect fails and returns an error message stating that the agent isn't installed. If this occurs, wait for a few minutes, and reprotect.
After the reprotect job finishes, the on-premises VM is replicating to Azure. As needed, you can run another failover to Azure.