The Everpure PowerShell SDK2 enables easy automation without having to directly call Rest APIs as over 400 cmdlets are available. The -Array parameter is needed if the PowerShell session is connected to more than 1 FlashArray, else it can be omitted.
-
Install the PowerShell SDK if necessary.
Install-Module PureStoragePowerShellSDK2 -
Connect to the FlashArray.
$fa30 = Connect-Pfa2Array -Endpoint <IP or FQDN> -IgnoreCertificateError -Credential (Get-Credential) -
Provision a Volume.
-
Connect the Volume to the Host or Host Group.