Function: vRA vSphere Cloud Account Create

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 Create a vRA vSphere Cloud Account

Private Function: VraCloudAccountServiceCreateVSphereCloudAccount

public VraCloudAccountServiceCreateVSphereCloudAccount(objVraHost: VraHost, strHostnameFQDN: string, blnAcceptSelfSignedCertificate: boolean = false, blnCreateDefaultZones: boolean = false, strDisplayName: string, strDescription: string, strUsername: string, strPassword: string, arrTag: Tag[]): VraCloudAccountVsphere {

    // @ts-ignore
    let objVraCloudAccountVsphereSpecification: VraCloudAccountVsphereSpecification = {
        hostName: strHostnameFQDN,
        acceptSelfSignedCertificate: blnAcceptSelfSignedCertificate,
        createDefaultZones: blnCreateDefaultZones,
        associatedCloudAccountIds: [],
        regions: [],
        name: strDisplayName,
        description: strDescription,
        username: strUsername,
        password: strPassword,
        tags: arrTag
    };

    let objVraCloudAccountService: VraCloudAccountService = this.VraCloudAccountServiceCreate(objVraHost);

    try {
        let objVraCloudAccountVsphere: VraCloudAccountVsphere = objVraCloudAccountService.createVSphereCloudAccount(objVraCloudAccountVsphereSpecification);

        return objVraCloudAccountVsphere;
    }
    catch (objException) {
        return null;
    }
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like