Function: vCenter Cluster Compute Resource Configure DNS

by Simon Sparks · 5 January 2026

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

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

Filename: vCenterServerService.ts

Public Function: VcClusterComputeResourceConfigureDns

public VcClusterComputeResourceConfigureDns(objVcClusterComputeResource: VcClusterComputeResource,  arrDnsAddress: string[], strDnsDomainName: string, arrDnsSearchDomain: string[]): void {

    let arrVcHostSystem: VcHostSystem[] = objVcClusterComputeResource.host;

    arrVcHostSystem.forEach((objVcHostSystem: VcHostSystem): void => {
        
        this.VcHostSystemConfigureDns(objVcHostSystem, arrDnsAddress, strDnsDomainName, arrDnsSearchDomain);
    });
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like