Connect with a username and password

Microsoft Platform Guide

Audience
Public
Source Type
Documentation

Purity API 2.2 or later


$FlashArray = Connect-Pfa2Array -EndPoint 10.0.0.1 -UserName pureuser -Password (ConvertTo-SecureString -String 'mypassword' -AsPlainText -Force) -IgnoreCertificateError

# If the $creds variable was created as indicated in the Informational box above, the command would look like this:
$FlasArray = Connect-Pfa2Array -EndPoint 10.0.0.1 -Credential $Creds -IgnoreCertificateError
Note:

When using the -UserName and -Password parameter method of creating a session, please take notice that the -Password parameter requires that it be a secure string.