Connecting to the AutoDeploy server fails with the error: Could not connect using the requested protocol
book
Article ID: 305129
calendar_today
Updated On:
Products
VMware vSphere ESXi
Issue/Introduction
Symptoms:
- Cannot connect to the AutoDeploy server
- Connecting to the AutoDeploy server using PowerCLI fails irrespective of whether the server is local or remote (to the vi-server)
- The connection to the vi-server fails
- The AutoDeploy feature does not work
- Cannot connect to the vi-server using PowerCLI
- You see the error:
PowerCLI D:\VMware\Infrastructure\vSphere PowerCLI> Connect-VIServer VI.SERVER.NAME
Connect-VIServer : 11/22/2011 7:35:37 AM Connect-VIServer Could not connect using the requested protocol.
At line:1 char:17
+ Connect-VIServer <<<< VI.SERVER.NAME
+ CategoryInfo : ObjectNotFound: (:) [Connect-VIServer], ViServerConnectionException
+ FullyQualifiedErrorId : Client20_ConnectivityServiceImpl_Reconnect_ProtocolError,VMware.VimAutomation.ViCore.Cmdlets.Commands.ConnectVIServer
Cause
This issue occurs due to the proxy settings in the environment.
Resolution
To resolve this, check the proxy settings using the PowerCLI and set the proxy to No Proxy.
To set the proxy setting to No Proxy:
- Run this command to find the current proxy settings:
Get-PowerCLIConfiguration
You see an output similar to:
C:\PS>Get-PowerCLIConfiguration
Proxy Policy Default Server
Mode
------------------------- ---------------
UseSystemProxy Single
Note: This output indicates that the PowerCLI is using the System Proxy.
- To change this setting, run this command:
Set-PowerCLIConfiguration -ProxyPolicy NoProxy -Confirm
You see an output similar to:
C:\PS>Set-PowerCLIConfiguration -ProxyPolicy NoProxy -Confirm
Perform operation?
Performing operation 'Update vSphere PowerCLI configuration.'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y
Proxy Policy Default Server
Mode
------------ ---------------
NoProxy Single
You should now be able to connect to vCenter Server .
Feedback
thumb_up
Yes
thumb_down
No