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

public VcVirtualMachineGetAllVcVirtualPCIPassthrough(objVcVirtualMachine: VcVirtualMachine): VcVirtualPCIPassthrough[] {

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

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

    return arrVcVirtualPCIPassthrough;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like