Pure Storage FlashArray VMware PowerShell Module

To help our customers I have written a module that includes a lot of the common operations people might need to “connect” PowerCLI to our PowerShell SDK.

The module is called PureStorage.FlashArray.VMware.

Latest version 2.1.0.1 (October 8th, 2020)

New Features:

  1. New CMDLETS:
    1. Get-PfaVcfVasaProvider–get all registered VASA providers in VCF SDD Manager
    2. New-PfaVcfVasaProvider–register a new VASA provider in VCF SDD Manager
  2. Initialize-PfaVcfWorkloadDomain enhancements:
    1. Configures requirements for ESXi (enables SSH)
    2. Configures iSCSI requirements for iSCSI deployments with vVols
    3. vVol configuration support
    4. VASA provider registration
    5. Validates and commissions hosts in SDDC Manager.

Fixed Issues:

  1. Support for PowerShell Core for VCF cmdlets
  2. Fixes issue with name collision for New-PfaHostFromVmHost

Previous version 2.0.0.0 (August 26th, 2020)

New Features:

Fixed Issues:

To report issues or request new features, please enter them here:

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

For questions, join our Pure Storage Code Slack team! Check out the #PowerCLI channel

The module is designed into six separate modules that are included when you install the main one:

  • PureStorage.FlashArray.VMware.Configuration –this does connection management, host configuration, and generic initial setup.
  • PureStorage.FlashArray.VMware.VMFS–this offers VMFS-related cmdlets
  • PureStorage.FlashArray.VMware.vVol–this offers vVol-related cmdlets
  • PureStorage.FlashArray.VMware.RDM–this offers RDM-related cmdlets
  • PureStorage.FlashArray.VMware.Pure1–this offers Pure1 Meta-related cmdlets (experimental)
  • PureStorage.FlashArray.VMware.Software–this offers Pure Storage software deployment and management cmdlets

There are two places you can install this. The best option is the PowerShell gallery! This allows you to use install-module to automatically install the module.

It requires PowerCLI…

…and the PureStorage PowerShell SDK to be installed, the Pure Storage PowerShell SDK will be automatically installed when you install this module if it is not already.

The module will help you connect PowerCLI commands (like get-datastore or get-vmhost) to operations you might want to do on the FlashArray. The cmdlets support pipeline input for most variables (datastores, FlashArray connections, ESXi hosts, etc.).

To install:

install-module PureStorage.FlashArray.VMware

To load the module:

import-module PureStorage.FlashArray.VMware

To update:

update-module PureStorage.FlashArray.VMware

For all available commands, use get-command:

For specifics, use get-help plus the function you want.

Comment on Versioning

Versions numbering w.x.y.z (for example 1.3.0.0)

  • W is iterated for large updates
  • X is iterated for new cmdlets
  • Y is iterated for new functions to existing cmdlets
  • Z is iterated for bug fixes