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
if you are trying to connect vcenter which dont have vcloud, try using command connect-viserver instead of connect-ciserver
Try connect-viserver 165.x.x.x
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
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
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
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
Can you set it to Ignore?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I've set it to Ignore and still experiencing the same issue "
Connect-CIServer : 5/30/2018 7:22:47 AM | Connect-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
if you are trying to connect vcenter which dont have vcloud, try using command connect-viserver instead of connect-ciserver
Thank You Devi94, connect-VIserver work. horray !!. Thank you all so much for your input