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
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
Thanks for the response, I double checked the service ind it is started and set to automatic, any other clues?
By any chance have you tried after restarting the auto deploy service..
That error also appears when the Auto Deploy port (default 6501) is not reachable.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference