Function: vCenter Cluster Compute Resource DRS Group Update

by Simon Sparks · 5 April 2026

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 Update a DRS Group on a vCenter Cluster Compute Resource.

Private Function: VcClusterGroupInfoUpdate

private VcClusterGroupInfoUpdate(objVcClusterComputeResource: VcClusterComputeResource, objVcClusterGroup: VcClusterVmGroup | VcClusterHostGroup): boolean {

    let objVcClusterGroupSpec: VcClusterGroupSpec = new VcClusterGroupSpec();
    objVcClusterGroupSpec.operation = VcArrayUpdateOperation.edit;
    objVcClusterGroupSpec.info = objVcClusterGroup;

    let arrVcClusterGroupSpec: VcClusterGroupSpec[] = [];
    arrVcClusterGroupSpec.push(objVcClusterGroupSpec);

    let blnResult: boolean = this.Reconfigure(objVcClusterComputeResource, null, null, null, null, arrVcClusterGroupSpec)

    return blnResult;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like