Orchestrator Function: vCenter Host System Apply Advanced Settings

by Simon Sparks · 5 January 2026

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

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

Filename: vCenterServerService.ts

privateVcHostSystemApplyAdvancedSettings(objVcHostSystem:VcHostSystem,arrVcOptionValue:VcOptionValue[]):boolean{

letobjVcHostConfigManager:VcHostConfigManager=objVcHostSystem.configManager;

letobjVcOptionManager:VcOptionManager=objVcHostConfigManager.advancedOption;

try{
this.objLogger.info("Applying advanced settings on host...");

objVcOptionManager.updateOptions(arrVcOptionValue);

this.objLogger.info("Advanced settings have been applied");

returntrue;
}
catch (objException){

Utilities.logException(objException,this.objLogger,"VcHostSystemApplyAdvancedSettings");

returnfalse;
}
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like