Hello all,
I am create script for automation of adding server into SRM with requested settings, like priority, postRecoverySteps and so on.
I am strugled in the last step to set the requested settings to the SRM plan over a method srmPlan.SetRecoverySettings(vm, settings) with the following error:
Exception calling "SetRecoverySettings" with "2" argument(s): "fault.drextapi.fault.InvalidArgument.summary"
At C:\PowerShell\srm\SRM-Cmdlets\SrmFunctions.ps1:726 char:3
+ $RecoveryPlan.SetRecoverySettings($moRef, $RecoverySettings)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : VimException
Could anybody or BenMeadowcroft helps me with this,
thank you all in advance.