Azure Site Recovery (ASR) is Microsoft’s emergency recovery strategy. It keeps workloads secure and recoverable through replication of local servers such as physical servers, Hyper-V-based virtual machines, and VMware-based virtual machines. Although ASR is designed for emergency recovery, Azure Site Recovery can also be used to move virtual machines to the cloud.Lift and replace”.

So what is the difference between the two scenarios?

  • For a disaster, you regularly copy machines to Azure. When an outage occurs (locally), you fail to move machines from the primary site to the secondary Azure site and access them from there. When the primary site is available again, you will fail to recover from Azure.
  • For immigration, copying local machines to Azure. Then you fail to move the virtual machine from the local to Azure and complete the migration process. There is no feedback. A key feature of the migration scenario is that ASR converts all local (VHDX) to local (VHD) settings and uploads them to Azure Storage.

As a fully integrated offering, Azure Backup and Azure Site Recovery are automatically updated with new Azure features as they are released. Minimize recovery issues by arranging the multi-tiered applications running on multiple virtual machines from the Azure portal. Ensure compliance by testing your emergency recovery plan without affecting production load or end users. And keep local apps available during downtime with automatic recovery to Azure.

I recently moved Hyper-V virtual machines from local to Azure, and after a successful scheduled troubleshooting, I need to clean and remove protected virtual machines from Azure.

During the migration phase, you perform the planned troubleshooting. Designed fault tolerance is a zero data loss troubleshooting option. When the planned troubleshooting is started, first the source virtual machines are shut down, the latest data is synchronized to Azure, and then fault tolerance is started.

When virtual machines are running in Azure, local source virtual machines are still protected by Azure (replication is standard), but they are Skew state.

If you are familiar with the Hyper-V copy, ASR utilizes the same technology. However, it is not possible to remove virtual machine replication from Hyper-V Manager because when a virtual machine is ASR-protected, all operations must be performed in Azure Site Recovery and not locally.

Now uninstall the Hyper-V virtual machine from Azure:

  1. First, we need to disable replication. Open the Azure Recovery Service vault below Protected items, choose Replicated products, right-click the virtual machine and select Disable replication.
  2. In Disable replication, you can select one of the following options:
    • Disable and turn off replication (recommended) – This removes the replicated object from Azure Site Recovery and stops replicating the local virtual machine. The local replication configuration is cleaned automatically. The machine’s Azure Site Recovery billing will also be stopped.
    • delete This option is to be used only if the local Hyper-V source environment has been removed or is no longer accessible (not connected). This will remove the copied item from Azure Site Recovery (billing has ended). Configuring replication on the local virtual machine not cleaned, it must be done manually on the local Hyper-V host by running the following PowerShell script as an administrator:
      $vmName = "VMName"
      $vm = Get-WmiObject -Namespace "rootvirtualizationv2" -Query "Select * From Msvm_ComputerSystem Where ElementName = '$vmName'"
      $replicationService = Get-WmiObject -Namespace "rootvirtualizationv2"  -Query "Select * From Msvm_ReplicationService"
      $replicationService.RemoveReplicationRelationship($vm.__PATH)
  3. You must repeat the same process described in Step 2 for each secure virtual machine in Azure.

entry: The above procedure only applies to replicating Hyper-V virtual machines to Azure without a VMM server. If you are copying your virtual machines in the System Center VMM-Azure scenario, then follow the instructions here.

Want to learn more about Azure Backup and how to create a hybrid cloud service solution using DPM and Azure backup server?

Then be sure to join me next week at the CDC in Hanau, Germany, where I will detail the benefits of using Azure Backup to protect local workloads. I also have a stock surprise, thank you Altar software! I’ll tell you more about how you can WIN during my speech!

There are still a few seats left for the conference, register now # CDCSmax2018.

https://charbelnemnom.com/2018/02/speaking-at-cloud-datacenter-conference-germany-2018-cdcgermany/

__
Thanks for locking my blog.

If you have any questions or feedback, please leave a comment.

-Charbel Nemnom-

LEAVE A REPLY

Please enter your comment!
Please enter your name here