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

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

letobjVcClusterGroupSpec:VcClusterGroupSpec=newVcClusterGroupSpec();
objVcClusterGroupSpec.operation=VcArrayUpdateOperation.edit;
objVcClusterGroupSpec.info=objVcClusterGroup;

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

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

returnblnResult;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like