Skip to content

Connect-PAMSession

Harbor HealthNo sign-in neededGenerated from the codeDescribes Health 0.22.0

Authenticates to CyberArk Privilege Cloud and opens the module session every live Health cmdlet uses.

Terminal window
Connect-PAMSession [[-ClientSecret] <securestring>] [[-Username] <string>] [[-Password] <securestring>] [[-ConfigPath] <string>] [[-ConfigProfile] <string>] [-SkipVerify]

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.

Terminal window
Connect-PAMSession -ConfigProfile demo

Not described in the module help.

Type Required Position Pipeline input
Security.SecureString No 0 No

Not described in the module help.

Type Required Position Pipeline input
String No 3 No

Not described in the module help.

Type Required Position Pipeline input
String No 4 No

Not described in the module help.

Type Required Position Pipeline input
Security.SecureString No 2 No

Not described in the module help.

Type Required Position Pipeline input
SwitchParameter No Named No

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).

Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.