VMware Cloud Community
PavelV9
Enthusiast
Enthusiast

Horizon Connection Servers FQDNs

Hi,

I am reading Horizon data by PowerCLI Horizon API.

I need to get Horizon Connection Servers FQDNs.

There are following data for each CS in Horizon API:

Name : SERVER

ServerAddress : https://server.domain:443

Enabled : True

Tags :

ExternalURL : https://server.domain:443

ExternalPCoIPURL : 10.10.10.10:4172

AuxillaryExternalPCoIPIPv4Address :

ExternalAppblastURL : https://server.domain:8443

LocalConnectionServer : True

BypassTunnel : True

BypassPCoIPGateway : True

BypassAppBlastGateway : True

Version : 7.5.1-9122465

I tried to use ServerAddress property to get FQDN.

But on some Connection Servers there are external server name in the property and I cannot use it:

Name : SERVER

ServerAddress : https://externalName.externalDomain:443

Enabled : True

Tags :

ExternalURL : https://externalName.externalDomain:443

ExternalPCoIPURL : 10.10.10.10:4172

AuxillaryExternalPCoIPIPv4Address :

ExternalAppblastURL : https://externalName.externalDomain:8443

LocalConnectionServer : True

BypassTunnel : True

BypassPCoIPGateway : True

BypassAppBlastGateway : True

Version : 7.5.1-9122465

I also cannot use nslookup as our DNS name is not equal to FQDN.

Any idea where I can found all Connection Servers FQDNs?

Thanks for help.

Pavel

0 Kudos
7 Replies
LucD
Leadership
Leadership

Are your Connection servers VMs?
And do they have the VMware Tools installed on them?

In that case you could try

$vmName = 'VMname'

Get-VM -Name $vmName |

  Select Name, @{N = 'FQDN'; E = {$_.Guest.HostName}}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
sjesse
Leadership
Leadership

Are these different enviornments, if not check direclly in the horizon administrator interface, these settings should be all the same for all of them. IF you didn't manual edit the externalurl data of the one you posted it looks alittle off.  I'd see what it looks like there and maybe one of the connection servers are configured incorrectly? I'm pretty sure serveraddress is what you want.

0 Kudos
PavelV9
Enthusiast
Enthusiast

Godd idea but it isn't possible in our environment as the user account has rights to Horizon only and no rights to vCenter Server.

😞

0 Kudos
PavelV9
Enthusiast
Enthusiast

I cannot check it in console because it is automation script for several Horizon pods in different domains.

Each pod has different configuration and some are using external names.

0 Kudos
LucD
Leadership
Leadership

That's a bit of a catch-22 then?
You need to connect to get the info to connect ?!?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
sjesse
Leadership
Leadership

I did a little check and it "looks like" the values come from his screen in horizon

pastedImage_1.png

its looks like what is in https secure tunnel ends up being serveraddress

In my case name from connection.general is the computer name of the connection server, assuming you can predict the domain they are, can you get the fqdn that way.

0 Kudos
sjesse
Leadership
Leadership

These values are used regardless if they are checked or not. If the pods being used are all using unified access gateways, check the box temporarily, change the value and then unchecked the box again. Horizon support had me do this once, which is why one of mine was using the fqdn of the server and the rest where the external dns.

0 Kudos