Orchestrator Function: vCenter Virtual Machine Check The Status of Hot Add Remove

by Simon Sparks · 16 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

Functions: VcVirtualMachineIsCpuHotAddEnabled, VcVirtualMachineIsCpuHotRemoveEnabled, VcVirtualMachineIsMemoryHotAddEnabled

publicVcVirtualMachineIsCpuHotAddEnabled(objVcVirtualMachine:VcVirtualMachine):boolean{

letobjVcVirtualMachineConfigInfo:VcVirtualMachineConfigInfo=objVcVirtualMachine.config;

letblnCpuHotAddEnabled:boolean=objVcVirtualMachineConfigInfo.cpuHotAddEnabled;

returnblnCpuHotAddEnabled;
}

publicVcVirtualMachineIsCpuHotRemoveEnabled(objVcVirtualMachine:VcVirtualMachine):boolean{

letobjVcVirtualMachineConfigInfo:VcVirtualMachineConfigInfo=objVcVirtualMachine.config;

letblnCpuHotAddRemove:boolean=objVcVirtualMachineConfigInfo.cpuHotRemoveEnabled;

returnblnCpuHotAddRemove;
}

publicVcVirtualMachineIsMemoryHotAddEnabled(objVcVirtualMachine:VcVirtualMachine):boolean{

letobjVcVirtualMachineConfigInfo:VcVirtualMachineConfigInfo=objVcVirtualMachine.config;

letblnMemoryHotAddEnabled:boolean=objVcVirtualMachineConfigInfo.memoryHotAddEnabled;

returnblnMemoryHotAddEnabled;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like