Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vmware 由于授权错误,无法连接到vCloud服务器_Vmware_Powercli - Fatal编程技术网

Vmware 由于授权错误,无法连接到vCloud服务器

Vmware 由于授权错误,无法连接到vCloud服务器,vmware,powercli,Vmware,Powercli,我正在运行以下命令以使用PowerShell连接到vCloud Director Connect-CIServer -Server "company.com.au" -User "username" -Password "password" -Org "testorg" 但是,它给了我如下错误: Connect-CIServer : 20/09/2019 2:13:12 PM Connect-CIServer Unable to connect to vCloud Server 'https

我正在运行以下命令以使用PowerShell连接到vCloud Director

Connect-CIServer -Server "company.com.au" -User "username" -Password "password" -Org "testorg"
但是,它给了我如下错误:

Connect-CIServer : 20/09/2019 2:13:12 PM  Connect-CIServer
Unable to connect to vCloud Server 'https://company.com.au:443/api/'. The
server returned the following: Unauthorized: ''.
At line:1 char:1
+ Connect-CIServer -Server "company.com.au" -User "username" -Pas ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Connect-CIServer], CIException
    + FullyQualifiedErrorId : Cloud_ConnectivityServiceImpl_ConnectCloudServer_ConnectError,VMware.VimAutomation.Cloud.Commands.Cmdlets.ConnectCIServer
不幸的是,没有提供太多信息,我可以使用相同的凭据登录到UI,但不能在命令行上登录

我在尝试登录vCenter时遇到了类似的问题,我通过忽略证书使其正常工作。不确定对于VCloud服务器,我是否面临同样的问题

Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false

当我删除-Org参数时效果很好!因此,我登录到Cloud Director的命令如下:

Connect-CIServer -Server "company.com.au" -User "username" -Password "password"