Skip to content

Commit 753ee0e

Browse files
author
Ankita Dutta
committed
AEZ
1 parent b5674ca commit 753ee0e

File tree

1 file changed

+32
-23
lines changed

1 file changed

+32
-23
lines changed

articles/site-recovery/tutorial-replicate-vms-edge-zone-to-azure-region.md

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,35 @@
11
---
22
title: Set up disaster recovery to another region using PowerShell
3-
description: This article describes how to replicate, failover, and failback Azure virtual machines (VMs) running an Azure Public MEC to the parent region where Azure Public MEC is an extension.
3+
description: This article describes how to replicate, failover, and failback Azure virtual machines running in an Azure Extended Zone to its parent region.
44
author: ankitaduttaMSFT
55
ms.service: azure-site-recovery
66
ms.topic: tutorial
7-
ms.date: 12/14/2022
7+
ms.date: 12/11/2024
88
ms.author: ankitadutta
99

1010
---
1111

12-
# Replicate virtual machines running in an Azure Public MEC to Azure region
12+
# Replicate virtual machines running in an Azure Extended Zone to an Azure region
1313

14-
> [!IMPORTANT]
15-
> The Azure Site Recovery functionality for Public MEC is in preview state.
14+
This article describes how to replicate, failover, and failback Azure virtual machines (VMs) running on an Azure Extended Zone to its parent Azure region.
15+
16+
## Disaster recovery in Azure Extended Zone
17+
18+
Site Recovery ensures business continuity by keeping workloads running during outages by continuously replicating the workload from a primary to a secondary location. The ASR functionality for Extended Zones is in preview.
1619

17-
This article describes how to replicate, failover, and failback Azure virtual machines (VMs) running on Azure Public MEC to the parent Azure region where Azure Public MEC is an extension.
20+
Here the primary location is an Azure Extended Zone and secondary location is the parent region to which the Azure Extended Zone is connected.
21+
22+
> [!IMPORTANT]
23+
> - During VM creation, we don't support replication in Extended Zone. It can be enabled in the VM or in the Vault pages once the VM is created.
24+
> - If using an Extended Zone Storage account as cache storage account, only Block Blob Premium Storage Accounts will be supported.
25+
> - If using an Extended Zone Storage account as cache storage account, only High-Churn is supported.
1826
19-
## Disaster recovery in Azure Public MEC
27+
If Azure region storage account is used as cache storage account, both normal & high churn are supported.
2028

21-
Site Recovery ensures business continuity by keeping workloads running during outages by continuously replicating the workload from primary to secondary location. The ASR functionality for MEC is in preview.
2229

23-
Here the primary location is an Azure Public MEC and secondary location is the parent region to which the Azure Public MEC is connected.
30+
## Set up disaster recovery for VMs in an Azure Extended Zone using PowerShell
2431

25-
## Set up disaster recovery for VMs in an Azure Public MEC using PowerShell
32+
Following are the prerequisites to set up disaster recovery for VMs in an Azure Extended Zone using PowerShell:
2633

2734
### Prerequisites
2835

@@ -32,15 +39,16 @@ Here the primary location is an Azure Public MEC and secondary location is the p
3239
```
3340
Get-InstalledModule -Name Az
3441
```
42+
- Ensure the Linux distro version and kernel is supported by Azure Site Recovery. For more information, see the [support matrix](./azure-to-azure-support-matrix.md#linux).
3543
36-
- Ensure the Linux distro version and kernel is supported by Azure Site Recovery. For more information, see the [support matrix](./azure-to-azure-support-matrix.md#linux).
3744
38-
## Replicate Virtual machines running in an Azure Public MEC to Azure region
45+
## Replicate Virtual machines running in an Azure Extended Zone to an Azure region
46+
47+
To replicate VMs running in an Azure Extended Zone to an Azure region, follow these steps:
3948
40-
To replicate VMs running in an Azure Public MEC to Azure region, Follow these steps:
4149
4250
> [!NOTE]
43-
> For this example, the primary location is an Azure Public MEC, and the secondary/recovery location is the Azure Public MEC's region.
51+
> For this example, the primary location is an Azure Extended Zone, and the secondary/recovery location is the Azure Extended Zone's region.
4452
4553
1. Sign-in to your Azure account.
4654
@@ -51,21 +59,20 @@ To replicate VMs running in an Azure Public MEC to Azure region, Follow these st
5159
5260
```
5361
$subscription = Get-AzSubscription -SubscriptionName "<SubscriptionName>"
54-
Set-AzContext $subscription.Id
62+
Set-AzContext $subscription.Id
5563
```
5664
5765
1. Get the details of the virtual machine that you plan to replicate.
5866
5967
```
60-
$VM = Get-AzVM -ResourceGroupName "<ResourceGroupName>" -Name "<VMName>"
61-
62-
Write-Output $VM
68+
$VM = Get-AzVM -ResourceGroupName "<ResourceGroupName>" -Name "<VMName>"
69+
Write-Output $VM
6370
```
6471
6572
1. Create a resource group for the recovery services vault in the secondary Azure region.
6673
6774
```
68-
New-AzResourceGroup -Name "edgezonerecoveryrg" -Location "<EdgeZoneRegion>"
75+
New-AzResourceGroup -Name "edgezonerecoveryrg" -Location "<AzureRegion>"
6976
```
7077
7178
1. Create a new Recovery services vault in the secondary region.
@@ -79,13 +86,13 @@ To replicate VMs running in an Azure Public MEC to Azure region, Follow these st
7986
1. Set the vault context.
8087
8188
```
82-
Set-AzRecoveryServicesAsrVaultContext -Vault $vault
89+
Set-AzRecoveryServicesAsrVaultContext -Vault $vault
8390
```
8491
8592
1. Create Primary Site Recovery fabric.
8693
8794
```
88-
$TempASRJob = New-AzRecoveryServicesAsrFabric -Azure -Location “<EdgeZoneRegion>” -
95+
$TempASRJob = New-AzRecoveryServicesAsrFabric -Azure -Location “<AzureRegion>” -
8996
Name "EdgeZoneFabric"
9097
```
9198
@@ -235,7 +242,7 @@ To replicate VMs running in an Azure Public MEC to Azure region, Follow these st
235242
$recoveryNetwork = $recoveryVnet.Id
236243
```
237244
238-
1. Use the following PowerShell cmdlet to replicate an Azure Public MEC Azure virtual machine with managed disks. This step may take around 20 minutes to complete.
245+
1. Use the following PowerShell cmdlet to replicate an Azure Extended Zone virtual machine with managed disks. This step may take around 20 minutes to complete.
239246
240247
1. Get the resource group that the virtual machine must be created in when it's failed
241248
over.
@@ -380,6 +387,7 @@ To replicate VMs running in an Azure Public MEC to Azure region, Follow these st
380387
After the test failover job completes successfully, you can connect to the test failed over virtual machine and validate the test failover. Once testing is complete on the test failed over virtual machine, clean up the test copy by starting the cleanup test failover operation. This operation deletes the test copy of the virtual machine that was created by the test failover.
381388
Verify that all the target settings are right in the test failover VM including location, network setting, no data corruption, and no data is lost in the target VM. Now you can delete the test failover and start the failover.
382389
390+
383391
```
384392
$Job_TFOCleanup = Start-AzRecoveryServicesAsrTestFailoverCleanupJob -
385393
ReplicationProtectedItem $ReplicationProtectedItem
@@ -470,4 +478,5 @@ To replicate VMs running in an Azure Public MEC to Azure region, Follow these st
470478
471479
```
472480
Remove-AzResourceGroup -Name $Name -Force
473-
```
481+
```
482+

0 commit comments

Comments
 (0)