Proposed Pull Request Change

title description ms.topic ms.date ms.author ms.reviewer ms.service author
About failover and failback in Azure Site Recovery - Modernized Learn about failover and failback in Azure Site Recovery - Modernized. overview 02/11/2026 v-gajeronika v-gajeronika azure-site-recovery Jeronika-MS
📄 Document Links
GitHub View on GitHub Microsoft Learn View on Microsoft Learn
Content Truncation Detected
The generated rewrite appears to be incomplete.
Original lines: -
Output lines: -
Ratio: -
Raw New Markdown
Generating updated version of doc...
Rendered New Markdown
Generating updated version of doc...
+0 -0
+0 -0
--- title: About failover and failback in Azure Site Recovery - Modernized description: Learn about failover and failback in Azure Site Recovery - Modernized. ms.topic: overview ms.date: 02/11/2026 ms.author: v-gajeronika ms.reviewer: v-gajeronika ms.service: azure-site-recovery author: Jeronika-MS # Customer intent: As an IT administrator, I want to implement and manage failover and failback processes for on-premises machines to Azure, so that I can ensure business continuity and disaster recovery during outages or planned maintenance. --- # About on-premises disaster recovery failover and failback - Modernized This article provides an overview of failover and failback during disaster recovery of on-premises machines to Azure by using [Azure Site Recovery](site-recovery-overview.md) - Modernized. For information about failover and failback in Azure Site Recovery Classic releases, [see this article](vmware-azure-architecture.md#failover-and-failback-process). ## Recovery stages Failover and failback in Site Recovery have four stages: - **Stage 1: Fail over from on-premises**: After setting up replication to Azure for on-premises machines, when your on-premises site goes down, you fail those machines over to Azure. After failover, Azure VMs are created from replicated data. - **Stage 2: Reprotect Azure VMs**: In Azure, you reprotect the Azure VMs so that they start replicating back to the on-premises site. The on-premises VM (if available) is turned off during reprotection, to help ensure data consistency. - **Stage 3: Fail over from Azure**: When your on-premises site is running as normal again, you run another failover. This time, you fail back Azure VMs to your on-premises site. You can fail back to the original location from which you failed over, or to an alternate location. This activity is referred to as *planned failover*. - **Stage 4: Reprotect on-premises machines**: After failing back, again enable replication of the on-premises machines to Azure. ## Failover Perform a failover as part of your business continuity and disaster recovery (BCDR) strategy. - As the first step in your BCDR strategy, replicate your on-premises machines to Azure on an ongoing basis. Users access workloads and apps running on the on-premises source machines. - If the need arises, for example if there's an outage on-premises, fail the replicating machines over to Azure. Azure VMs are created using the replicated data. - For business continuity, users can continue accessing apps on the Azure VMs. Failover is a two-phase activity: - **Failover**: The failover that creates and brings up an Azure VM using the selected recovery point. - **Commit**: After failover you verify the VM in Azure: - You can then commit the failover to the selected recovery point or select a different point for the commit. - After committing the failover, the recovery point can't be changed. >[!NOTE] > Use crash consistent recovery point on Windows Server 2012 or older versions, as the boot time of failed over VMs might be longer for these versions in case of application consistent recovery point. ## Connect to Azure after failover To connect to the Azure VMs created after failover by using RDP or SSH, there are several requirements. **Failover** | **Location** | **Actions** --- | --- | --- **Azure VM running Windows** | On the on-premises machine before failover | **Access over the internet**: Enable RDP. Make sure that TCP and UDP rules are added for **Public**, and that RDP is allowed for all profiles in **Windows Firewall** > **Allowed Apps**.<br/><br/> **Access over site-to-site VPN**: Enable RDP on the machine. Check that RDP is allowed in the **Windows Firewall** -> **Allowed apps and features**, for **Domain and Private** networks.<br/><br/> Make sure the operating system SAN policy is set to **OnlineAll**. [Learn more](https://support.microsoft.com/kb/3031135).<br/><br/> Make sure there are no Windows updates pending on the VM when you trigger a failover. Windows Update might start when you failover, and you won't be able to sign in to the VM until updates are done. **Azure VM running Windows** | On the Azure VM after failover | [Add a public IP address](/archive/blogs/srinathv/how-to-add-a-public-ip-address-to-azure-vm-for-vm-failed-over-using-asr) for the VM.<br/><br/> The network security group rules on the failed over VM (and the Azure subnet to which it's connected) must allow incoming connections to the RDP port.<br/><br/> Check **Boot diagnostics** to verify a screenshot of the VM. If you can't connect, check that the VM is running, and review [troubleshooting tips](https://social.technet.microsoft.com/wiki/contents/articles/31666.troubleshooting-remote-desktop-connection-after-failover-using-asr.aspx). **Azure VM running Linux** | On the on-premises machine before failover | Ensure that the Secure Shell service on the VM is set to start automatically on system boot.<br/><br/> Check that firewall rules allow an SSH connection to it. **Azure VM running Linux** | On the Azure VM after failover | The network security group rules on the failed over VM (and the Azure subnet to which it's connected) need to allow incoming connections to the SSH port.<br/><br/> [Add a public IP address](/archive/blogs/srinathv/how-to-add-a-public-ip-address-to-azure-vm-for-vm-failed-over-using-asr) for the VM.<br/><br/> Check **Boot diagnostics** for a screenshot of the VM.<br/><br/> ## Types of failover Site Recovery provides different failover options. **Failover** | **Details** | **Recovery** | **Workflow** --- | --- | --- | --- **Test failover** | Use to run a drill that validates your BCDR strategy, without any data loss or downtime.| Creates a copy of the VM in Azure, with no impact on ongoing replication, or on your production environment. | 1. Run a test failover on a single VM, or on multiple VMs in a recovery plan.<br/><br/> 2. Select a recovery point to use for the test failover.<br/><br/> 3. Select an Azure network in which the Azure VM will be located when it's created after failover. The network is only used for the test failover.<br/><br/> 4. Verify that the drill worked as expected. Site Recovery automatically cleans up VMs created in Azure during the drill. **Planned failover-Hyper-V** | Use for planned downtime.<br/><br/> Source VMs are shut down. The latest data is synchronized before initiating the failover. | Zero data loss for the planned workflow. | 1. Plan a downtime maintenance window and notify users.<br/><br/> 2. Take user-facing apps offline.<br/><br/> 3. Initiate a planned failover with the latest recovery point. The failover doesn't run if the machine isn't shut down, or if errors are encountered.<br/><br/> 4. After the failover, check that the replica Azure VM is active in Azure.<br/><br/> 5. Commit the failover to finish up. The commit action deletes all recovery points. **Failover-Hyper-V** | Usually run if there's an unplanned outage, or the primary site isn't available.<br/><br/> Optionally shut down the VM and synchronize final changes before initiating the failover. | Minimal data loss for apps. | 1. Initiate your BCDR plan. <br/><br/> 2. Initiate a failover. Specify whether Site Recovery should shut down the VM and synchronize or replicate the latest changes before triggering the failover.<br/><br/> 3. You can failover to many recovery point options, summarized [here](#recovery-point-options).<br/><br/> If you don't enable the option to shut down the VM, or if Site Recovery can't shut it down, the latest recovery point is used.<br/>The failover runs even if the machine can't be shut down.<br/><br/> 4. After failover, you check that the replica Azure VM is active in Azure.<br/> If necessary, you can select a different recovery point from the retention window of 24 hours.<br/><br/> 5. Commit the failover to finish up. The commit action deletes all available recovery points. **Failover-VMware** | Usually run if there's an unplanned outage, or the primary site isn't available.<br/><br/> Optionally specify that Site Recovery should try to trigger a shutdown of the VM, and to synchronize and replicate final changes before initiating the failover. | Minimal data loss for apps. | 1. Initiate your BCDR plan. <br/><br/> 2. Initiate a failover from Site Recovery. Specify whether Site Recovery should try to trigger VM shutdown and synchronize before running the failover.<br/> The failover runs even if the machines can't be shut down.<br/><br/> 3. After the failover, check that the replica Azure VM is active in Azure. <br/>If necessary, you can select a different recovery point from the retention window of 72 hours.<br/><br/> 5. Commit the failover to finish up. The commit action deletes all recovery points.<br/> For Windows VMs, Site Recovery disables the VMware tools during failover. **Planned failover-VMware** | You can perform a planned failover from Azure to on-premises. | Since it's a planned failover activity, the recovery point is generated after the planned failover job is triggered. | When the planned failover is triggered, pending changes are copied to on-premises, a latest recovery point of the VM is generated and Azure VM is shut down.<br/><br/> Follow the failover process as discussed [here](vmware-azure-tutorial-failover-failback-modernized.md#planned-failover-from-azure-to-on-premises). Post this, on-premises machine is turned on. After a successful planned failover, the machine will be active in your on-premises environment. ## Failover processing In some scenarios, failover requires additional processing that takes around 8 to 10 minutes to complete. You might notice longer test failover times for: * VMware VMs that don't have the DHCP service enabled. * VMware VMs that don't have the following boot drivers: storvsc, vmbus, storflt, intelide, atapi. ## Recovery point options During failover, you can select many recovery point options. **Option** | **Details** --- | --- **Latest (lowest RPO)** | This option provides the lowest recovery point objective (RPO). It first processes all the data that the Site Recovery service receives, to create a recovery point for each VM, before failing over to it. It initially attempts to process and apply all data that the Site Recovery service receives in the target location and create a recovery point by using the processed data. However, if at the time you trigger failover, there's no data uploaded to the Site Recovery service waiting to be processed, Azure Site Recovery doesn't perform any processing and hence, doesn't create a new recovery point. In this scenario, it instead fails over by using the previously processed recovery point only. **Latest processed** | This option fails over VMs to the latest recovery point processed by Site Recovery. To see the latest recovery point for a specific VM, check **Latest Recovery Points** in the VM settings. This option provides a low RTO (Recovery Time Objective), because no time is spent processing unprocessed data. **Latest app-consistent** | This option fails over VMs to the latest application-consistent recovery point processed by Site Recovery if app-consistent recovery points are enabled. Check the latest recovery point in the VM settings. **Latest multi-VM processed** | This option is available for recovery plans with one or more VMs that have multi-VM consistency enabled. VMs with the setting enabled fail over to the latest common multi-VM consistent recovery point. Any other VMs in the plan fail over to the latest processed recovery point. **Latest multi-VM app-consistent** | This option is available for recovery plans with one or more VMs that have multi-VM consistency enabled. VMs that are part of a replication group fail over to the latest common multi-VM application-consistent recovery point. Other VMs fail over to their latest application-consistent recovery point. **Custom** | Use this option to fail over a specific VM to a particular recovery point in time. This option isn't available for recovery plans. > [!NOTE] > You can't migrate recovery points to another Recovery Services vault. ## Reprotection and planned failover After failover to Azure, the replicated Azure VMs are in an unprotected state. - To start the process of failing back to your on-premises site, you need to start replicating the Azure VMs to on-premises. The reprotection process depends on the type of machines you failed over. - After machines are replicating from Azure to on-premises, you can run a failover from Azure to your on-premises site. - After machines are running on-premises again, you can enable replication so that they replicate to Azure for disaster recovery. - Only disks replicated from on-premises to Azure are replicated back from Azure during reprotect operation. Newly added disks to failed over Azure VM aren't replicated to on-premises machine. - An appliance can have up to 60 disks attached to it. If the VMs you're failing back have more than a collective total of 60 disks, or if you're failing back large volumes of traffic, create a separate appliance for failback. **Planned failover works as follows**: - To fail back to on-premises, a VM needs at least one recovery point in order to fail back. In a recovery plan, all VMs in the plan need at least one recovery point. - As this is a planned failover activity, you can select the type of recovery point you want to fail back to. Use a crash-consistent point. - There's also an app-consistent recovery point option. In this case, a single VM recovers to its latest available app-consistent recovery point. For a recovery plan with a replication group, each replication group recovers to its common available recovery point. - App-consistent recovery points can be behind in time, and there might be loss in data. - During failover from Azure to the on-premises site, Site Recovery shuts down the Azure VMs. When you commit the failover, Site Recovery removes the failed back Azure VMs in Azure. > [!NOTE] > The failover VM boot might take longer on Windows Server 2012 or older versions when using crash consistent recovery points. ## VMware and physical server reprotection and failback To reprotect and fail back VMware machines and physical servers from Azure to on-premises, make sure you have a healthy appliance. **Appliance selection** - Select any of the Azure Site Recovery replication appliances registered under a vault to reprotect to on-premises. You don't need a separate Process server in Azure for reprotect operation or a scale-out Master Target server for Linux VMs. - Replication appliance doesn't need another network connection or ports (as compared with forward protection) during failback. You can use the same appliance for forward and backward protections if it's in a healthy state. It shouldn't affect the performance of the replications. - When you select the appliance, ensure that the appliance can access the target datastore where the source machine is located. The appliance should always access the datastore of the source machine. Even if the machine and appliance are in different ESX servers, reprotection succeeds as long as the data store is shared between them. > [!NOTE] > - Storage vMotion of replicated items isn't supported. Storage vMotion of replication appliance isn't supported after reprotect operation. > - When selecting the appliance, ensure that the target datastore where the source machine is located, is accessible by the appliance. **Reprotect job** - If this job is a new reprotect operation, Azure Site Recovery automatically creates a new log storage account by default in the target region. Retention disk isn't required. - In Alternate Location Recovery and Original Location Recovery, the original configurations of source machines are retrieved. > [!NOTE] > - You can't retain static IP address in case of Alternate location reprotect (ALR) or Original location reprotect (OLR). > - fstab and LVMconf files are changed. **Failure** - You can retry any failed reprotect job. During retry, you can choose any healthy replication appliance. When you reprotect Azure machines to on-premises, you're notified that you're failing back to the original location, or to an alternate location. - **Original location recovery**: This operation fails back from Azure to the same source on-premises machine if it exists. In this scenario, only changes are replicated back to on-premises. - **Data store selection during OLR**: The data store attached to the source machine is automatically selected. - **Alternate location recovery**: If the on-premises machine doesn't exist, you can fail back from Azure to an alternate location. When you reprotect the Azure VM to on-premises, the on-premises machine is created. Full data replication occurs from Azure to on-premises. [Review](concepts-types-of-failback.md) the requirements and limitations for location failback. - **Data store selection during ALR**: You can choose any data store managed by vCenter on which the appliance is situated and is accessible (read and write permissions) by the appliance. You can choose the original or new data store. You can choose cache storage account used for reprotection. - After failover is complete, the mobility agent in the Azure VM automatically registers with Site Recovery Services. If registration fails, a critical health issue is raised on the failed over VM. After you resolve the issue, registration is automatically triggered. You can manually complete the registration after resolving the errors. ## Cancel failover If your on-premises environment isn't ready or if you face any challenges, you can cancel the failover. When you initiate the planned failover and it completes successfully, your on-premises environment becomes available for usage. But after the operation completes, if you want to failover to a different recovery point, you can cancel the failover. - You can cancel only planned failover. - You can cancel a planned failover from the **Replicated items** page in your Recovery Services vault. - After you cancel the failover, your machines in Azure turn back on, and replication starts again from Azure to on-premises. ## Next steps - [Failover VMware VMs to Azure (modernized)](vmware-azure-tutorial-failover-failback-modernized.md) - [Planned failover (modernized)](vmware-azure-tutorial-failover-failback-modernized.md#planned-failover-from-azure-to-on-premises) - [Reprotect (modernized)](vmware-azure-tutorial-failover-failback-modernized.md#re-protect-the-on-premises-machine-to-azure-after-successful-planned-failover) - [Cancel failover (modernized)](vmware-azure-tutorial-failover-failback-modernized.md#cancel-planned-failover)
Success! Branch created successfully. Create Pull Request on GitHub
Error: