VMware Cloud Community
MaxB
Enthusiast
Enthusiast
Jump to solution

Connect-CisServer fails

Hey Guys,

I use the PowerCLI in version 10.1.0

I would like to Connect to the CisServer on up to 20 vCenters (all version 6.5 U1).

On each connection I use the administrator@vsphere.local

The connect fails on a few vcenters (the credentials are correct) with the following errormessage:

Connect-CisServer                         Error sending request

+ Connect-CisServer vcenterserver01

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

          + CategoryInfo                  : NotSpecified: (:) [Connect-CisServer], CisException

          + FullyQualifiedErrorId      : VMware.VimAutomation.Cis.Core.Impl.V1.Service.CisConnectionService.SessionCanNotBeCreated, VMware.VimAutomation.Cis.Core.Commands.Cmdlets.ConnectCisServer    

There is no firewall between my client and the vcenter server.

Has anyone a clue why it doesn´t work?

Thanks,

Max

1 Solution

Accepted Solutions
MaxB
Enthusiast
Enthusiast
Jump to solution

To set the InvalidCertificateAction to "ignore" made it!

So -Force isn´t required using Connect-CisServer.

Thanks for the hint Luc!

View solution in original post

0 Kudos
5 Replies
LucD
Leadership
Leadership
Jump to solution

All these vCenters have valid certificates?


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

0 Kudos
MaxB
Enthusiast
Enthusiast
Jump to solution

Hi Luc,

the ones where the connect is working have valid certificates.

the ones where the connec isn´t working have selfsigned certificates by the default installation.

Is a valid certificate a requirement for the cmdlet?

Is there a way so Ignore the "invalid" certificate like

Set-PowerCLIConfiguration -InvalidCertificateAction ignore -confirm:$false

Or is this just the deal for Connect-VIServer?
Thanks
0 Kudos
LucD
Leadership
Leadership
Jump to solution

That should work for Connect-CisServer as well afaik.


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

LucD
Leadership
Leadership
Jump to solution

Else try adding the Force switch to the Connect-CisServer cmdlet.


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

0 Kudos
MaxB
Enthusiast
Enthusiast
Jump to solution

To set the InvalidCertificateAction to "ignore" made it!

So -Force isn´t required using Connect-CisServer.

Thanks for the hint Luc!

0 Kudos