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/how-to-enable-replication-proximity-placement-groups.md
+28-26Lines changed: 28 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,12 @@
1
1
---
2
-
title: Replicate Azure VMs running in a proximity placement group
3
-
description: Learn how to replicate Azure VMs running in proximity placement groups by using Azure Site Recovery.
2
+
title: Replicate Azure virtual machines running in a proximity placement group
3
+
description: Learn how to replicate Azure virtual machines running in proximity placement groups by using Azure Site Recovery.
4
4
ms.author: ankitadutta
5
5
author: ankitaduttaMSFT
6
-
manager: gaggupta
7
6
ms.topic: how-to
8
7
ms.service: site-recovery
9
8
ms.custom: devx-track-azurepowershell
10
-
ms.date: 04/08/2024
9
+
ms.date: 04/29/2024
11
10
---
12
11
13
12
# Replicate virtual machines running in a proximity placement group to another region
@@ -19,7 +18,7 @@ This article describes how to replicate, fail over, and fail back Azure virtual
19
18
20
19
[Proximity placement groups](../virtual-machines/windows/proximity-placement-groups-portal.md) are a logical grouping capability in Azure Virtual Machines. You can use them to decrease the inter-VM network latency associated with your applications.
21
20
22
-
When VMs are deployed within the same proximity placement group, they're physically located as close as possible to each other. Proximity placement groups are useful to address the requirements of latency-sensitive workloads.
21
+
When virtual machines are deployed within the same proximity placement group, they're physically located as close as possible to each other. Proximity placement groups are useful to address the requirements of latency-sensitive workloads.
23
22
24
23
## Disaster recovery with proximity placement groups
25
24
@@ -29,24 +28,27 @@ Site Recovery replicates the data from one Azure region to another region. It br
29
28
30
29
## Considerations
31
30
32
-
- The best effort will be to fail over and fail back the virtual machines into a proximity placement group. If there is am OverconstrainedAllocationRequest error due to which we are unable to bring up the VMs inside a proximity placement group, the failover and failback will still execute, but VMs will be created outside the proximity placement group.
33
-
- If an availability set is pinned to a proximity placement group and VMs in the availability set have an allocation constraint during failback or failover, the VMs will be created outside both the availability set and the proximity placement group.
31
+
- The best effort will be to fail over and fail back the virtual machines into a proximity placement group. If there is am OverconstrainedAllocationRequest error due to which we are unable to bring up the virtual machines inside a proximity placement group, the failover and failback will still execute, but virtual machines will be created outside the proximity placement group.
32
+
- If an availability set is pinned to a proximity placement group and virtual machines in the availability set have an allocation constraint during failback or failover, the virtual machines will be created outside both the availability set and the proximity placement group.
34
33
- Site Recovery for proximity placement groups is not supported for unmanaged disks.
35
34
36
35
> [!NOTE]
37
36
> Azure Site Recovery does not support failback from managed disks for scenarios of moving from Hyper-V to Azure. Failback from proximity placement groups in Azure to Hyper-V is not supported.
38
37
39
-
## Set up disaster recovery for VMs in proximity placement groups via the Azure portal
38
+
## Set up disaster recovery for virtual machines in proximity placement groups via the Azure portal
40
39
41
40
### Azure to Azure
42
41
43
-
You can choose to enable replication for a virtual machine through the VM disaster recovery page. Or you can enable replication by going to a pre-created vault, going to the Site Recovery section, and then enabling replication. Let's look at how you can set up Site Recovery VMs inside a proximity placement group through both approaches.
42
+
You can choose to enable replication for a virtual machine through the virtual machine disaster recovery page. Or you can enable replication by going to a pre-created vault, going to the Site Recovery section, and then enabling replication. Let's look at how you can set up Site Recovery virtual machines inside a proximity placement group through both approaches.
44
43
45
-
To select a proximity placement group in the DR region while enabling replication through the infrastructure as a service (IaaS) VM DR page:
44
+
> [!NOTE]
45
+
> Resource group of the target PPG should be same as that of target virtual machine.
46
+
47
+
To select a proximity placement group in the DR region while enabling replication through the infrastructure as a service (IaaS) virtual machine DR page:
46
48
47
49
1. Go to the virtual machine. On the left pane, under **Operations**, select **Disaster Recovery**.
48
-
2. On the **Basics** tab, choose the DR region that you want to replicate the VM to. Go to **Advanced Settings**.
49
-
3. You can see the proximity placement group of your VM and the option to select a proximity placement group in the DR region. Site Recovery also gives you the option of using a new proximity placement group that it creates for you, if you choose to use this default option.
50
+
2. On the **Basics** tab, choose the DR region that you want to replicate the virtual machine to. Go to **Advanced Settings**.
51
+
3. You can see the proximity placement group of your virtual machine and the option to select a proximity placement group in the DR region. Site Recovery also gives you the option of using a new proximity placement group that it creates for you, if you choose to use this default option.
50
52
51
53
Choose the proximity placement group that you want. Then select **Review + Start replication**.
52
54
@@ -55,46 +57,46 @@ To select a proximity placement group in the DR region while enabling replicatio
55
57
To select a proximity placement group in the DR region while enabling replication through the vault page:
56
58
57
59
1. Go to your Recovery Services vault, and then go to the **Site Recovery** tab.
58
-
2. Select **+ Enable Site Recovery**. Then select **1: Enable Replication** under **Azure virtual machines** (because you want to replicate an Azure VM).
60
+
2. Select **+ Enable Site Recovery**. Then select **1: Enable Replication** under **Azure virtual machines** (because you want to replicate an Azure virtual machine).
59
61
3. Fill in the required fields on the **Source** tab, and then select **Next**.
60
-
4. Select the list of VMs that you want to enable replication for on the **Virtual machines** tab, and then select **Next**.
62
+
4. Select the list of virtual machines that you want to enable replication for on the **Virtual machines** tab, and then select **Next**.
61
63
5. You can see the option to select a proximity placement group in the DR region. Site Recovery also gives you the option of using a new proximity placement group that it creates for you, if you choose to use this default option.
62
64
63
65
Choose the proximity placement group that you want, and then proceed to enabling replication.
64
66
65
67
:::image type="content" source="media/how-to-enable-replication-proximity-placement-groups/proximity-placement-group-a2a-2.png" alt-text="Screenshot that shows selections for customizing target settings.":::
66
68
67
-
You can easily update your selection of a proximity placement group in the DR region after replication has been enabled for the VM:
69
+
You can easily update your selection of a proximity placement group in the DR region after replication has been enabled for the virtual machine:
68
70
69
71
1. Go to the virtual machine. On the left pane, under **Operations**, select **Disaster Recovery**.
70
72
2. Go to the **Compute** pane and select **Edit**.
71
-
3. You can see the options to edit multiple target settings, including the target proximity placement group. Choose the proximity placement group that you want the VM to fail over into, and then select **Save**.
73
+
3. You can see the options to edit multiple target settings, including the target proximity placement group. Choose the proximity placement group that you want the virtual machine to fail over into, and then select **Save**.
72
74
73
75
### VMware to Azure
74
76
75
-
You can set up a proximity placement group for the target VM after you enable replication for the VM. Make sure that you separately create the proximity placement group in the target region according to your requirement.
77
+
You can set up a proximity placement group for the target virtual machine after you enable replication for the virtual machine. Make sure that you separately create the proximity placement group in the target region according to your requirement.
76
78
77
-
You can easily update your selection of a proximity placement group in the DR region after replication has been enabled for the VM:
79
+
You can easily update your selection of a proximity placement group in the DR region after replication has been enabled for the virtual machine:
78
80
79
81
1. Select the virtual machine from the vault. On the left pane, under **Operations**, select **Disaster Recovery**.
80
82
2. Go to the **Compute and Network** pane and select **Edit**.
81
-
3. You can see the options to edit multiple target settings, including the target proximity placement group. Choose the proximity placement group that you want the VM to fail over into, and then select **Save**.
83
+
3. You can see the options to edit multiple target settings, including the target proximity placement group. Choose the proximity placement group that you want the virtual machine to fail over into, and then select **Save**.
82
84
83
-
:::image type="content" source="media/how-to-enable-replication-proximity-placement-groups/proximity-placement-groups-update-v2a.png" alt-text="Screenshot that shows compute and network selections for VMware to Azure.":::
85
+
:::image type="content" source="media/how-to-enable-replication-proximity-placement-groups/proximity-placement-groups-update-v2a.png" alt-text="Screenshot that shows compute and network selections for virtual machineware to Azure.":::
84
86
85
87
### Hyper-V to Azure
86
88
87
-
You can set up a proximity placement group for the target VM after you enable replication for the VM. Make sure that you separately create the proximity placement group in the target region according to your requirement.
89
+
You can set up a proximity placement group for the target virtual machine after you enable replication for the virtual machine. Make sure that you separately create the proximity placement group in the target region according to your requirement.
88
90
89
-
You can easily update your selection of a proximity placement group in the DR region after replication has been enabled for the VM:
91
+
You can easily update your selection of a proximity placement group in the DR region after replication has been enabled for the virtual machine:
90
92
91
93
1. Select the virtual machine from the vault. On the left pane, under **Operations**, select **Disaster Recovery**.
92
94
2. Go to the **Compute and Network** pane and select **Edit**.
93
-
3. You can see the options to edit multiple target settings, including the target proximity placement group. Choose the proximity placement group that you want the VM to fail over into, and then select **Save**.
95
+
3. You can see the options to edit multiple target settings, including the target proximity placement group. Choose the proximity placement group that you want the virtual machine to fail over into, and then select **Save**.
94
96
95
97
:::image type="content" source="media/how-to-enable-replication-proximity-placement-groups/proximity-placement-groups-update-h2a.png" alt-text="Screenshot that shows compute and network selections for Hyper-V to Azure.":::
96
98
97
-
## Set up disaster recovery for VMs in proximity placement groups via PowerShell
99
+
## Set up disaster recovery for virtual machines in proximity placement groups via PowerShell
98
100
99
101
### Prerequisites
100
102
@@ -125,7 +127,7 @@ You can easily update your selection of a proximity placement group in the DR re
125
127
#Get the resource group that the virtual machine must be created in when it's failed over.
126
128
$RecoveryRG = Get-AzResourceGroup -Name "a2ademorecoveryrg" -Location "West US 2"
127
129
128
-
#Specify replication properties for each disk of the VM that will be replicated (create disk replication configuration).
130
+
#Specify replication properties for each disk of the virtual machine that will be replicated (create disk replication configuration).
129
131
#Make sure to replace the variable $OSdiskName with the OS disk name.
130
132
131
133
#OS Disk
@@ -162,7 +164,7 @@ You can easily update your selection of a proximity placement group in the DR re
162
164
#Get the resource group that the virtual machine must be created in when it's failed over.
163
165
$RecoveryRG = Get-AzResourceGroup -Name "a2ademorecoveryrg" -Location "West US 2"
164
166
165
-
#Specify replication properties for each disk of the VM that will be replicated (create disk replication configuration).
167
+
#Specify replication properties for each disk of the virtual machine that will be replicated (create disk replication configuration).
166
168
#Make sure to replace the variable $OSdiskName with the OS disk name.
0 commit comments