PowerCLI

 View Only
  • 1.  Cloud Director 10.4 login problem

    Posted Jul 25, 2022 07:28 AM

    Hi

    We have just upgraded our Cloud Director to version 10.4 from 10.3 and after that we are not able to login with PowerCLI (newest version). Login from the Web UI works fine.

    I just get this error from both Powershell and pwsh:

    Connect-CIServer -Server cloud.mydomain.org
    Connect-CIServer : 25-07-2022 09:15:04 Connect-CIServer Unable to connect to vCloud Server 'https://cloud.mydomain.org:443/api/'. The server returned the following: NotAcceptable: ''.
    At line:1 char:1
    + Connect-CIServer -Server cloud.mydomain.org
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Connect-CIServer], CIException
    + FullyQualifiedErrorId : Cloud_ConnectivityServiceImpl_ConnectCloudServer_ConnectError,VMware.VimAutomation.Cloud.Commands.Cmdlets.ConnectCIServer

     

    Any idea whats wrong?



  • 2.  RE: Cloud Director 10.4 login problem
    Best Answer

    Posted Jul 25, 2022 07:33 AM

    You are unable to log in to VMware Cloud Director by using VMware PowerCLI

    When you attempt to log in to VMware Cloud Director by using VMware PowerCLI, this results in the following error. NOT_ACCEPTABLE: The request has invalid accept header: Invalid API version requested. This happens because VMware PowerCLI does not support VMware Cloud Director API versions later than 33.0.



  • 3.  RE: Cloud Director 10.4 login problem

    Posted Jul 25, 2022 07:37 AM

    DOH, sorry i did not notice that 

    Thanks for pointing it out



  • 4.  RE: Cloud Director 10.4 login problem

    Posted Dec 15, 2022 02:30 PM

    This issue has been fixed in PowerCLI 13. Please check https://blogs.vmware.com/PowerCLI/2022/11/powercli-13-is-now-ga.html

    • The vCD module has been updated to support vCD 10.4 and some new features have been added to it.