A question that is coming up often as more and more customers leverage the Pure Storage PowerShell SDK for automation management is, “How do I control Remote Assist sessions using the PowerShell SDK?”
Check out more on PowerShell!
PS C:> Get-Command -Module PureStoragePowerShellSDK -Noun *Remote*
CommandType Name Version Source
———– —- ——- ——
Cmdlet Get-PfaRemoteAssistSession 1.0.15.0 PureStoragePowerShellSDK
Cmdlet Set-PfaRemoteAssistStatus 1.0.15.0 PureStoragePowerShellSDK
PS C:> $Creds = Get-Credential
cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
PS C:> $FlashArray = New-PfaArray -EndPoint ******* -Credentials $Creds -IgnoreCertificateError
PS C:> $FlashArray
Disposed : False
EndPoint : *******
UserName : pureuser
ApiVersion : 1.4
Role : ArrayAdmin
PS C:> Get-PfaRemoteAssistSession -Array $FlashArray
status port
—— —-
disabled
What this shows is that the Remote Assist port can be enabled or disabled for Remote Assist. Controlling the actual connectivity is not currently possible via the REST API or the PowerShell SDK, this is only available using the Command Line Interface (CLI). This is a limitation today within the REST API which is what the PowerShell SDK leverages to interact with the Pure Storage FlashArray. There are no current plans to provide this feature but I never say never. Keep reading to learn more about how our team can help you install plugins with PowerShell, revamp modules, pull performance stats, and more!
–Barkz
Check out more articles on Powershell:
–Installing the Pure Storage vSphere Plugin with Power Shell
-Revamped PowerShell Module for Pure and VMware
–Pulling Performance Statistics from Pure1® with Power Shell