Automation

 View Only
  • 1.  Is PowerCLI really supported on linux?

    Posted Apr 28, 2020 11:48 PM

    https://blogs.vmware.com/PowerCLI/2020/04/new-release-powercli-12.html

    This article said:

    Compatibility Matrix for VMware PowerCLI 12.0.0
    OS Type .NET Version    PowerShell Version
    Windows .NET Framework 4.7.2 or later   Windows PowerShell 5.1
    Linux   .NET Core 3.1   PowerShell 7
    macOS   .NET Core 3.1   PowerShell 7

    Compatibility Matrix for VMware PowerCLI 12.0.0
    OS Type           .NET Version                                      PowerShell Version
    Windows         .NET Framework 4.7.2 or later         Windows PowerShell 5.1
    Linux                .NET Core 3.1                                      PowerShell 7
    macOS             .NET Core 3.1                                      PowerShell 7

     

    But when I want to try it, I got an error.

    > $PSVersionTable

    Name                                              Value
    ----                                                    -----
    PSVersion                                      7.0.0
    PSEdition                                       Core
    GitCommitId                                  7.0.0
    OS                                                   Linux
    Platform                                         Unix
    PSCompatibleVersions                {1.0, 2.0, 3.0, 4.0…}
    PSRemotingProtocolVersion      2.3
    SerializationVersion                     1.1.0.1
    WSManStackVersion                    3.0

    > Import-Module VMware.PowerCLI

    Exception: VMware.VimAutomation.HorizonView module is not currently supported on the Core edition of PowerShell.

     

    My OS: ubuntu 16.04



  • 2.  RE: Is PowerCLI really supported on linux?

    Posted Apr 29, 2020 05:09 AM

    Partially, some modules are not yet supported in PS Core

    And some cmdlets, in supported modules, are not supported



  • 3.  RE: Is PowerCLI really supported on linux?

    Posted Apr 29, 2020 12:26 PM
    What commands can get outputs like your two pics?


  • 4.  RE: Is PowerCLI really supported on linux?

    Posted Apr 29, 2020 12:40 PM

    These are 2 scripts I wrote, and which I used at a VMworld presentation.



  • 5.  RE: Is PowerCLI really supported on linux?

    Posted Apr 29, 2020 05:38 PM

    Is there any plans to support fully PowerCLI on linux?



  • 6.  RE: Is PowerCLI really supported on linux?

    Posted Apr 29, 2020 06:13 PM

    Since I don't work for VMware I have no idea what the current roadmap is, but in the past the VMW people have always stated that the purpose is to have all modules running under PSv7.
    You can ask your TAM who might be able to get an internal reply.