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
Are your Connection servers VMs?
And do they have the VMware Tools installed on them?
In that case you could try
Get-VM -Name $vmName |
Select Name, @{N = 'FQDN'; E = {$_.Guest.HostName}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
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.
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.
😞
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.
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
I did a little check and it "looks like" the values come from his screen in horizon
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.
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.