@@ -71,7 +71,8 @@ SubscriptionId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
71
71
Properties : Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties
72
72
```
73
73
74
- ## Prepare the vault to start replicating Azure virtual
74
+ ## Prepare the vault to start replicating Azure virtual machines
75
+
75
76
76
77
To prepare the vault for replication, you need to do the following:
77
78
@@ -293,13 +294,9 @@ Fail over the cluster to a specific recovery point.
293
294
``` powershell
294
295
$rpi1 = Get-ASRReplicationProtectedItem -ProtectionContainer $protectionContainer -FriendlyName "sdgql1"
295
296
$rpi2 = Get-ASRReplicationProtectedItem -ProtectionContainer $protectionContainer -FriendlyName "sdgql2"
296
-
297
297
$nodeRecoveryPoint1 = Get-ASRRecoveryPoint -ReplicationProtectedItem $rpi1
298
-
299
298
$nodeRecoveryPoint2 = Get-ASRRecoveryPoint -ReplicationProtectedItem $rpi2
300
-
301
299
$nodeRecoveryPoints = @($nodeRecoveryPoint1[-1].ID, $nodeRecoveryPoint2[-1].ID)
302
-
303
300
$clusterRecoveryPoints = Get-AzRecoveryServicesAsrClusterRecoveryPoint -ReplicationProtectionCluster $protectionCluster
304
301
$ufoJob = Start-AzRecoveryServicesAsrClusterUnplannedFailoverJob -ReplicationProtectionCluster $protectionCluster -Direction PrimaryToRecovery -ClusterRecoveryPoint $clusterRecoveryPoints[-1] -ListNodeRecoveryPoint $nodeRecoveryPoints
305
302
```
@@ -311,15 +308,10 @@ You can change the point in time to which you want to fail over. This is useful
311
308
``` powershell
312
309
$rpi1 = Get-ASRReplicationProtectedItem -ProtectionContainer $protectionContainer -FriendlyName "sdgql1"
313
310
$rpi2 = Get-ASRReplicationProtectedItem -ProtectionContainer $protectionContainer -FriendlyName "sdgql2"
314
-
315
311
$nodeRecoveryPoint1 = Get-ASRRecoveryPoint -ReplicationProtectedItem $rpi1
316
-
317
312
$nodeRecoveryPoint2 = Get-ASRRecoveryPoint -ReplicationProtectedItem $rpi2
318
-
319
313
$nodeRecoveryPoints = @($nodeRecoveryPoint1[-1].ID, $nodeRecoveryPoint2[-1].ID)
320
-
321
314
$clusterRecoveryPoints = Get-AzRecoveryServicesAsrClusterRecoveryPoint -ReplicationProtectionCluster $protectionCluster
322
-
323
315
$changePitJob = Start-AzRecoveryServicesAsrApplyClusterRecoveryPoint -ReplicationProtectionCluster $protectionCluster -ClusterRecoveryPoint $clusterRecoveryPoints[-1] -ListNodeRecoveryPoint $nodeRecoveryPoints
324
316
```
325
317
@@ -336,27 +328,18 @@ After failover, protect the Cluster in the new source region back and failover t
336
328
337
329
``` powershell
338
330
$storage = "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/vijami-alertrg/providers/Microsoft.Storage/storageAccounts/yerp1nvijamitestasrcache"
339
-
340
331
$ppg = "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ClusterRG-Vijami-1003165924/providers/Microsoft.Compute/proximityPlacementGroups/sdgql-ppg"
341
-
342
332
$avset = "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ClusterRG-Vijami-1003165924/providers/Microsoft.Compute/availabilitySets/SDGQL-AS"
343
-
344
333
$rgId = "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ClusterRG-Vijami-1003165924"
345
334
346
335
# Without protected item details
347
336
348
337
$recoveryFabricName = "asr-a2a-default-westus"
349
-
350
338
$recoveryFabric = Get-AzRecoveryServicesAsrFabric -Name $recoveryFabricName
351
-
352
339
$recoverypc = Get-AzRecoveryServicesAsrProtectionContainer -Fabric $recoveryFabric
353
-
354
340
$recoverypcm = Get-AzRecoveryServicesAsrProtectionContainerMapping -ProtectionContainer $recoverypc -Name "westus-eastus2-24-hour-retention-policy"
355
-
356
341
$ReprotectJob = Update-AzRecoveryServicesAsrClusterProtectionDirection -AzureToAzure -ReplicationProtectionCluster $cluster `
357
-
358
342
-RecoveryProximityPlacementGroupId $ppg -RecoveryAvailabilitySetId $avset `
359
-
360
343
-RecoveryResourceGroupId $rgId -LogStorageAccountId $storage -ProtectionContainerMapping $recoverypcm
361
344
```
362
345
0 commit comments