Quantcast
Channel: VMware Communities : Discussion List - Site Recovery Manager
Viewing all articles
Browse latest Browse all 3691

Unable to setRecoverySettings over the SRM API

$
0
0

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 help me with this,

thank you all in advance.


Viewing all articles
Browse latest Browse all 3691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>