Hi,
I am trying to configure vSphere HA through vCenter Orchestrator workflow, I am facing strange error when I try to add failover host in HA. It works for some cluster and hosts but it could not for others, it throws following error
error Task 'ReconfigureComputeResource_Task' error: A specified parameter was not correct.
Following is my code snippet from my workflow
var clusterConfigSpec = new VcClusterConfigSpecEx();
clusterConfigSpec.dasConfig = new VcClusterDasConfigInfo();
clusterConfigSpec.dasConfig.admissionControlPolicy = new VcClusterFailoverHostAdmissionControlPolicy();
var fHosts = [];
for(var i in inFailoverHosts){
var vcSysHost = System.getModule("com.vmware.PTLAB").getHostSystemMatchingName(inFailoverHosts[i]);
System.log("%%%%%% vcSysHost "+vcSysHost.name);
fHosts.push(vcSysHost);
}
clusterConfigSpec.dasConfig.admissionControlPolicy.failoverHosts = fHosts;
reconfigTask = cluster.reconfigureComputeResource_Task(clusterConfigSpec, true);
Please help me to resolve the issue.