Pure Storage 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:

If you do not have internet access on your PowerShell machine, you can manually download it from my GitHub:

https://github.com/codyhosterman/powercli/blob/master/Cody.PureStorage.FlashArray.VMware.psm1 

Latest version 1.1.0.2 (November 28th, 2018)

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

 

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