Connect-PAMSession
Authenticates to CyberArk Privilege Cloud and opens the module session every live Health cmdlet uses.
Syntax
Section titled “Syntax”Connect-PAMSession [[-ClientSecret] <securestring>] [[-Username] <string>] [[-Password] <securestring>] [[-ConfigPath] <string>] [[-ConfigProfile] <string>] [-SkipVerify]Description
Section titled “Description”Same auth surface as Harbor Onboard. The profile’s EXPLICIT serviceAccount block (Set-HarborServiceAccount) names the kind – ‘oauth’ (client credentials) or a vault-user logon (‘cyberark’ | ‘ldap’ | ‘radius’ | ‘windows’) – and the ONE place its secret comes from (dpapi | secretManagement | env | prompt); -ClientSecret / -Password win. ‘authMethod: demo’ = demo. The recommended production path for Health is SSO user-mode via the web console (the operator’s own admin-grade rights) – SystemHealth APIs need admin-level permissions that a least-privilege service user usually lacks.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Connect-PAMSession -ConfigProfile demoParameters
Section titled “Parameters”-ClientSecret
Section titled “-ClientSecret”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
Security.SecureString |
No | 0 | No |
-ConfigPath
Section titled “-ConfigPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 3 | No |
-ConfigProfile
Section titled “-ConfigProfile”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 4 | No |
-Password
Section titled “-Password”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
Security.SecureString |
No | 2 | No |
-SkipVerify
Section titled “-SkipVerify”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
-Username
Section titled “-Username”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 1 | No |
This command also accepts the PowerShell common parameters (-Verbose, -ErrorAction, and so on).
See also
Section titled “See also”- All Harbor Health cmdlets
- In PowerShell:
Get-Help Connect-PAMSession -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
