Test-PAMPolicy
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).
Syntax
Section titled “Syntax”Test-PAMPolicy [[-ConfigPath] <string>] [[-ConfigProfile] <string>]Description
Section titled “Description”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).
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Test-PAMPolicy | Format-Table RuleId, SafeName, DetailParameters
Section titled “Parameters”-ConfigPath
Section titled “-ConfigPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 0 | No |
-ConfigProfile
Section titled “-ConfigProfile”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 Onboard cmdlets
- In PowerShell:
Get-Help Test-PAMPolicy -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
