Orchestrator Function: vCenter Virtual Machine Get All VcVirtualPCIPassthrough

by Simon Sparks · 27 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: VcVirtualMachineGetAllVcVirtualPCIPassthrough

publicVcVirtualMachineGetAllVcVirtualPCIPassthrough(objVcVirtualMachine:VcVirtualMachine):VcVirtualPCIPassthrough[]{

letarrVcVirtualPCIPassthrough:VcVirtualPCIPassthrough[]=this.VcVirtualMachineGetAllVcVirtualDevicesByType<VcVirtualPCIPassthrough>(objVcVirtualMachine);

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

returnarrVcVirtualPCIPassthrough;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like