VMware Cloud Community
nicholas1982
Hot Shot
Hot Shot

Cannot run any Auto Deply cmdlets - error Unable to connect to the remote server

Trying to automate autodeploy rules but hitting this error with all deployrule cmdlets?

PS C:\Windows\system32\WindowsPowerShell\v1.0> Get-DeployRule

Get-DeployRule : 5/12/2017 1:41:24 PM    Get-DeployRule             Unable to connect to the remote server

At line:1 char:1

+ Get-DeployRule

+ ~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Get-DeployRule], VimException

    + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.DeployAutomation.Commands.GetDeployRule

Nicholas
Reply
0 Kudos
4 Replies
Srini_thia
Contributor
Contributor

Hi,

Please check the Auto Deploy service status from your webclient. By default service startup type is set to manual. So please start the service and then run the command.

Procedure to start the service:-

Webclient -> Home - Administration - > System Configuration -> Services - > Auto Deploy

Thx

Srini

Reply
0 Kudos
nicholas1982
Hot Shot
Hot Shot

Thanks for the response, I double checked the service ind it is started and set to automatic, any other clues?

Nicholas
Reply
0 Kudos
Srini_thia
Contributor
Contributor

By any chance have you tried after restarting the auto deploy service..

Reply
0 Kudos
LucD
Leadership
Leadership

That error also appears when the Auto Deploy port (default 6501) is not reachable.


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

Reply
0 Kudos