@@ -208,7 +208,7 @@ To check the completion of the operation, follow the steps in [Monitor activity]
208
208
1 . Use this command to retrieve servers for the current vault. The command stores the Site Recovery servers in the ` $Servers ` array variable.
209
209
210
210
``` azurepowershell
211
- $Servers = Get-AzureRmRecoveryServicesAsrFabric
211
+ $Servers = Get-AzRecoveryServicesAsrFabric
212
212
```
213
213
214
214
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
241
241
1 . Get the protection entity (VM), as follows:
242
242
243
243
``` azurepowershell
244
- $protectionEntity = Get-AzRecoveryServicesAsrProtectionContainer -FriendlyName $VMName -Fabric $PrimaryProtectionContainer
244
+ $protectionEntity = Get-AzRecoveryServicesAsrProtectableItem -FriendlyName $VMName -ProtectionContainer $PrimaryProtectionContainer
245
245
```
246
246
247
247
1 . Enable replication for the VM.
248
248
249
249
``` azurepowershell
250
- $jobResult = New-AzRecoveryServicesAsrReplicationProtectedItem -ProtectionContainerMapping $protectionentity -VmmToVmm
250
+ $jobResult = New-AzRecoveryServicesAsrReplicationProtectedItem -ProtectableItem $protectionentity -ProtectionContainerMapping $policy -VmmToVmm
251
251
```
252
252
253
253
> [ !NOTE]
@@ -265,7 +265,7 @@ To test your deployment, run a test failover for a single virtual machine. You a
265
265
1 . Retrieve the VM into which VMs will fail over.
266
266
267
267
``` azurepowershell
268
- $Servers = Get-AzVM -ResourceGroupName #ResourceGroupName
268
+ $Servers = Get-AzRecoveryServicesASRFabric
269
269
$RecoveryNetworks = Get-AzRecoveryServicesAsrNetwork -Name $Servers[1]
270
270
```
271
271
@@ -274,7 +274,7 @@ To test your deployment, run a test failover for a single virtual machine. You a
274
274
For a single VM:
275
275
276
276
``` azurepowershell
277
- $protectionEntity = Get-AzRecoveryServicesAsrProtectionContainer -FriendlyName $VMName -Fabric $PrimaryprotectionContainer
277
+ $protectionEntity = Get-AzRecoveryServicesAsrProtectableItem -FriendlyName $VMName -ProtectionContainer $PrimaryprotectionContainer
278
278
279
279
$jobIDResult = Start-AzRecoveryServicesAsrTestFailoverJob -Direction PrimaryToRecovery -ReplicationProtectedItem $protectionEntity -VMNetwork $RecoveryNetworks[1]
280
280
```
@@ -298,7 +298,7 @@ To check the completion of the operation, follow the steps in [Monitor activity]
298
298
For a single VM:
299
299
300
300
``` azurepowershell
301
- $protectionEntity = Get-AzRecoveryServicesAsrProtectionContainer -Name $VMName -Fabric $PrimaryprotectionContainer
301
+ $protectionEntity = Get-AzRecoveryServicesAsrProtectableItem -Name $VMName -ProtectionContainer $PrimaryprotectionContainer
302
302
303
303
$jobIDResult = Start-AzRecoveryServicesAsrPlannedFailoverJob -Direction PrimaryToRecovery -ReplicationProtectedItem $protectionEntity
304
304
```
@@ -318,7 +318,7 @@ To check the completion of the operation, follow the steps in [Monitor activity]
318
318
For a single VM:
319
319
320
320
``` azurepowershell
321
- $protectionEntity = Get-AzRecoveryServicesAsrProtectionContainer -Name $VMName -Fabric $PrimaryprotectionContainer
321
+ $protectionEntity = Get-AzRecoveryServicesAsrProtectableItem -Name $VMName -ProtectionContainer $PrimaryprotectionContainer
322
322
323
323
$jobIDResult = Start-AzRecoveryServicesAsrUnplannedFailoverJob -Direction PrimaryToRecovery -ReplicationProtectedItem $protectionEntity
324
324
```
0 commit comments