PowerCLI on Linux

So I finally got PowerCLI working on linux. I have it on a docker image running VMware Photon OS 1.0. This is pretty neat cause now I can:

1. Write a Powershell Script and drop into /scripts on the docker image
2. Call the docker
a. alias powercli=’z docker run -i -t powercli:scripts /bin/bash’ – This allows me to go into the docker image to add scripts
alias vmwiki=’z docker run powercli:scripts powershell -f /scripts/VMwiki.ps1′ – I can call the script now.

3. Need to start my start up / shutdown script and parameter it; make life much much easier.

This entry was posted in SysAdmin. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *