Invoke-Pfa2CliCommand cmdlet provides the ability to pass CLI commands to the FlashArray or FlashBlade for situations when the REST API has updated in a new version of Purity, but any new REST endpoints are not supported in the PowerShell SDK yet. Here is an example:
Invoke-Pfa2CLICommand -EndPoint 10.21.201.57 -Credentials $Creds -CommandText "purevol list"
When using this cmdlet, be sure that your firewall rules allow for SSH Port 22 traffic. Otherwise, the cmdlet will fail with an error, such as the one below.
New-Pfa2CLICommand : A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
You may see in the error message the CommandText is a “?”. If that is used, it will show the results as what you would see using the CLI and executing