Skip to content

Commit fc2d2b8

Browse files
committed
updated cmdlet names
1 parent 25cc396 commit fc2d2b8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ To check the completion of the operation, follow the steps in [Monitor activity]
208208
1. Use this command to retrieve servers for the current vault. The command stores the Site Recovery servers in the `$Servers` array variable.
209209

210210
```azurepowershell
211-
$Servers = Get-AzureRmRecoveryServicesAsrFabric
211+
$Servers = Get-AzRecoveryServicesAsrFabric
212212
```
213213

214214
1. Run this command to retrieve the networks for the source Virtual Machine Manager server and the target Virtual Machine Manager server.
@@ -241,13 +241,13 @@ After the servers, clouds, and networks are configured correctly, enable protect
241241
1. Get the protection entity (VM), as follows:
242242

243243
```azurepowershell
244-
$protectionEntity = Get-AzRecoveryServicesAsrProtectionContainer -FriendlyName $VMName -Fabric $PrimaryProtectionContainer
244+
$protectionEntity = Get-AzRecoveryServicesAsrProtectableItem -FriendlyName $VMName -ProtectionContainer $PrimaryProtectionContainer
245245
```
246246

247247
1. Enable replication for the VM.
248248

249249
```azurepowershell
250-
$jobResult = New-AzRecoveryServicesAsrReplicationProtectedItem -ProtectionContainerMapping $protectionentity -VmmToVmm
250+
$jobResult = New-AzRecoveryServicesAsrReplicationProtectedItem -ProtectableItem $protectionentity -ProtectionContainerMapping $policy -VmmToVmm
251251
```
252252

253253
> [!NOTE]
@@ -265,7 +265,7 @@ To test your deployment, run a test failover for a single virtual machine. You a
265265
1. Retrieve the VM into which VMs will fail over.
266266

267267
```azurepowershell
268-
$Servers = Get-AzVM -ResourceGroupName #ResourceGroupName
268+
$Servers = Get-AzRecoveryServicesASRFabric
269269
$RecoveryNetworks = Get-AzRecoveryServicesAsrNetwork -Name $Servers[1]
270270
```
271271

@@ -274,7 +274,7 @@ To test your deployment, run a test failover for a single virtual machine. You a
274274
For a single VM:
275275

276276
```azurepowershell
277-
$protectionEntity = Get-AzRecoveryServicesAsrProtectionContainer -FriendlyName $VMName -Fabric $PrimaryprotectionContainer
277+
$protectionEntity = Get-AzRecoveryServicesAsrProtectableItem -FriendlyName $VMName -ProtectionContainer $PrimaryprotectionContainer
278278
279279
$jobIDResult = Start-AzRecoveryServicesAsrTestFailoverJob -Direction PrimaryToRecovery -ReplicationProtectedItem $protectionEntity -VMNetwork $RecoveryNetworks[1]
280280
```
@@ -298,7 +298,7 @@ To check the completion of the operation, follow the steps in [Monitor activity]
298298
For a single VM:
299299

300300
```azurepowershell
301-
$protectionEntity = Get-AzRecoveryServicesAsrProtectionContainer -Name $VMName -Fabric $PrimaryprotectionContainer
301+
$protectionEntity = Get-AzRecoveryServicesAsrProtectableItem -Name $VMName -ProtectionContainer $PrimaryprotectionContainer
302302
303303
$jobIDResult = Start-AzRecoveryServicesAsrPlannedFailoverJob -Direction PrimaryToRecovery -ReplicationProtectedItem $protectionEntity
304304
```
@@ -318,7 +318,7 @@ To check the completion of the operation, follow the steps in [Monitor activity]
318318
For a single VM:
319319

320320
```azurepowershell
321-
$protectionEntity = Get-AzRecoveryServicesAsrProtectionContainer -Name $VMName -Fabric $PrimaryprotectionContainer
321+
$protectionEntity = Get-AzRecoveryServicesAsrProtectableItem -Name $VMName -ProtectionContainer $PrimaryprotectionContainer
322322
323323
$jobIDResult = Start-AzRecoveryServicesAsrUnplannedFailoverJob -Direction PrimaryToRecovery -ReplicationProtectedItem $protectionEntity
324324
```

0 commit comments

Comments
 (0)