FlashArray PowerShell VMware 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 Cody.PureStorage.FlashArray.VMware.

There are a couple of places you can download 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 do install-module if it is not already.

The cmdlet 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.).

I will be working on adding more and more to this!

To install:

install-module Cody.PureStorage.FlashArray.VMware

To load the module:

import-module Cody.PureStorage.FlashArray.VMware

To update:

update-module Cody.PureStorage.FlashArray.VMware

Use either get-help or get-command to see the details:

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

Latest version 1.3.0.0 (March 1st, 2019)

Cmdlets:

add-faVolVmfsToCluster
copy-faVvolVmdkToNewVvolVmdk
copy-faSnapshotToExistingVvolVmdk
copy-faSnapshotToNewVvolVmdk
copy-faVvolVmdkToExistingVvolVmdk
get-faVolumeNameFromVvolUuid
get-vvolUuidFromHardDisk
get-faSnapshotsFromVvolHardDisk
get-vmdkFromWindowsDisk
get-faHostFromVmHost
get-faHostGroupfromVcCluster
get-faVolfromVMFS
get-faVolVmfsSnapshots
new-pureflasharrayRestSession
new-faSnapshotOfVvolVmdk
new-faHostFromVmHost
new-faHostGroupfromVcCluster
new-faVolVmfs
new-faVolVmfsSnapshot
new-faVolVmfsFromSnapshot
remove-pureflasharrayRestSession
set-vmHostPureFaiSCSI
set-clusterPureFAiSCSI
set-faVolVmfsCapacity
update-faVvolVmVolumeGroup
new-faVolRdm 
set-faVolRDMCapacity
copy-faSnapshotToRDM
get-faVolRDMSnapshots
new-faVolRdmSnapshot
get-faVolfromRDM
remove-faVolRDM
convert-faVolRDMtoVvol

"Remember kids, the only difference between Science and screwing around is writing it down"