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-17
Command

New-ConfigurationDotNetServiceRecovery

Module PSPublishModule
Inputs
None
Outputs
PowerForge.DotNetPublishServiceRecoveryOptions

Creates service recovery options for DotNet publish service targets.

Syntax

New-ConfigurationDotNetServiceRecovery [-ApplyToNonCrashFailures <Boolean>] [-Enabled] [-OnFailure <Warn|Fail|Skip>] [-ResetPeriodSeconds <Int32>] [-RestartDelaySeconds <Int32>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Create service recovery options

New-ConfigurationDotNetServiceRecovery -Enabled -ResetPeriodSeconds 86400 -RestartDelaySeconds 60 -ApplyToNonCrashFailures

Parameters

-ApplyToNonCrashFailures Boolean optional
Applies recovery actions for non-crash failures.
-Enabled SwitchParameter optional
Enables applying recovery policy.
-OnFailure DotNetPublishPolicyMode optional
Policy on recovery command failures.
Possible values: Warn, Fail, Skip
-ResetPeriodSeconds Int32 optional
Failure reset period in seconds.
-RestartDelaySeconds Int32 optional
Restart delay in seconds.

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.