Skip to content

Test-PAMPolicy

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Evaluates the policy guardrails over the ACTIVE safe register, offline: one row per violation (RuleId, Enforce, SafeName, Detail). Empty output = every registered safe complies (or policy is off).

Terminal window
Test-PAMPolicy [[-ConfigPath] <string>] [[-ConfigProfile] <string>]

The same evaluation the compliance report runs (its findings carry Kind ‘policy:<id>’), exposed standalone so an operator can check the estate right after editing the rules – no vault session needed. Rules live in policy-rules.json (Settings > Policy Guardrails): require-field / name-pattern / field-in-list, per safe type, each enforced as block (stops creates) or warn (logs and reports).

Terminal window
Test-PAMPolicy | Format-Table RuleId, SafeName, Detail

Not described in the module help.

Type Required Position Pipeline input
String No 0 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.