Skip to content

Invoke-HarborHealthScheduledScan

Harbor HealthNo sign-in neededGenerated from the codeDescribes Health 0.22.0

The scheduled-cadence health scan (G1 pattern from Onboard): runs the full check catalogue, diffs check statuses against the previous stored full scan and alerts the webhook on NEW problems only. Connects itself when no session is open (the profile’s declared service account and its declared secret source, zero prompts), so it runs headless from Task Scheduler as well as by hand.

Terminal window
Invoke-HarborHealthScheduledScan [[-ConfigProfile] <string>] [-NoNotify]

The alerting contract is deliberately quiet: a check that was already warn/fail last run is UNCHANGED (no alert, however long it lingers), a check that recovered is RESOLVED (reported, never alerted), and only checks becoming a problem for the FIRST time notify the webhook (event ‘health-new-problems’, with the score movement in the same message). The very first run is a BASELINE: it records the estate and never alerts, so enabling the schedule on an unhealthy tenant does not blast the channel.

Every run lands in the normal scan history (health-history\scan-*.json, reopenable in the console) with the diff embedded, and feeds the remediation tracker exactly like a console-run scan.

Terminal window
Invoke-HarborHealthScheduledScan -ConfigProfile prod

Not described in the module help.

Type Required Position Pipeline input
String No 0 No

Suppress the webhook alert (the diff is still computed and stored).

Type Required Position Pipeline input
SwitchParameter No Named 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.