Orchestrator Function: Get vSphere Replication Local Site

by Simon Sparks · 4 February 2026

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

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

Filename: OrchestratorService.ts

Description: Orchestrator Function to Get vSphere Replication Local Site

Public Function: getVrLocalSite

publicgetVrLocalSite(vcVmInstanceUuid:string):VRSite{

letarrVRSite:VRSite[]=VRPluginConfig.getSites();

this.objLogger.debug("Fetching the vSphere Replication Local Site");

letobjVRSite:VRSite=arrVRSite.find((objVRSite:VRSite):boolean=>{
returnobjVRSite.vcInstanceUuid===vcVmInstanceUuid;
});

if (!objVRSite){
thrownewGeneralError(`Replication Local Site is missing for${vcVmInstanceUuid}`);
}

returnobjVRSite;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like