Skip to main content
Pure1 Support Portal

Windows PowerShell

Shows how to use the Pure Storage PowerShell SDK & Toolkit to manage the FlashArray.

We started supporting automation and management of the Pure Storage FlashArray with Windows PowerShell almost two years ago with the Pure Storage PowerShell Toolkit. The toolkit was one of the first open source projects released through GitHub. That initial release had but 7 cmdlets that provided the basics to connect, create volumes and take snapshots. Over time the Toolkit grew to support more than a 150 cmdlets that provided scripting for all operational tasks on the FlashArray.

The adoption of the Toolkit was a great indicator for us to take the next evolutional step and create a Cmdlet CommandType vs the Toolkit’s approach of the Function CommandType. The release of the PowerShell SDK provides 256 cmdlets that map to all of our implemented REST APIs.

 

Quick References

Module

Version(s)

Notes

PowerShell SDK

1.7.4.0

Release History

The Pure Storage PowerShell SDK leverages the REST API and wraps those APIs as PowerShell cmdlets. The PowerShell SDK has the following requirements:

  • Windows PowerShell 3.0 or higher.
  • .NET Framework 4.5.
  • Purity Operating Environments that support REST API 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6 and 1.7.
  • 64-bit Windows Server or Client operating system.
  • This release requires an operating system that supports the TLS 1.1/1.2 protocols such as Windows 7 or higher and Windows Server 2008 R2 or higher.

New Features in 1.7.4.0

  • Adds support for IPv6 (when used with a FlashArray running Purity 4.9.0 or higher)
  • Requires a Purity Operating Environment that supports REST API 1.9 (Purity 4.9.0 or higher).

Quick Links

Install Module

With the release of PowerShell SDK 1.5.x we have adopted the use of the PowerShell Gallery for installing the module. We will continue to provide the installer package (MSI) via GitHub but we encourage the use of the gallery for ease of deployment.

PowerShell Toolkit

3.4.512.0

Release History

This toolkit provides additional PowerShell cmdlets for configuration and management of Windows Server, VMware, SQL Server, Volume Shadow Copy Service (VSS) and other operations.

The PowerShell Toolkit has the following requirements:

  • Windows PowerShell 3.0 (minimum)
  • .NET Framework 3.5 (minimum)
  • All Purity Operating Environments that support Pure Storage PowerShell SDK. 
  • 64-bit Windows Server or Client operating system
  • TLS 1.1/1.2 compliant operating system (Eg. Windows 7, Windows 8.x, Windows 10, Windows Server)

Quick Links

Install Module

With the release of PowerShell Toolkit 3.x we have adopted the use of the PowerShell Gallery for installing the module. We will no longer a standalone installer package (MSI).

PowerShell Toolkit
(Deprecated)

2.8.0.430

This version of the Toolkit has been deprecated. The final version is available on  GitHub to be used by customers and partners as an example of using the Pure Storage REST APIs from Windows PowerShell with Invoke-RestMethod cmdlet.

Support for Pure Storage PowerShell integration is now provided by the PowerShell SDK and the PowerShell Toolkit.

With the release of Purity Operating Environment 4.7.x we deprecated the support for TLS 1.0 and now require TLS 1.1/1.2 for connecting to the FlashArray. For those still using the PowerShell Toolkit 2.x the following line of PowerShell can be added to your existing scripts to connect. It is recommended to port from the PowerShell Toolkit 2.x to the new PowerShell SDK as soon as possible.

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12