Fail back VMs to Azure VMware Solution private cloud
This article describes how to failback Azure VMs to an Azure VMware Solution private cloud, following failover of Azure VMware Solution VMs to Azure with Azure Site Recovery. After failback, you enable replication so that the Azure VMware Solution VMs start replicating to Azure.
Before you start
- Learn about VMware vSphere 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, a 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 Azure VMware Solution private cloud. VMs must be in a replicated state in order to fail back.
Run a failover to fail back
- Make sure that Azure VMs are reprotected and replicating to the Azure VMware Solution private cloud.
- 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. Azure 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, Azure Site Recovery disables the VMware tools during failover. During failback of the Windows VM, the VMware tools are enabled again.
Reprotect from Azure VMware Solution to Azure
After committing the failback, the Azure VMs are deleted. The VM is back in the Azure VMware Solution private cloud, 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 Azure VMware Solution 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 Azure VMware Solution VM is replicating to Azure. As needed, you can run another failover to Azure.