Function: vRA Host Update

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 Update a vRA Host

Public Function: VraHostUpdate

public VraHostUpdate(strDisplayName: string, strHostnameFQDN: string, strUsername: string, strPassword: string, strSessionMode: "Shared Session" | "Per User Session", objVraHost: VraHost): boolean {

    let objRequest: any = {
        name: strDisplayName,
        vraHost: strHostnameFQDN,
        user: strUsername,
        password: strPassword,
        connectionType: "vra-onprem",
        sessionMode: strSessionMode
    };

    try {
        VraHostManager.update(objRequest, objVraHost);

        this.objLogger.info(`VraHostManager Updated: ${objVraHost.id}.`);

        return true;
    }
    catch (objException) {
        return false;
    }
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like