azurepowershellazure-site-recovery

PowerShell ASR Replication Group Name


I am trying to use the '-ReplicationGroupName' parameter on the 'New-AzureRmRecoveryServicesAsrReplicationProtectedItem' cmdlet, however, I am struggling to understand exactly how it should be used...

I am trying to use it with the '-HyperVToAzure' switch but I receive the error;

"Parameter set cannot be resolved using the specified named parameters"

Which seems to suggest that the '-ReplicationGroupName' parameter can only be used in conjunction with the '-VMwareToAzure' switch. Is this correct? Is there any way of using ASR Replication Groups with Hyper-V (or physical) protected items?

Or have I misunderstood the use of this parameter completely and should be looking at something else entirely...?!


Solution

  • It is only for “VMware to Azure” and “Azure to Azure”. There is no replication group construct in “Hyper-V to Azure”.