Automation

 View Only
  • 1.  Call PowerCLI Functions Without Installing

    Posted Jan 19, 2023 10:36 PM

    Hello,

    I am working on a tool that will allow my team to clone, deploy and configure multiple VMs from a single location.  I have it all put together for the most part but I am wanting to make it portable.  Most of my team doesn't have PowerCLI installed and some of the systems we work on are standalone so, I was looking to see if there is any way to use PowerCLI functions without having it fully installed.  I tried adding the DLL reference to my project but I get an error about not being able to find the SDK for the DLL even though they are in the same folder.

    Is there any way to go about utilizing commands (connect-viserver for example) without having the whole PowerCLI module installed?



  • 2.  RE: Call PowerCLI Functions Without Installing

    Posted Jan 20, 2023 12:09 PM

    No.
    The .NET support was removed some versions ago.



  • 3.  RE: Call PowerCLI Functions Without Installing

    Posted Jan 20, 2023 05:45 PM

    Oh okay.  So I guess the easiest way to make it portable is to run a PowerCLI install locally if it isn't installed on the system?



  • 4.  RE: Call PowerCLI Functions Without Installing

    Posted Jan 20, 2023 05:49 PM

    If you want to use PowerCLI that is one of the options.
    A container is another option, and the SRS solution is another.

    There are other frameworks available that allow you to call the vSphere SOAP API.
    And for the newer REST API, any method that allows you to send/receive an HTTP request would do.