image_pdfimage_print

If you do any kind of automation with FlashArray™, then you’re most likely using the PowerShell SDK in one way or another. Recently, we released version 2.24.70 of the SDK and not only does it have a bunch of new cmdlets but also has some important changes that you need to know about. Let’s dive right into it!

Version 2.24.70 brings the PowerShell SDK up to parity with the Purity API version 2.24 (Pure1® login required). There were over 30 new cmdlets added and I’ve listed them in the table below. As you can see, we’ve brought more Directory Services, alerting, performance, software, network, and policy endpoints from the 2.24 API into the SDK.

flasharray

The latest release also makes changes to some invalid, duplicated, or unused parameters for certain cmdlets. This is important if you have existing scripts that utilize these cmdlets, so please check them over. These are the cmdlets and their associated parameters that have been removed: 

PowerShell SDK

Restore SQL Server Data Faster with Pure’s SSMS Extension

Finally, we have a few cmdlets that have been “held back” from this release since there are some internal API issues when using them. They’ll be included in the next revision of the SDK. The method(s) and endpoints that are affected include:

  • [get, post] /directories/locks/nlm-reclamation
  • [delete] /directory-services/local/groups/members
  • [post] /software-patches

I encourage you to upgrade to the latest released version, by either doing an Install-Module PureStoragePowerShellSDK2 from a PowerShell prompt or installing the MSI that is available in the GitHub repository. Please take note that if you do use the MSI installer, it’s going to be deprecated soon with an upcoming release and you’ll be required to get the module via the PowerShell Gallery. In the GitHub repository, we also have several informational files for topics such as Filtering, SafeMode, and Configuration. You’ll also find files for examples and tips, as well as an HTML version of the SDK Help. If you’re having any issues with the SDK, or just want to suggest a feature or make a code contribution (always welcomed!), please submit an issue in the GitHub repository. You can also join our PureCode Slack by clicking on a self-invitation here.