The SDK 1.7.4.0 release adds support for connecting to Pure Storage FlashArray using IPv6. The only change in the connectivity process using New-PfaArray is using an IPv6 address for the EndPoint PowerShell parameter. See the example below:
1 2 3 4 5 6 7 8 9 10 11 |
PS C:> $FlashArray = New-PfaArray -EndPoint 2620:125:9004:2021::202 -Credentials (Get-Credential) -IgnoreCertificateError cmdlet Get-Credential at command pipeline position 1 Supply values for the following parameters: PS C:> $FlashArray Disposed : False EndPoint : 2620:125:9004:2021::202 UserName : pureuser ApiVersion : 1.7 Role : ArrayAdmin ApiToken : 0000000-0000-0000-0000-00000000000 |
Install or download the new PowerShell SDK through all the normal channels:
PowerShell Gallery
https://www.powershellgallery.com/packages/PureStoragePowerShellSDK/1.19.37.0
Check for the PureStoragePowerShellSDK:
1 2 3 4 5 |
PS C:> Get-Module -ListAvailable | ?{ $_.name -like ‘*PureStorage*’ } Directory: C:Program FilesWindowsPowerShellModules ModuleType Version Name ExportedCommands ————— ———– —— ———————— Binary 1.6.6.0 PureStoragePowerShellSDK {Disable-PfaAlert, Enable-PfaAlert, Get-PfaAlert, Get-PfaAlerts...} |
Install the new PureStoragePowerShellSDK 1.7.4.0:
1 2 3 4 5 6 7 |
PS C:> Install-Module -Name PureStoragePowerShellSDK -RequiredVersion 1.7.4.0 PS C:> Get-Module -ListAvailable | ?{ $_.name -like ‘*PureStorage*’ } Directory: C:Program FilesWindowsPowerShellModules ModuleType Version Name ExportedCommands ————— ———– —— ———————— Binary 1.7.4.0 PureStoragePowerShellSDK {Disable-PfaAlert, Enable-PfaAlert, Get-PfaAlert, Get-PfaAlerts...} Binary 1.6.6.0 PureStoragePowerShellSDK {Disable-PfaAlert, Enable-PfaAlert, Get-PfaAlert, Get-PfaAlerts...} |
You will notice that there are now two versions of the SDK installed on your system. Even if you use Update-Module this will be the case. This is an issue I am looking into because 1.6.6.0 should be updated to 1.7.4.0 using Update-Module. In the meantime use the Uninstall-Module cmdlet from PowerShell. Get to remove the older version:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
PS C:> Get-Module -ListAvailable | ?{$_.name -like ‘*PureStorage*’} Directory: C:Program FilesWindowsPowerShellModules ModuleType Version Name ExportedCommands ————— ———– —— ———————— Binary 1.7.4.0 PureStoragePowerShellSDK {Disable-PfaAlert, Enable-PfaAlert, Get-PfaAlert, Get-PfaA... Binary 1.6.6.0 PureStoragePowerShellSDK {Disable-PfaAlert, Enable-PfaAlert, Get-PfaAlert, Get-PfaA... PS C:> Uninstall-Module -Name PureStoragePowerShellSDK -RequiredVersion 1.6.6.0 PS C:> Get-Module -ListAvailable | ?{$_.name -like ‘*PureStorage*’} Directory: C:Program FilesWindowsPowerShellModules ModuleType Version Name ExportedCommands ————— ———– —— ———————— Binary 1.7.4.0 PureStoragePowerShellSDK {Disable-PfaAlert, Enable-PfaAlert, Get-PfaAlert, Get-PfaA... |
GitHub
https://github.com/purestorage-connect/PowerShellSDK
The GitHub repo provides an installation package for those customers that cannot use the Gallery.