Skip to content

Latest commit

 

History

History
235 lines (186 loc) · 4.89 KB

File metadata and controls

235 lines (186 loc) · 4.89 KB
external help file PSPublishModule-help.xml
Module Name PSPublishModule
online version https://github.com/EvotecIT/PSPublishModule
schema 2.0.0

New-ConfigurationDotNetServiceLifecycle

SYNOPSIS

Creates service lifecycle execution options for DotNet publish service targets.

SYNTAX

__AllParameterSets

New-ConfigurationDotNetServiceLifecycle [-Enabled] [-Mode <DotNetPublishServiceLifecycleMode>] [-StopIfExists <bool>] [-DeleteIfExists <bool>] [-Install <bool>] [-Start <bool>] [-Verify <bool>] [-StopTimeoutSeconds <int>] [-HealthCheck <DotNetPublishServiceHealthCheck[]>] [-WhatIfMode] [-OnUnsupportedPlatform <DotNetPublishPolicyMode>] [-OnExecutionFailure <DotNetPublishPolicyMode>] [<CommonParameters>]

DESCRIPTION

Creates service lifecycle execution options for DotNet publish service targets.

EXAMPLES

EXAMPLE 1

New-ConfigurationDotNetServiceLifecycle -Enabled -Mode Step -StopIfExists -DeleteIfExists -Install -Start -Verify

PARAMETERS

-DeleteIfExists

Delete existing service before reinstall.

Type: Boolean
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Enabled

Enables lifecycle execution.

Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-HealthCheck

Optional HTTP readiness checks executed after service state verification.

Type: DotNetPublishServiceHealthCheck[]
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Install

Install or reinstall service.

Type: Boolean
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Mode

Lifecycle execution mode.

Type: DotNetPublishServiceLifecycleMode
Parameter Sets: __AllParameterSets
Aliases: None
Possible values: Step, InlineRebuild

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-OnExecutionFailure

Policy on lifecycle execution failures.

Type: DotNetPublishPolicyMode
Parameter Sets: __AllParameterSets
Aliases: None
Possible values: Warn, Fail, Skip

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-OnUnsupportedPlatform

Policy on non-Windows platforms.

Type: DotNetPublishPolicyMode
Parameter Sets: __AllParameterSets
Aliases: None
Possible values: Warn, Fail, Skip

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Start

Start service after install.

Type: Boolean
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-StopIfExists

Stop existing service before reinstall.

Type: Boolean
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-StopTimeoutSeconds

Stop timeout in seconds.

Type: Int32
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Verify

Verify service status after actions.

Type: Boolean
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-WhatIfMode

Simulates lifecycle actions.

Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

  • None

OUTPUTS

  • PowerForge.DotNetPublishServiceLifecycleOptions

RELATED LINKS

  • None