Skip to content

Invoke-HarborHealthCheck

Harbor HealthNo sign-in neededGenerated from the codeDescribes Health 0.22.0

Runs the full health-check catalogue against the connected tenant and returns one scored result: overall 0-100, pillar sub-scores, and every check with its evidence.

Terminal window
Invoke-HarborHealthCheck [[-ConfigProfile] <string>] [[-Pillar] <string>] [[-CheckId] <string[]>]

One collection pass (Get-HealthContext), then every registered check (Private/Checks/*) evaluates as a pure function of that context.

Scoring: Health = round(100 * sum(w_i * s_i) / sum(w_i)) over checks that RETURNED a score – an N/A check (score $null: the data source is absent on this tenant) drops out of the denominator entirely, so a tenant without Credential Providers is not punished for having none. Bands: >= bandGreen ‘healthy’, >= bandAmber ‘attention’, else ‘at risk’ (thresholds config-overridable).

Terminal window
Connect-PAMSession -ConfigProfile demo; Invoke-HarborHealthCheck

Not described in the module help.

Type Required Position Pipeline input
String[] No 2 No

Default: @().

Not described in the module help.

Type Required Position Pipeline input
String No 0 No

Scoped runs (operator 2026-07-29): one pillar, or hand-picked checks. Partial results are flagged, excluded from the full-score trend, and only the INCLUDED checks touch the remediation tracker.

Type Required Position Pipeline input
String No 1 No

Accepted values: Components, Hygiene.

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.