Orchestrator Function: Get vSphere Update Manager Compliance

by Simon Sparks · 4 February 2026

To use this function add it to the class library file named OrchestratorService.ts

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: OrchestratorService.ts

Description: Orchestrator Function to Get vSphere Update Manager Compliance

Private Function: isNotCompliant

privateisNotCompliant(objVumVIInventory:VumVIInventory,arrVumBaseline:VumBaseline[]):boolean{
letarrVumVIInventory:VumVIInventory[]= [];
arrVumVIInventory.push(objVumVIInventory);

letarrVumCompliance:VumCompliance[]=VumObjectManager.getCompliance(arrVumVIInventory,null,arrVumBaseline);

letblnNotCompliant:boolean=arrVumCompliance.some((objVumCompliance:VumCompliance):boolean=>{
returnobjVumCompliance.status==="NotCompliant";
});

this.objLogger.info(`is host not in compliance with baselines${blnNotCompliant}`)

returnblnNotCompliant;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like