|
| 1 | +--- |
| 2 | +title: Set up disaster recovery for VMs on Azure Public MEC (preview) using Vault flow |
| 3 | +description: Learn how to set up disaster recovery for virtual machines on Azure Public MEC (preview). |
| 4 | +author: v-pgaddala |
| 5 | +ms.service: site-recovery |
| 6 | +ms.topic: tutorial |
| 7 | +ms.date: 11/10/2022 |
| 8 | +ms.author: v-pgaddala |
| 9 | +--- |
| 10 | + |
| 11 | +# Tutorial: Set up disaster recovery for VMs on Azure Public MEC (preview) using Vault flow |
| 12 | + |
| 13 | +> [!IMPORTANT] |
| 14 | +> The Azure Site Recovery (ASR) functionality for Public MEC is in preview state. |
| 15 | +
|
| 16 | +This tutorial shows you how to set up disaster recovery for VMs using Azure Site Recovery on Azure Public MEC (preview). You will do this using the Azure Site Recovery portal. |
| 17 | + |
| 18 | +In this article, you learn how to: |
| 19 | + |
| 20 | +> [!div class="checklist"] |
| 21 | +> * Enable VM replication |
| 22 | +
|
| 23 | +When you enable replication for a VM to set up disaster recovery, the Site Recovery Mobility service extension installs on the VM and registers it with Azure Site Recovery. During replication, VM disk writes are sent to a cache storage account. Data is sent from there to the target region, and recovery points are generated from the data. When you fail over a VM during disaster recovery, a recovery point is used to restore the VM in the target region. [Learn more](azure-to-azure-architecture.md) about the architecture. |
| 24 | + |
| 25 | +If you don’t have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin. |
| 26 | + |
| 27 | +## Prerequisites |
| 28 | + |
| 29 | +- Ensure to create a Recovery Services vault in the parent region to which the Azure Public MEC (preview) is connected. For more information, see [Tutorial to set up Azure VM disaster recovery with Azure Site Recovery](azure-to-azure-tutorial-enable-replication.md#create-a-recovery-services-vault). |
| 30 | +- Enable Site Recovery |
| 31 | + In the vault settings, select **Enable Site Recovery**. |
| 32 | + |
| 33 | +  |
| 34 | + |
| 35 | +## Enable replication |
| 36 | + |
| 37 | +Select the source settings and enable VM replication. |
| 38 | + |
| 39 | +### Select source settings |
| 40 | + |
| 41 | +1. In the vault > **Site Recovery** page, under **Azure virtual machines**, select **Enable replication**. |
| 42 | + |
| 43 | + :::image type="content" source="./media/disaster-recovery-for-edge-zone-vm-tutorial/enable-replication.png" alt-text="Screenshot of Enable replication tab."::: |
| 44 | + |
| 45 | + |
| 46 | +1. In the **Enable replication** page, under **Source** tab, do the following: |
| 47 | + |
| 48 | + - **Region** : Select the source (Azure Public MEC (preview)) in which VMs are currently running. |
| 49 | + - **Subscription**: Select the subscription in which VMs are running. |
| 50 | + - **Resource group**: Select the desired resource group from the drop-down. |
| 51 | + - **Virtual machine deployment model**: Retain the default **Resource Manager** setting. |
| 52 | + - **Disaster recovery between availability zones**: Retain the default **No** setting. |
| 53 | + |
| 54 | + :::image type="content" source="./media/disaster-recovery-for-edge-zone-vm-tutorial/enable-replication-add-zone.png" alt-text="Screenshot of Enable replication adding region tab."::: |
| 55 | + |
| 56 | + > [!NOTE] |
| 57 | + > As there are no availability zones for Azure Public MEC (preview), it is disabled. |
| 58 | + |
| 59 | +1. Select **Next**. |
| 60 | + |
| 61 | +### Select the VMs |
| 62 | + |
| 63 | +Site Recovery retrieves the VMs associated with the selected subscription/resource group. |
| 64 | + |
| 65 | +1. In **Virtual machines**, select the VMs you want to enable for disaster recovery. You can select up to 10 VMs. |
| 66 | + |
| 67 | + :::image type="content" source="./media/disaster-recovery-for-edge-zone-vm-tutorial/virtual-machines.png" alt-text="Screenshot of Enable replication form VM tab."::: |
| 68 | + |
| 69 | +1. Select **Next**. |
| 70 | + |
| 71 | + |
| 72 | +### Review replication settings |
| 73 | + |
| 74 | +1. In **Replication settings**, review the settings. Site Recovery creates default settings/policy for the target region. For the purposes of this tutorial, we use the default settings. |
| 75 | + |
| 76 | + :::image type="content" source="./media/disaster-recovery-for-edge-zone-vm-tutorial/replication-settings.png" alt-text=" Screenshot of Replication settings tab."::: |
| 77 | + |
| 78 | + > [!NOTE] |
| 79 | + >- In the above box, you can select target to be parent region (i.e., connected to the Azure Public MEC (preview)) or in certain cases, another of your Azure Public MEC (preview) connected to the same region. |
| 80 | + >- Capacity reservation has been disabled and hence hidden. |
| 81 | +
|
| 82 | +1. In **Customize storage option**, you can select an existing storage that was created either on Azure Public MEC (preview) or region. |
| 83 | + |
| 84 | + :::image type="content" source="./media/disaster-recovery-for-edge-zone-vm-tutorial/customize-target.png" alt-text=" Screenshot of Customizing the target settings tab."::: |
| 85 | + |
| 86 | + >[!NOTE] |
| 87 | + >- For *Azure Public MEC* (preview) replication flow, an existing storage account associated with the recovery vault will be preselected. If a storage account doesn't exist with the recovery vault, a new one will be created in the region. |
| 88 | + >- For *Public MEC to Public MEC* (preview) replication flow, you must select an existing storage account in the drop down for **cache storage**. |
| 89 | +
|
| 90 | +### Manage |
| 91 | + |
| 92 | +1. In **Manage**, do the following: |
| 93 | + 1. Under **Replication** policy, |
| 94 | + |
| 95 | + - **Replication policy**: Select the replication policy. Defines the settings for recovery point retention history and app-consistent snapshot frequency. By default, Site Recovery creates a new replication policy with default settings of 24 hours for recovery point retention. |
| 96 | + |
| 97 | + - **Replication group**: Create replication group to replicate VMs together to generate Multi-VM consistent recovery points. Note that enabling multi-VM consistency can impact workload performance and should only be used if machines are running the same workload and you need consistency across multiple machines. |
| 98 | + |
| 99 | + 1. Under **Extension settings**, |
| 100 | + - Select **Update settings** and **Automation account**. |
| 101 | + |
| 102 | + :::image type="content" source="./media/disaster-recovery-for-edge-zone-vm-tutorial/manage.png" alt-text="Screenshot of Manage replication tab."::: |
| 103 | + |
| 104 | + > [!NOTE] |
| 105 | + > There are no changes to select replication policy for Azure Public MEC (preview). |
| 106 | +
|
| 107 | +### Review |
| 108 | + |
| 109 | +In **Review**, review the VM settings and select **Enable replication**. |
| 110 | +The **VM setting** now includes target region information and a **Summary** section includes the Azure Public MEC (preview) information. |
| 111 | + |
| 112 | +:::image type="content" source="./media/disaster-recovery-for-edge-zone-vm-tutorial/review.png" alt-text="Screenshot of Review replication tab."::: |
| 113 | + |
| 114 | +The VMs you enable appear on the vault > **Replicated items** page. |
| 115 | + |
| 116 | +## Next steps |
| 117 | + |
| 118 | +See [Set up disaster recovery when creating a VM](disaster-recovery-for-edge-zone-via-vm-flow-tutorial.md). |
0 commit comments