VMware Cloud Community
vmSpecDaniel
Enthusiast
Enthusiast
Jump to solution

Unable to connect to vCD with PowerCLI

Hi, can you help me with troubleshooting problem with connecting to vCD using PowerCLI.

When I'm connecting using my System Administrator account

Connect-CIServer vcdCell01 -User 'user' -Password 'pass'

I'm getting:

Connect-CIServer : 11/30/2015 12:19:21 AM    Connect-CIServer        The

server returned 'Unauthorized' with the status code 401 - Unauthorized.

At line:1 char:1

+ Connect-CIServer vcdCell01 -User 'user' -Password 'pass'

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

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

    + FullyQualifiedErrorId : Cloud_ConnectivityServiceImpl_ConnectCloudServer

   _ConnectError,VMware.VimAutomation.Cloud.Commands.Cmdlets.ConnectCIServer

I can connect to Web UI using same System Administrator account.

The only way I can connect with PowerCLI is when I create local account in one of organizations and add -Org to command

Connect-CIServer vcdCell01 -User 'localuser' -Password 'localpass' -Org 'org'

Please help.

0 Kudos
1 Solution

Accepted Solutions
bengels0
Enthusiast
Enthusiast
Jump to solution

I used some Python stuff to connect to vCD. To connect as System Administrator I had to use "Administrator@System" as the user.

Maybe it will work for you if you use "-Org System"?

View solution in original post

0 Kudos
2 Replies
bengels0
Enthusiast
Enthusiast
Jump to solution

I used some Python stuff to connect to vCD. To connect as System Administrator I had to use "Administrator@System" as the user.

Maybe it will work for you if you use "-Org System"?

0 Kudos
vmSpecDaniel
Enthusiast
Enthusiast
Jump to solution

Thanks, It worked.

0 Kudos