To use this function add it to the class library file named PluginVCClusterComputeResourceService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: PluginVCClusterComputeResourceService.ts
Description: Orchestrator Function to Create a DRS Group on a vCenter Cluster Compute Resource.
Private Function: VcClusterGroupInfoCreate
private VcClusterGroupInfoCreate(objVcClusterComputeResource: VcClusterComputeResource, objVcClusterGroup: VcClusterVmGroup | VcClusterHostGroup): boolean {
let objVcClusterGroupSpec: VcClusterGroupSpec = new VcClusterGroupSpec();
objVcClusterGroupSpec.operation = VcArrayUpdateOperation.add;
objVcClusterGroupSpec.info = objVcClusterGroup;
let arrVcClusterGroupSpec: VcClusterGroupSpec[] = [];
arrVcClusterGroupSpec.push(objVcClusterGroupSpec);
let objVcClusterConfigSpecEx: VcClusterConfigSpecEx = new VcClusterConfigSpecEx();
objVcClusterConfigSpecEx.groupSpec = arrVcClusterGroupSpec;
let blnResult: boolean = this.Reconfigure(objVcClusterComputeResource, null, null, null, null, arrVcClusterGroupSpec, null, null, null, null, null);
return blnResult;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
