Did your Connect-HcxServer work without an issue?
Does it show up in $global:HcxServers?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Sorry for responding late. I dont see any output when I run $globalHCXServers. Surprisingly, I am able to run connect-hcx server but not able to run any get commands against HCX
Is there any object returned when you run the Connect-HcxServer cmdlet?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Yes, it does. I am confused because only Get-commands are not running. Rest look good. Any thoughts? See screenshot.
Does it return anything when you use the Server parameter?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
No, it did not. See output below. Any other help ?
That seems to indicate that your Connect-HCXServer didn't work.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Not sure what does that mean. But, liked I mentioned earlier, all commands are working except Get ones. Seems like even after connect, it doesn't store in defaulthcxserveror defaulthcxservers variable. Any suggestion to fix or workaround ?
Can you also check the variable $DefaultHCXServers?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Neither throwing an error nor any output.
Just to make sure there is no HCX related variable after a successful Connect-HCXServer, do a
Get-Variable -Name *HCX*
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
No HCX related variable stored in defaulthcxservers.
Then I'm at a loss I'm afraid.
You could try to replay Kyle's cmdlets he does in his Getting Started with the HCX Module post.
If that doesn't work either, I think you should consider opening an SR.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Any command or way to manually update or add or modify $GlobalHCXServers variable ?
Not that I know off, the variable is normally set through a successful Connect-HCXServer cmdlet afaik.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
There‘s a communities page for HCX that you can move this to.
Does your configuration already have a Service Mesh? Or only an HCX Manager?
Could this be a problem between PS, PCLI, and the HCX Module? Are you able to try on another machine with a fresh install of these 3 components. I recall having some weirdness with HCX and PCLI. I think I stripped it all out and reinstalled it all.