PowerShell Core Support for Installation of the Pure Storage vSphere Plugin

For those Windows users, one of the nice things that just went GA was Windows Terminal–which is pretty cool.

https://github.com/microsoft/terminal

Of course this is probably gets an old “big deal, I’ve had that on Linux or Mac since the stone age” from those users. And fair enough.

Anyways, regardless to your platform, you might be a PowerShell user–since PowerShell Core is supported on multiple platforms. If you are a PowerCLI user, VMware added support a few years ago. Our base PowerShell modules (for direct management of the FA) does not yet support Core, though it is in plan. We also offer a VMware-focused Pure Storage PowerShell Module which connects PowerCLI commands with FlashArray operations (when needed) to managing a VMware and Pure environment a streamlined experience in PowerShell. This module has some cmdlets that have dependencies on both, and some have dependencies on just one of the two. The latter situation is what I am working on.

One of the most handy (in my opinion) cmdlets in the VMware/Pure module is the one for installing the vSphere Plugin (Install-PfavSpherePlugin), I talk about it here:

This one has no dependencies on the underlying Pure PowerShell module, just PowerCLI. Though it did use some libraries that did not work with PowerShell Core (mostly the SSL thumbprint management, thanks to William Lam and others for some code there). Just had to make some minor changes to that code, because the vSphere Plugin download process still requires a SHA-1 thumbprint, not SHA-256.

Anyways, it works now in PowerShell Core! This and Get-PfavSpherePlugin are currently the ONLY cmdlets in the module I have qualified for support with Core–I will work through the others in due time. So if you want to install the vSphere Plugin from your Mac, or Linux box, or Windows using core you can!

Make sure you have the latest version (1.4.2.0), which is easiest to install via the PowerShell Gallery:

Once done, connect to your vCenter and install. Note that the Get-PfavSpherePlugin cmdlet also works in core if you want to see what is available:

Same on a Mac:

Enjoy! As always for feedback, requests for enhancements, or issues, use:

https://github.com/PureStorage-OpenConnect/PureStorage.FlashArray.VMware/issues

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.