Hi,
I've been using the following code to create a virtual machine replication:
$ReplicationSpec = Initialize-VrConfigureReplicationSpec `
-Rpo 60 `
-NetworkCompressionEnabled:$false `
-MpitEnabled:$false `
-AutoReplicateNewDisks:$true `
-LwdEncryptionEnabled:$false `
-VmDataSetsReplicationEnabled:$true `
-Disks $ReplicationHDDs `
-TargetVcId $Pairing.LocalVcServer.Id `
-VmId $RepVM.List[0].Id
$ReplicationTask = Invoke-VrConfigureReplication -PairingId $PairingID -ConfigureReplicationSpec $ReplicationSpec -Server $VRServer
Since upgrading vSphere Replication from 8.7 to 9.0.2.2, I've tweaked the above to enable encryption:
-LwdEncryptionEnabled:$true
But the replication is still created in Legacy mode and I have to changed it to enhanced mode via the web front:
- Reconfigure > select Enhanced mode
Is there a way to create a virtual machine replication in Enhanced mode via PowerCLI?
I'm currently using:
- PowerCLI 13.3.0.24145083
- VMware.Sdk.Vr 13.3.0.24145081
Thanks.
-------------------------------------------