Function: vCenter Cluster Compute Resource DRS Group Delete

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

Private Function: VcClusterGroupInfoDelete

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

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

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

letobjVcClusterConfigSpecEx:VcClusterConfigSpecEx=newVcClusterConfigSpecEx();
objVcClusterConfigSpecEx.groupSpec=arrVcClusterGroupSpec;

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

returnblnResult;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like