Connect with Credentials

Microsoft Platform Guide

Audience
Public
Source Type
Documentation

Purity API 2.2 or later


$FlashArray = Connect-Pfa2Array -EndPoint 10.0.0.1 -Credential (Get-Credential) -IgnoreCertificateError

The below example uses the - Credentialparameter to create a session to the Everpure FlashArray at 10.0.0.1 ( -EndPoint). The -EndPoint can either be an IP address or a Fully Qualified Domain Name (FQDN). Once connected, the session is stored as a PowerShell Object (PSObject) with the variable name of $FlashArray. The - Credentialparameter is set to use the Windows PowerShell cmdlet Get-Credential which will prompt for a User name and Password.

Once the credentials have been entered and OK clicked, the Connect-Pfa2Array cmdlet will complete the session.

Note that in the above example the - IgnoreCertificateErroris used as part of the Connect-Pfa2Array cmdlet. This parameter prevents certificate errors such as an unknown certificate issuer or non-matching names from causing the request to fail.

Note:

When using the Credentials method it is also possible to create a variable and assign the credentials to that variable.

$Creds = Get-Credential