VMware Cloud Community
pkDMV
Contributor
Contributor
Jump to solution

Connect-CIServer no cloud server was found

Hello, all.  Could anyone pls help, first time trying to connect powercli to vcenter but get the error msg "Connect-CIServer no cloud server was found"

At line:1 char:1

+ Connect-CIServer 165.XXX.XXX.XXX

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

    + CategoryInfo          : NotSpecified: (:) [Connect-CIServer], CIException

    + FullyQualifiedErrorId : Cloud_ConnectivityServiceImpl_ConnectCloudServer_ConnectError,VMware.VimAutomation.Cloud

   .Commands.Cmdlets.ConnectCIServer

1 Solution

Accepted Solutions
Devi94
Hot Shot
Hot Shot
Jump to solution

if you are trying to connect vcenter which dont have vcloud, try using command connect-viserver instead of connect-ciserver

View solution in original post

8 Replies
Devi94
Hot Shot
Hot Shot
Jump to solution

Try connect-viserver 165.x.x.x

Reply
0 Kudos
pkDMV
Contributor
Contributor
Jump to solution

trying connecting with IPs, still experiencing the same issue

PowerCLI C:\> Connect-CIServer 165.x.x.x

WARNING: There were one or more problems with the server certificate:

* The certificate's CN name does not match the passed value.

Certificate: [Subject]

[Issuer]

 

[Serial Number]

[Not Before]

  8/17/2016 2:56:18 PM

[Not After]

  8/16/2021 2:56:18 PM

[Thumbprint]

Invalid server certificate.

It is recommended that you do not connect to any server with an invalid certificate. PowerCLI can connect to the server

once or you can add a permanent exception for this server. Do you accept the server certificate?

[D] Deny  [O] Accept Once  [P] Accept Permanently  [A] Accept For All Users  [?] Help (default is "D"): p

Connect-CIServer : 5/29/2018 8:44:37 AM    Connect-CIServer        No Cloud server was found on

https://165.x.x.x:443/api/.

At line:1 char:1

+ Connect-CIServer 165.x.x.x

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

    + CategoryInfo          : NotSpecified: (:) [Connect-CIServer], CIException

    + FullyQualifiedErrorId : Cloud_ConnectivityServiceImpl_ConnectCloudServer_ConnectError,VMware.VimAutomation.Cloud

   .Commands.Cmdlets.ConnectCIServer

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Did you set the InvalidCertificateAction to Ignore with the Set-PowerCLIConfiguration cmdlet?

You can check with the Get-PowerCLIConfiguration cmdlet.


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

Reply
0 Kudos
pkDMV
Contributor
Contributor
Jump to solution

LUcD, it's set to Unset.

PowerCLI C:\> Get-PowerCLIConfiguration

Scope    ProxyPolicy     DefaultVIServerMode InvalidCertificateAction  DisplayDeprecationWarnings WebOperationTimeout

                                                                                                  Seconds

-----    -----------     ------------------- ------------------------  -------------------------- -------------------

Session  UseSystemProxy  Multiple            Unset                     True                       300

User

AllUsers

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Can you set it to Ignore?


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

Reply
0 Kudos
pkDMV
Contributor
Contributor
Jump to solution

I've set it to Ignore and still experiencing the same issue "

Connect-CIServer : 5/30/2018 7:22:47 AMConnect-CIServer    No Cloud server was found on

PowerCLI C:\> Get-PowerCLIConfiguration

Scope    ProxyPolicy     DefaultVIServerMode InvalidCertificateAction  DisplayDeprecationWarnings WebOperationTimeout

                                                                                                  Seconds

-----    -----------     ------------------- ------------------------  -------------------------- -------------------

Session  UseSystemProxy  Multiple            Ignore                    True                       300

User

AllUsers                                                      Ignore

Reply
0 Kudos
Devi94
Hot Shot
Hot Shot
Jump to solution

if you are trying to connect vcenter which dont have vcloud, try using command connect-viserver instead of connect-ciserver

pkDMV
Contributor
Contributor
Jump to solution

Thank  You Devi94, connect-VIserver work. horray !!.  Thank you all so much for your input