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/tutorial-replicate-vms-edge-zone-to-azure-region.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: This article describes how to replicate, failover, and failback Azu
4
4
author: ankitaduttaMSFT
5
5
ms.service: azure-site-recovery
6
6
ms.topic: tutorial
7
-
ms.date: 12/11/2024
7
+
ms.date: 12/18/2024
8
8
ms.author: ankitadutta
9
9
10
10
---
@@ -13,6 +13,9 @@ ms.author: ankitadutta
13
13
14
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
15
16
+
> [!IMPORTANT]
17
+
> The Azure Site Recovery functionality for Extended Zones is in preview state.
18
+
16
19
## Disaster recovery in Azure Extended Zone
17
20
18
21
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.
Copy file name to clipboardExpand all lines: articles/site-recovery/tutorial-replicate-vms-extended-zones-to-another-zone.md
+78-39Lines changed: 78 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,28 +1,29 @@
1
1
---
2
-
title: Set up disaster recovery to another Public MEC using PowerShell
3
-
description: This article describes how to replicate, failover, and failback Azure virtual machines (VMs) running an Azure Public MEC (in preview for ASR functionality) to another Public MEC connected to the same parent region.
2
+
title: Set up disaster recovery to another Extended Zones using PowerShell
3
+
description: This article describes how to replicate, failover, and failback Azure virtual machines (VMs) running an Azure Extended Zone (in preview for ASR functionality) to another Extended Zone connected to the same parent region.
4
4
author: ankitaduttaMSFT
5
5
ms.service: azure-site-recovery
6
6
ms.topic: tutorial
7
-
ms.date: 12/14/2022
7
+
ms.date: 12/18/2024
8
8
ms.author: ankitadutta
9
9
---
10
10
11
-
# Replicate virtual machines running in an Azure Public MEC to another Azure Public MEC in the same region
11
+
# Replicate virtual machines running in an Azure Extended Zones to another Azure Extended Zones in the same region
12
12
13
13
> [!IMPORTANT]
14
-
> The Azure Site Recovery functionality for Public MEC is in preview state.
15
-
This article describes how to replicate, failover, and failback Azure virtual machines (VMs) running an Azure Public MEC to another Azure Public MEC connected to the same parent region.
14
+
> The Azure Site Recovery functionality for Extended Zones is in preview state.
16
15
17
-
Azure Public MECs are fully managed solution deployed close to your data center and includes hardware, services, and support.
16
+
This article describes how to replicate, failover, and failback Azure virtual machines (VMs) running an Azure Extended Zones to another Azure Extended Zones connected to the same parent region.
18
17
19
-
## Disaster recovery in Azure Public MEC
18
+
Azure Extended Zones are fully managed solution deployed close to your data center and includes hardware, services, and support.
19
+
20
+
## Disaster recovery in Azure Extended Zones
20
21
21
22
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.
22
23
23
-
Here the primary location is an Azure Public MEC and secondary location is another Azure Public MEC connected to the same parent region.
24
+
Here the primary location is an Azure Extended Zones and secondary location is another Azure Extended Zones connected to the same parent region.
24
25
25
-
## Set up disaster recovery for VMs in an Azure Public MEC using PowerShell
26
+
## Set up disaster recovery for VMs in an Azure Extended Zones using PowerShell
26
27
27
28
### Prerequisites
28
29
@@ -32,34 +33,43 @@ Here the primary location is an Azure Public MEC and secondary location is anoth
32
33
```
33
34
Get-InstalledModule -Name Az
34
35
```
36
+
35
37
- 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).
36
38
- Ensure the primary VM has a public IP. To validate, go to the VM NIC and check if public IP is attached to the NIC. Ensure that recovery VM has a public IP when you switch to protection direction.
39
+
37
40
>[!Note]
38
41
>Azure Site Recovery doesn’t re-create the public IP, so it's important to check the availability of the public IP and that it is attached to the NIC before you switch to protection direction from recovery to primary.
39
-
## Replicate Virtual machines running in an Azure Public MEC to another Azure Public MEC
40
-
To replicate VMs running in a Public MEC to another Azure Public MEC, follow these steps:
42
+
43
+
## Replicate Virtual machines running in an Azure Extended Zones to another Azure Extended Zones
44
+
45
+
To replicate VMs running in a Extended Zones to another Azure Extended Zones, follow these steps:
46
+
41
47
> [!NOTE]
42
-
> For this example, the primary location is an Azure Public MEC, and the secondary/recovery location is another Azure Public MEC connected to the same region.
48
+
> For this example, the primary location is an Azure Extended Zones, and the secondary/recovery location is another Azure Extended Zones connected to the same region.
1. Create a cache storage account for replication logs in the primary region. The cache storage account is created in the primary region.
198
-
You can use **Local cache** (cache in the Public MEC) or **Remote cache** (cache in Azure).
215
+
You can use **Local cache** (cache in the Extended Zone) or **Remote cache** (cache in Azure).
199
216
200
217
In this example, remote cache is used but there is no difference between them in terms of PowerShell commands. ARM ID of the cache storage account we provide to `New-AzRecoveryServicesAsrAzureToAzureDiskReplicationConfig` is the only difference.
1. Use the following PowerShell cmdlet to replicate an Azure Public MECs Azure virtual machine with managed disks. This step may take around 20 minutes to complete.
240
+
241
+
1. Use the following PowerShell cmdlet to replicate an Azure Extended Zones Azure virtual machine with managed disks. This step may take around 20 minutes to complete.
221
242
1. Get the resource group that the virtual machine must be created in when it's failed
1. If VM has data disk, use the following command to create disk configuration. If not,
251
-
you can skip this section. From `$datadiskId` to `$DataDisk1ReplicationConfig $datadiskId = $vm.StorageProfile.OSDisk.ManagedDisk.Id`.
273
+
1. If VM has data disk, use the following command to create disk configuration. If not, you can skip this section. From `$datadiskId` to `$DataDisk1ReplicationConfig $datadiskId = $vm.StorageProfile.OSDisk.ManagedDisk.Id`.
252
274
253
-
Alternatively,
275
+
Alternatively, use:
276
+
254
277
```
255
278
$RecoveryReplicaDiskAccountType = "Premium_LRS"
256
279
$RecoveryTargetDiskAccountType = "Premium_LRS"
@@ -286,15 +309,11 @@ To replicate VMs running in a Public MEC to another Azure Public MEC, follow the
286
309
```
287
310
Write-Output $TempASRJob.State
288
311
```
312
+
289
313
1. After the operation to start replication succeeds, virtual machine data is replicated to the recovery region.
290
314
291
315
Initially, when the replication process starts, it creates a copy of the replicating disks of the virtual machine in the recovery region. This phase is called the initial replication phase. This step takes around 20 minutes. See the status of the replication in the Vault blade under **Replicated items**.
292
316
293
-
:::image type="Replicated items" source="./media/tutorial-replicate-vms-edge-zone-to-another-zone/replicated-items.png" alt-text="Screenshot of replicated items.":::
294
-
When the replication is completed, the Vault replication items will show as below:
295
-
296
-
:::image type="Vault replication" source="./media/tutorial-replicate-vms-edge-zone-to-another-zone/vault-replication.png" alt-text="Screenshot of Vault replication.":::
297
-
298
317
Now the virtual machine is protected, and you can perform a test failover operation. The replication state of the replicated item that represents the virtual machine goes to the protected state after initial replication completes.
299
318
300
319
Monitor the replication state and replication health for the virtual machine by getting details of the replication protected item that corresponds to it:
@@ -308,13 +327,12 @@ To replicate VMs running in a Public MEC to another Azure Public MEC, follow the
308
327
309
328
If you see **Protected** in the *ProtectionState*, you are ready to proceed to test failover.
310
329
311
-
:::image type="Protection state" source="./media/tutorial-replicate-vms-edge-zone-to-another-zone/protection-state.png" alt-text="Screenshot of Protection state.":::
312
330
1. Perform, validate, and clean up a test failover. You can skip the Test failover. However, we recommend executing test failover to ensure that your secondary region comes up as expected.
313
331
1. Create a separate network for test failover (not connected to my DR network).
@@ -343,26 +361,34 @@ To replicate VMs running in a Public MEC to another Azure Public MEC, follow the
343
361
```
344
362
345
363
1. Wait for the test failover to complete.
364
+
346
365
```
347
366
Get-AzRecoveryServicesAsrJob -Job $TFOJob
348
367
```
368
+
349
369
>[!NOTE]
350
370
>To check the progress, go to the portal, select the vault and then select the Site Recovery Jobs.
371
+
351
372
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.
352
373
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.
The list of recovery points returned may not be sorted chronologically. You need to sort these first to find the oldest or the latest recovery points for the virtual machine.
1. After a failover, when you're ready to go back to the original region, start reverse replication for the replication protected item using the `Update-AzRecoveryServicesAsrProtectionDirection` cmdlet.
400
430
1. Create Cache storage account for replication logs in the recovery region.
401
431
@@ -405,7 +435,7 @@ To replicate VMs running in a Public MEC to another Azure Public MEC, follow the
405
435
Standard_LRS -Kind Storage
406
436
```
407
437
408
-
1. Use the recovery protection container, the new cache storage account in Azure Public MECs region, and the source region VM resource group.
438
+
1. Use the recovery protection container, the new cache storage account in Azure Extended Zoness region, and the source region VM resource group.
1. Clean the environment. This step is optional and can be used to remove the resource group.
462
+
429
463
```
430
464
Remove-AzResourceGroup -Name $Name -Force
431
-
```
465
+
```
466
+
467
+
## Next steps
468
+
469
+
- View the [Azure Site Recovery PowerShell reference](https://learn.microsoft.com/powershell/module/az.recoveryservices/?view=azps-13.0.0) to learn how you can create recovery plans, perform failovers, and failbacks with PowerShell.
470
+
- Learn how to [Set up disaster recovery for Azure VMs using the Azure PowerShell](../azure-to-azure-powershell.md).
0 commit comments