Orchestrator Function: vCenter Virtual Machine Get All VcVirtualAHCIControllers

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

Function: VcVirtualMachineGetAHCIControllers

publicVcVirtualMachineGetAHCIControllers(objVcVirtualMachine:VcVirtualMachine):VcVirtualAHCIController[]{

letarrVcVirtualAHCIController:VcVirtualAHCIController[]=this.VcVirtualMachineGetAllVcVirtualDevicesByType<VcVirtualAHCIController>(objVcVirtualMachine);

arrVcVirtualAHCIController=this.VcManagedEntitySort(arrVcVirtualAHCIController,SortOrder.Forward,"unitNumber");

returnarrVcVirtualAHCIController;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like