@@ -119,7 +119,7 @@ Make sure you have Azure PowerShell ready to go:
119
119
120
120
``` console
121
121
.\SetupDr.exe /i
122
- $installationRegPath = "hklm:\software \Microsoft\Microsoft System Center Virtual Machine Manager Server\DRAdapter"
122
+ $installationRegPath = "HKLM:\Software \Microsoft\Microsoft System Center Virtual Machine Manager Server\DRAdapter"
123
123
do
124
124
{
125
125
$isNotInstalled = $true;
@@ -276,7 +276,7 @@ To test your deployment, run a test failover for a single virtual machine. You a
276
276
``` azurepowershell
277
277
$protectionEntity = Get-AzRecoveryServicesAsrProtectableItem -FriendlyName $VMName -ProtectionContainer $PrimaryprotectionContainer
278
278
279
- $jobIDResult = Start-AzRecoveryServicesAsrTestFailoverJob -Direction PrimaryToRecovery -ReplicationProtectedItem $protectionEntity -VMNetwork $RecoveryNetworks[1]
279
+ $jobIDResult = Start-AzRecoveryServicesAsrTestFailoverJob -Direction PrimaryToRecovery -ReplicationProtectedItem $protectionEntity -VMNetwork $RecoveryNetworks[1]
280
280
```
281
281
282
282
For a recovery plan:
@@ -286,7 +286,7 @@ To test your deployment, run a test failover for a single virtual machine. You a
286
286
287
287
$recoveryplan = Get-AzRecoveryServicesAsrRecoveryPlan -FriendlyName $recoveryplanname
288
288
289
- $jobIDResult = Start-AzRecoveryServicesAsrTestFailoverJob -Direction PrimaryToRecovery -RecoveryPlan $recoveryplan -VMNetwork $RecoveryNetworks[1]
289
+ $jobIDResult = Start-AzRecoveryServicesAsrTestFailoverJob -Direction PrimaryToRecovery -RecoveryPlan $recoveryplan -VMNetwork $RecoveryNetworks[1]
290
290
```
291
291
292
292
To check the completion of the operation, follow the steps in [ Monitor activity] ( #monitor-activity ) .
@@ -300,7 +300,7 @@ To check the completion of the operation, follow the steps in [Monitor activity]
300
300
``` azurepowershell
301
301
$protectionEntity = Get-AzRecoveryServicesAsrProtectableItem -Name $VMName -ProtectionContainer $PrimaryprotectionContainer
302
302
303
- $jobIDResult = Start-AzRecoveryServicesAsrPlannedFailoverJob -Direction PrimaryToRecovery -ReplicationProtectedItem $protectionEntity
303
+ $jobIDResult = Start-AzRecoveryServicesAsrPlannedFailoverJob -Direction PrimaryToRecovery -ReplicationProtectedItem $protectionEntity
304
304
```
305
305
306
306
For a recovery plan:
@@ -310,7 +310,7 @@ To check the completion of the operation, follow the steps in [Monitor activity]
310
310
311
311
$recoveryplan = Get-AzRecoveryServicesAsrRecoveryPlan -FriendlyName $recoveryplanname
312
312
313
- $jobIDResult = Start-AzRecoveryServicesAsrPlannedFailoverJob -Direction PrimaryToRecovery -RecoveryPlan $recoveryplan
313
+ $jobIDResult = Start-AzRecoveryServicesAsrPlannedFailoverJob -Direction PrimaryToRecovery -RecoveryPlan $recoveryplan
314
314
```
315
315
316
316
1 . Perform an unplanned failover.
@@ -320,7 +320,7 @@ To check the completion of the operation, follow the steps in [Monitor activity]
320
320
``` azurepowershell
321
321
$protectionEntity = Get-AzRecoveryServicesAsrProtectableItem -Name $VMName -ProtectionContainer $PrimaryprotectionContainer
322
322
323
- $jobIDResult = Start-AzRecoveryServicesAsrUnplannedFailoverJob -Direction PrimaryToRecovery -ReplicationProtectedItem $protectionEntity
323
+ $jobIDResult = Start-AzRecoveryServicesAsrUnplannedFailoverJob -Direction PrimaryToRecovery -ReplicationProtectedItem $protectionEntity
324
324
```
325
325
326
326
For a recovery plan:
@@ -330,7 +330,7 @@ To check the completion of the operation, follow the steps in [Monitor activity]
330
330
331
331
$recoveryplan = Get-AzRecoveryServicesAsrRecoveryPlan -FriendlyName $recoveryplanname
332
332
333
- $jobIDResult = Start-AzRecoveryServicesAsrUnplannedFailoverJob -Direction PrimaryToRecovery -RecoveryPlan $recoveryplan
333
+ $jobIDResult = Start-AzRecoveryServicesAsrUnplannedFailoverJob -Direction PrimaryToRecovery -RecoveryPlan $recoveryplan
334
334
```
335
335
336
336
## Monitor activity
@@ -340,7 +340,7 @@ Use the following commands to monitor failover activity. Wait for the processing
340
340
``` azurepowershell
341
341
Do
342
342
{
343
- $job = Get-AzureSiteRecoveryJob -TargetObjectId $associationJob.JobId;
343
+ $job = Get-AzRecoveryServicesAsrJob -TargetObjectId $associationJob.JobId;
344
344
Write-Host "Job State:{0}, StateDescription:{1}" -f Job.State, $job.StateDescription;
345
345
if($job -eq $null -or $job.StateDescription -ne "Completed")
346
346
{
0 commit comments