Today I was performing a test in the vSphere cluster I have in my laptop and when I tried to connect to my vCenter Server with PowerCLI I got the following error.
My first thought after that was to check network connectivity and the firewall configuration of the vCenter Server but everything was OK. Then after a quick search in the VMware Communities I found the solution in this post.
The problem was the proxy server configuration of PowerCLI, I’m used to do everything directly from the vCenter desktop, where I have installed PowerCLI and the vSphere Client, but this time I tried to connect directly from my laptop and since I was connected to the corporate network PowerCLI was trying to connect through the proxy server. Following is how I fixed this thanks to the above VMTN post.
First retrieve the PowerCLI proxy configuration with the Get-PowerCLIConfiguration cmdlet.
As you can see Proxy Policy is set to UseSystemProxy. To set this value to NoProxy use the cmdlet Set-PowerCLIConfiguration.
Now try to reconnect to the vCenter Server and everything should go without errors.