Update: Pure Storage PowerShell SDK

We have updated the PowerShell SDK to fix a bug with a few cmdlets returning incorrect return values. One example shown below uses Get-PfaArrayAttributes cmdlet and returns the version information correctly as 5.1.1.

PS C:\> Get-Module -ListAvailable -Name *Pure*

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Binary  PureStoragePowerShellSDK            {Disable-PfaAlert, Enable-PfaAlert, Get-PfaAlert, Get-PfaA...

PS C:\> $f = New-PfaArray -EndPoint -UserName pureuser -IgnoreCertificateError

cmdlet New-PfaArray at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
Password: ********
PS C:\> $f

Disposed   : False
EndPoint   :
UserName   : pureuser
ApiVersion : 1.13
Role       : ArrayAdmin
ApiToken   : 58db6abf-1933-553f-1628-0c6e207aba1e

PS C:\> Get-PfaArrayAttributes -Array $f

version revision             array_name     id
------- --------             ----------     --
5.1.1   201806020021+e5d9845 sn1-m20-c09-29 45084f35-08bf-4614-8f61-8e9def776d88

In the PowerShell SDK Get-PfaArrayAttribute was returning a date vs a string. The example below is taken from using the New-FlashArrayCapacityReport cmdlet from the PowerShell Toolkit.


Happy Scripting!

Add Comment

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

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