Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

Stars 48
Forks 16
PowerShell Gallery downloads 17,213
Release v3.0.169
Language: C# Updated: 2026-10-13

API Reference

Command

New-ConfigurationDotNetServiceHealthCheck

Namespace PSPublishModule
Inputs
None
Outputs
PowerForge.DotNetPublishServiceHealthCheck

Creates an HTTP readiness check for DotNet publish service lifecycle verification.

Remarks

Creates an HTTP readiness check for DotNet publish service lifecycle verification.

Examples

Authored help example

Create a service health check


New-ConfigurationDotNetServiceHealthCheck -Id Runtime -Uri 'http://127.0.0.1:58433/runtime' -JsonPath 'status' -ExpectedValue 'Ready'
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

New-ConfigurationDotNetServiceHealthCheck [-ExpectedStatusCode <Int32>] [-ExpectedValue <String>] [-Id <String>] [-JsonPath <String>] [-OnFailure <Warn|Fail|Skip>] [-PollIntervalMilliseconds <Int32>] [-TimeoutSeconds <Int32>] -Uri <String> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

ExpectedStatusCode Int32 optionalposition: namedpipeline: False
Expected HTTP status code. Defaults to 200.
ExpectedValue String optionalposition: namedpipeline: False
Optional expected JSON scalar value at JsonPath. When omitted, the check only verifies that the path exists.
Id String optionalposition: namedpipeline: False
Optional check identifier used in logs and failure messages.
JsonPath String optionalposition: namedpipeline: False
Optional dot-separated JSON path to validate in the response body. Array indexes can be expressed as property[0].
OnFailure DotNetPublishPolicyMode optionalposition: namedpipeline: Falsevalues: 3
Policy used when the health check does not pass before timeout.
Possible values: Warn, Fail, Skip
PollIntervalMilliseconds Int32 optionalposition: namedpipeline: False
Delay in milliseconds between polling attempts.
TimeoutSeconds Int32 optionalposition: namedpipeline: False
Maximum time in seconds to wait for the endpoint to pass.
Uri String requiredposition: namedpipeline: False
Absolute HTTP or HTTPS endpoint to poll. Supports service lifecycle tokens such as {serviceName}, {outputDir}, and {executablePath}.

Outputs

PowerForge.DotNetPublishServiceHealthCheck