Skip to content

Commit d6a23ea

Browse files
authored
Merge pull request #100740 from mayurigupta13/master
hyper v powershell with vmm
2 parents 37e4cff + 0e9a0d0 commit d6a23ea

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: sujayt
66
manager: rochakm
77
ms.service: site-recovery
88
ms.topic: article
9-
ms.date: 11/27/2018
9+
ms.date: 1/10/2020
1010
ms.author: sutalasi
1111
---
1212

@@ -190,6 +190,14 @@ After the servers, clouds, and networks are configured correctly, enable protect
190190

191191
$jobResult = Set-AzSiteRecoveryProtectionEntity -ProtectionEntity $protectionentity -Protection Enable -Policy $policy
192192

193+
> [!NOTE]
194+
> If you wish to replicate to CMK enabled managed disks in Azure, do the following steps using Az PowerShell 3.3.0 onwards:
195+
>
196+
> 1. Enable failover to managed disks by updating VM properties
197+
> 2. Use the Get-AsrReplicationProtectedItem cmdlet to fetch the disk ID for each disk of the protected item
198+
> 3. Create a dictionary object using New-Object "System.Collections.Generic.Dictionary``2[System.String,System.String]" cmdlet to contain the mapping of disk ID to disk encryption set. These disk encryption sets are to be pre-created by you in the target region.
199+
> 4. Update the VM properties using Set-AsrReplicationProtectedItem cmdlet by passing the dictionary object in -DiskIdToDiskEncryptionSetMap parameter.
200+
193201
## Run a test failover
194202

195203
To test your deployment, run a test failover for a single virtual machine. You also can create a recovery plan that contains multiple VMs and run a test failover for the plan. Test failover simulates your failover and recovery mechanism in an isolated network.

0 commit comments

Comments
 (0)