Skip to content

Commit e3fb7e3

Browse files
committed
fixes cmdlet name, style
1 parent fb4724a commit e3fb7e3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/site-recovery/hyper-v-vmm-powershell-resource-manager.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Make sure you have Azure PowerShell ready to go:
119119

120120
```console
121121
.\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"
123123
do
124124
{
125125
$isNotInstalled = $true;
@@ -276,7 +276,7 @@ To test your deployment, run a test failover for a single virtual machine. You a
276276
```azurepowershell
277277
$protectionEntity = Get-AzRecoveryServicesAsrProtectableItem -FriendlyName $VMName -ProtectionContainer $PrimaryprotectionContainer
278278
279-
$jobIDResult = Start-AzRecoveryServicesAsrTestFailoverJob -Direction PrimaryToRecovery -ReplicationProtectedItem $protectionEntity -VMNetwork $RecoveryNetworks[1]
279+
$jobIDResult = Start-AzRecoveryServicesAsrTestFailoverJob -Direction PrimaryToRecovery -ReplicationProtectedItem $protectionEntity -VMNetwork $RecoveryNetworks[1]
280280
```
281281

282282
For a recovery plan:
@@ -286,7 +286,7 @@ To test your deployment, run a test failover for a single virtual machine. You a
286286
287287
$recoveryplan = Get-AzRecoveryServicesAsrRecoveryPlan -FriendlyName $recoveryplanname
288288
289-
$jobIDResult = Start-AzRecoveryServicesAsrTestFailoverJob -Direction PrimaryToRecovery -RecoveryPlan $recoveryplan -VMNetwork $RecoveryNetworks[1]
289+
$jobIDResult = Start-AzRecoveryServicesAsrTestFailoverJob -Direction PrimaryToRecovery -RecoveryPlan $recoveryplan -VMNetwork $RecoveryNetworks[1]
290290
```
291291

292292
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]
300300
```azurepowershell
301301
$protectionEntity = Get-AzRecoveryServicesAsrProtectableItem -Name $VMName -ProtectionContainer $PrimaryprotectionContainer
302302
303-
$jobIDResult = Start-AzRecoveryServicesAsrPlannedFailoverJob -Direction PrimaryToRecovery -ReplicationProtectedItem $protectionEntity
303+
$jobIDResult = Start-AzRecoveryServicesAsrPlannedFailoverJob -Direction PrimaryToRecovery -ReplicationProtectedItem $protectionEntity
304304
```
305305

306306
For a recovery plan:
@@ -310,7 +310,7 @@ To check the completion of the operation, follow the steps in [Monitor activity]
310310
311311
$recoveryplan = Get-AzRecoveryServicesAsrRecoveryPlan -FriendlyName $recoveryplanname
312312
313-
$jobIDResult = Start-AzRecoveryServicesAsrPlannedFailoverJob -Direction PrimaryToRecovery -RecoveryPlan $recoveryplan
313+
$jobIDResult = Start-AzRecoveryServicesAsrPlannedFailoverJob -Direction PrimaryToRecovery -RecoveryPlan $recoveryplan
314314
```
315315

316316
1. Perform an unplanned failover.
@@ -320,7 +320,7 @@ To check the completion of the operation, follow the steps in [Monitor activity]
320320
```azurepowershell
321321
$protectionEntity = Get-AzRecoveryServicesAsrProtectableItem -Name $VMName -ProtectionContainer $PrimaryprotectionContainer
322322
323-
$jobIDResult = Start-AzRecoveryServicesAsrUnplannedFailoverJob -Direction PrimaryToRecovery -ReplicationProtectedItem $protectionEntity
323+
$jobIDResult = Start-AzRecoveryServicesAsrUnplannedFailoverJob -Direction PrimaryToRecovery -ReplicationProtectedItem $protectionEntity
324324
```
325325

326326
For a recovery plan:
@@ -330,7 +330,7 @@ To check the completion of the operation, follow the steps in [Monitor activity]
330330
331331
$recoveryplan = Get-AzRecoveryServicesAsrRecoveryPlan -FriendlyName $recoveryplanname
332332
333-
$jobIDResult = Start-AzRecoveryServicesAsrUnplannedFailoverJob -Direction PrimaryToRecovery -RecoveryPlan $recoveryplan
333+
$jobIDResult = Start-AzRecoveryServicesAsrUnplannedFailoverJob -Direction PrimaryToRecovery -RecoveryPlan $recoveryplan
334334
```
335335

336336
## Monitor activity
@@ -340,7 +340,7 @@ Use the following commands to monitor failover activity. Wait for the processing
340340
```azurepowershell
341341
Do
342342
{
343-
$job = Get-AzureSiteRecoveryJob -TargetObjectId $associationJob.JobId;
343+
$job = Get-AzRecoveryServicesAsrJob -TargetObjectId $associationJob.JobId;
344344
Write-Host "Job State:{0}, StateDescription:{1}" -f Job.State, $job.StateDescription;
345345
if($job -eq $null -or $job.StateDescription -ne "Completed")
346346
{

0 commit comments

Comments
 (0)