You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/site-recovery/hyper-v-azure-tutorial.md
+79-57Lines changed: 79 additions & 57 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Set up Hyper-V disaster recovery using Azure Site Recovery
3
3
description: Learn how to set up disaster recovery of on-premises Hyper-V VMs (without VMM) to Azure by using Site Recovery.
4
4
ms.service: site-recovery
5
5
ms.topic: tutorial
6
-
ms.date: 11/12/2019
6
+
ms.date: 01/16/2023
7
7
ms.custom: MVC
8
8
ms.author: ankitadutta
9
9
author: ankitaduttaMSFT
@@ -17,7 +17,6 @@ This is the third tutorial in a series. It shows you how to set up disaster reco
17
17
In this tutorial, you learn how to:
18
18
19
19
> [!div class="checklist"]
20
-
> * Select your replication source and target.
21
20
> * Set up the source replication environment, including on-premises Site Recovery components and the target replication environment.
22
21
> * Create a replication policy.
23
22
> * Enable replication for a VM.
@@ -26,55 +25,51 @@ In this tutorial, you learn how to:
26
25
> Tutorials show you the simplest deployment path for a scenario. They use default options where possible, and don't show all possible settings and paths. For detailed instructions, review the articles in the **How-to Guides** section of the [Site Recovery documentation](./index.yml).
27
26
28
27
29
-
30
-
## Before you begin
28
+
## Prerequisites
31
29
32
30
This is the third tutorial in a series. It assumes that you have already completed the tasks in the previous tutorials:
1. In the Azure portal, go to **Recovery Services vaults** and select the vault. We prepared the vault **ContosoVMVault** in the previous tutorial.
40
-
2. In **Getting Started**, select **Site Recovery**, and then select **Prepare Infrastructure**.
41
-
3. In **Protection goal** > **Where are your machines located?**, select **On-premises**.
42
-
4. In **Where do you want to replicate your machines?**, select **To Azure**.
43
-
5. In **Are your machines virtualized?**, select **Yes, with Hyper-V**.
44
-
6. In **Are you using System Center VMM to manage your Hyper-V hosts?**, select **No**.
45
-
7. Select **OK**.
35
+
## Prepare infrastructure
46
36
47
-

37
+
It is important to prepare the infrastructure before you set up disaster recovery of on-premises Hyper-V VMs to Azure.
48
38
49
-
##Confirm deployment planning
39
+
### Deployment planning
50
40
51
-
1. In **Deployment planning**, if you're planning a large deployment, download the Deployment Planner for Hyper-V from the link on the page. [Learn more](hyper-v-deployment-planner-overview.md) about Hyper-V deployment planning.
52
-
2. For this tutorial, we don't need the Deployment Planner. In **Have you completed deployment planning?**, select **I will do it later**, and then select **OK**.
41
+
1. In the [Azure portal](https://portal.azure.com), go to **Recovery Services vaults** and select the vault. We prepared the vault **ContosoVMVault** in the previous tutorial.
42
+
2. On the vault home page, select **Enable Site Recovery**.
43
+
1. Navigate to the bottom of the page, and select **Prepare infrastructure** under the **Hyper-V machines to Azure** section. This opens the **Prepare infrastructure** pane.
44
+
1. In the **Prepare infrastructure** pane, under **Deployment planning** tab do the following:
45
+
> [!TIP]
46
+
> If you're planning a large deployment, download the Deployment Planner for Hyper-V from the link on the page. [Learn more](hyper-v-deployment-planner-overview.md) about Hyper-V deployment planning.
47
+
1. For this tutorial, we don't need the Deployment Planner. In **Deployment planning completed?**, select **I will do it later**.
48
+
1. Select **Next**.
53
49
54
-

To set up the source environment, you create a Hyper-V site and add to that site the Hyper-V hosts containing VMs that you want to replicate. Then, you download and install the Azure Site Recovery Provider and the Azure Recovery Services agent on each host, and register the Hyper-V site in the vault.
3. In**Create Hyper-V site**, specify the site name. We're using **ContosoHyperVSite**.
63
-
64
-

56
+
1.In the **Source settings** tab, do the following:
57
+
1. For**Are you Using System Center VMM to manage Hyper-V hosts?**, select **No**. This enables new options.
58
+
1. Under**Hyper-V site** specify the site name. You can also use the **Add Hyper-V site** option to add a new Hyper-V site. In this tutorial we're using **ContosoHyperVSite**.
59
+
1. Under **Hyper-V servers**, select **Add Hyper-V servers** to add servers.
4. After the site is created, in **Prepare source** > **Step 1: Select Hyper-V site**, select the site you created.
67
-
5. Select **+ Hyper-V Server**.
62
+
1. On the new **Add Server** pane, do the following:
63
+
1.[Download the installer](#install-the-provider) for the Microsoft Azure Site Recovery Provider.
64
+
:::image type="content" source="./media/hyper-v-azure-tutorial/add-server.png" alt-text="Screenshot displays Add server page." lightbox="./media/hyper-v-azure-tutorial/add-server.png":::
65
+
1. Download the vault registration key. You need this key to the Provider. The key is valid for five days. [Learn more](#install-the-provider-on-a-hyper-v-core-server).
66
+
1. Select the site you created.
67
+
1. Select **Next**.
68
+
68
69
69
-

70
-
71
-
6. Download the installer for the Microsoft Azure Site Recovery Provider.
72
-
7. Download the vault registration key. You need this key to install the Provider. The key is valid for five days after you generate it.
73
-
74
-

75
-
70
+
Site Recovery checks if you have one or more compatible Azure storage accounts and networks.
76
71
77
-
### Install the Provider
72
+
####Install the Provider
78
73
79
74
Install the downloaded setup file (AzureSiteRecoveryProvider.exe) on each Hyper-V host that you want to add to the Hyper-V site. Setup installs the Azure Site Recovery Provider and Recovery Services agent on each Hyper-V host.
80
75
@@ -105,39 +100,66 @@ If you're running a Hyper-V core server, download the setup file and follow thes
105
100
"C:\Program Files\Microsoft Azure Site Recovery Provider\DRConfigurator.exe" /r /Friendlyname "FriendlyName of the Server" /Credentials "path to where the credential file is saved"
2. In **Create and associate policy**, specify a policy name. We're using **ContosoReplicationPolicy**.
122
-
3. For this tutorial, we'll leave the default settings:
123
-
- **Copy frequency** indicates how often delta data (after initial replication) will replicate. The default frequency is every five minutes.
124
-
- **Recovery point retention** indicates that recovery points will be retained for two hours. The maximum allowed value for retention when protecting virtual machines hosted on Hyper-V hosts is 24 hours.
117
+
Under **Replication policy**, do the following:
118
+
1. Under **Replication policy**, specify the replication policy.
1. If you do not have a replication policy, use the **Create new policy and associate** option to create a new policy.
121
+
1. In the **Create and associate policy** page, do the following:
122
+
- **Name** - specify a policy name. We're using **ContosoReplicationPolicy**.
123
+
- **Source type** - select the ContosoHyperVSite site.
124
+
- **Target type** - verify the target (Azure), the vault subscription, and the Resource Manager deployment mode.
125
+
- **Copy frequency** - indicates how often delta data (after initial replication) will replicate. The default frequency is every five minutes.
126
+
- **Recovery point retention in hours** indicates that recovery points will be retained for two hours. The maximum allowed value for retention when protecting virtual machines hosted on Hyper-V hosts is 24 hours.
125
127
- **App-consistent snapshot frequency** indicates that recovery points containing app-consistent snapshots will be created every hour.
126
-
- **Initial replication start time** indicates that initial replication will start immediately.
127
-
4. After the policy is created, select **OK**. When you create a new policy, it's automatically associated with the specified Hyper-V site. In our tutorial, that's **ContosoHyperVSite**.
128
+
- **Initial replication start time** indicates that initial replication will start immediately.
129
+
130
+
1. After the policy is created, select **OK**. When you create a new policy, it's automatically associated with the specified Hyper-V site.
On the **Review** tab, review your selections and select **Create**.
130
135
131
-
## Enable replication
136
+
You can track progress in the notifications. After the job finishes, the initial replication is complete, and the VM is ready for failover.
132
137
133
-
1. In **Replicate application**, select **Source**.
134
-
2. In **Source**, select the **ContosoHyperVSite** site. Then, select **OK**.
135
-
3. In **Target**, verify the target (Azure), the vault subscription, and the **Resource Manager** deployment model.
136
-
4. If you're using tutorial settings, select the **contosovmsacct1910171607** storage account created in the previous tutorial for replicated data. Also select the **ContosoASRnet** network, in which Azure VMs will be located after failover.
137
-
5. In **Virtual machines** > **Select**, select the VM that you want to replicate. Then, select **OK**.
138
+
## Enable replication
138
139
139
-
You can track progress of the **Enable Protection** action in **Jobs** > **Site Recovery jobs**. After the **Finalize Protection** job finishes, the initial replication is complete, and the VM is ready for failover.
140
+
1. In the [Azure portal](https://portal.azure.com), go to **Recovery Services vaults** and select the vault.
141
+
2. On the vault home page, select **Enable Site Recovery**.
142
+
3. Navigate to the bottom of the page, and select **Enable replication** under the **Hyper-V machines to Azure** section.
143
+
1. Under **Source environment** tab, specify the **source location** and select **Next**.
144
+
145
+
:::image type="content" source="./media/hyper-v-azure-tutorial/enable-replication-source.png" alt-text="Screenshot of the source environment page.":::
146
+
147
+
1. Under **Target environment** tab, do the following:
148
+
1. In **Subscription**, specify the subscription name.
149
+
1. For **Post-failover resource group**, specify the resource group name to fail over.
150
+
1. For **Post-failover deployment model**, specify **Resource Manager**.
151
+
1. In **Storage account**, specify the storage account name.
152
+
1. Select **Next**.
153
+
:::image type="content" source="./media/hyper-v-azure-tutorial/enable-replication-target.png" alt-text="Screenshot of the target environment page.":::
154
+
155
+
1. Under **Virtual machine selection** tab, select the VM that you want to replicate and select **Next**.
156
+
157
+
1. Under **Replication settings** tab, select and verify the disk details.
158
+
:::image type="content" source="./media/hyper-v-azure-tutorial/enable-replication-settings.png" alt-text="Screenshot of the replication setting page.":::
159
+
1. Under **Replication policy** tab, verify that the correct replication policy is selected.
160
+
:::image type="content" source="./media/hyper-v-azure-tutorial/enable-replication-policy.png" alt-text="Screenshot of the replication policy page.":::
161
+
1. Under **Review** tab, review your selections and select **Enable Replication**.
140
162
141
163
## Next steps
142
-
> [!div class="nextstepaction"]
143
-
> [Run a disaster recovery drill](tutorial-dr-drill-azure.md)
164
+
165
+
[Learn more](tutorial-dr-drill-azure.md) about running a disaster recovery drill.
0 commit comments