Skip to content

Commit 664c198

Browse files
author
Ankita Dutta
committed
links
1 parent 702e8fc commit 664c198

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

articles/site-recovery/azure-to-azure-tutorial-enable-replication-shared-disk.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Before you start:
2020
- Make sure that you understand the [scenario architecture and components](azure-to-azure-architecture.md).
2121
- Review the [support requirements](azure-to-azure-support-matrix.md) for all components.
2222
- You have the Azure PowerShell `Az` module. If you need to install or upgrade Azure PowerShell, follow this [Guide to install and configure Azure PowerShell](/powershell/azure/install-azure-powershell).
23-
- [Set up the environment](./azure-to-azure-powershell.md#sign-in-to-your-microsoft-azure-subscription).
23+
- [Set up the environment](./azure-to-azure-powershell.md#sign-in-to-your-microsoft-azure-subscription) for recovery.
2424

2525

2626
## Get the resource group and VM details
@@ -77,10 +77,10 @@ To prepare the vault for replication, you need to do the following:
7777

7878
1. [Create a Site Recovery fabric object to represent the primary (source) region](./azure-to-azure-powershell.md#create-a-site-recovery-fabric-object-to-represent-the-primary-source-region).
7979
1. [Create a Site Recovery fabric object to represent the recovery region](./azure-to-azure-powershell.md#create-a-site-recovery-fabric-object-to-represent-the-recovery-region).
80-
1. [Create a Site Recovery protection container in the primary region](./azure-to-azure-powershell.md#create-a-site-recovery-protection-container-in-the-primary-region).
81-
1. [Create a Site Recovery protection container in the recovery fabric](./azure-to-azure-powershell.md#create-a-site-recovery-protection-container-in-the-recovery-region). Learn more about [Fabric and container creation when enabling zone to zone replication](./azure-to-azure-powershell.md#fabric-and-container-creation-when-enabling-zone-to-zone-replication).
80+
1. [Create a Site Recovery protection container in the primary region](./azure-to-azure-powershell.md#create-a-site-recovery-protection-container-in-the-primary-fabric).
81+
1. [Create a Site Recovery protection container in the recovery fabric](./azure-to-azure-powershell.md#create-a-site-recovery-protection-container-in-the-recovery-fabric). Learn more about [Fabric and container creation when enabling zone to zone replication](./azure-to-azure-powershell.md#fabric-and-container-creation-when-enabling-zone-to-zone-replication).
8282
1. [Create a replication policy](./azure-to-azure-powershell.md#create-a-replication-policy).
83-
1. [Create a protection container mapping between the primary and recovery protection containers](./azure-to-azure-powershell.md#create-a-protection-container-mapping-between-the-primary-and-recovery-protection-containers). Learn more about [Protection container mapping creation when enabling zone to zone replication](./azure-to-azure-powershell.md#protection-container-mapping-creation-when-enabling-zone-to-zone-replication).
83+
1. [Create a protection container mapping between the primary and recovery protection containers](./azure-to-azure-powershell.md#create-a-protection-container-mapping-between-the-primary-and-recovery-protection-container). Learn more about [Protection container mapping creation when enabling zone to zone replication](./azure-to-azure-powershell.md#protection-container-mapping-creation-when-enabling-zone-to-zone-replication).
8484
1. [Create a protection container mapping for failback (reverse replication after a failover)](./azure-to-azure-powershell.md#create-a-protection-container-mapping-for-failback-reverse-replication-after-a-failover).
8585

8686

@@ -258,11 +258,15 @@ The recovery point is a point in time to which you can fail over. You can create
258258

259259

260260
**List**
261-
```Get-AzRecoveryServicesAsrClusterRecoveryPoint -ReplicationProtectionCluster $cluster```
261+
```
262+
Get-AzRecoveryServicesAsrClusterRecoveryPoint -ReplicationProtectionCluster $cluster
263+
```
262264

263265

264266
**Get**
265-
```Get-AzRecoveryServicesAsrClusterRecoveryPoint -ReplicationProtectionCluster $cluster -Name "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"```
267+
```
268+
Get-AzRecoveryServicesAsrClusterRecoveryPoint -ReplicationProtectionCluster $cluster -Name "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
269+
```
266270

267271

268272
## Test failover
@@ -302,6 +306,8 @@ $rpi1 = Get-ASRReplicationProtectedItem -ProtectionContainer $protectionContaine
302306

303307
## Change pit
304308

309+
You can change the point in time to which you want to fail over. This is useful when you want to fail over to a specific recovery point.
310+
305311
```powershell
306312
$rpi1 = Get-ASRReplicationProtectedItem -ProtectionContainer $protectionContainer -FriendlyName "sdgql1"
307313
$rpi2 = Get-ASRReplicationProtectedItem -ProtectionContainer $protectionContainer -FriendlyName "sdgql2"
@@ -353,11 +359,21 @@ $storage = "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/v
353359
354360
-RecoveryResourceGroupId $rgId -LogStorageAccountId $storage -ProtectionContainerMapping $recoverypcm
355361
```
356-
357362

358363
After reprotection is complete, you can fail over in the reverse direction, West US to East US, and fail back to source region using Failover.
359364

365+
## Disable protection
366+
367+
To disable protection, do the following:
368+
369+
```powershell
370+
$clusterToDisableName = "PowershellTestLatest"
371+
$clusterToDisable = Get-AzRecoveryServicesAsrReplicationProtectionCluster -Name $clusterToDisableName -ProtectionContainer $pc
372+
$DisableJob = Remove-AzRecoveryServicesAsrReplicationProtectionCluster -ReplicationProtectionCluster $clusterToDisable
373+
```
360374

361375
## Next steps
362376

363-
View the Azure Site Recovery PowerShell reference to learn how you can do other tasks such as creating recovery plans and testing failover of recovery plans with PowerShell.
377+
- View the [Azure Site Recovery PowerShell reference](/powershell/module/az.RecoveryServices) to learn how you can do other tasks such as creating recovery plans and testing failover of recovery plans with PowerShell.
378+
379+
- Learn more about [shared disks in Azure Site Recovery](./tutorial-shared-disk.md).

0 commit comments

Comments
 (0)