Function: vRA Host Get By Name

by Simon Sparks · 11 February 2026

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

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

Filename: OrchestratorPluginVRAService.ts

Description: Orchestrator Function to Get vRA Host by Name

Public Function: VraHostGetByName

public VraHostGetByName(strDisplayName: string): VraHost {
    let arrVraHost: VraHost[] = this.VraHostGetAll("vra-onprem")

    let objVraHost: VraHost = arrVraHost.find((objVraHost: VraHost): boolean => {
        return objVraHost.name === strDisplayName;
    });

    return objVraHost;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like