Orchestrator Function: Get vSphere Replication Remote 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 Remote Site

Public Function: getVrRemoteSite

publicgetVrRemoteSite(objVRSite:VRSite):VRVcRemoteSite{
letarrVRVcRemoteSite:VRVcRemoteSite[]=objVRSite.getVcRemoteSites();

this.objLogger.debug("Fetching the vSphere Replication Remote site")

letobjVRVcRemoteSite:VRVcRemoteSite=arrVRVcRemoteSite.find((objVRVcRemoteSite:VRVcRemoteSite):boolean=>{
returnobjVRVcRemoteSite.name!==objVRSite.name;
});

if (!objVRVcRemoteSite){
thrownewGeneralError(`Replication Remote Site is missing for${objVRSite.name}`);
}

returnobjVRVcRemoteSite;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like