Skip to content

Latest commit

 

History

History
220 lines (174 loc) · 4.52 KB

File metadata and controls

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

New-ConfigurationDotNetService

SYNOPSIS

Creates service packaging options for DotNet publish targets.

SYNTAX

__AllParameterSets

New-ConfigurationDotNetService [-ServiceName <string>] [-DisplayName <string>] [-Description <string>] [-ExecutablePath <string>] [-Arguments <string>] [-GenerateInstallScript <bool>] [-GenerateUninstallScript <bool>] [-GenerateRunOnceScript <bool>] [-Lifecycle <DotNetPublishServiceLifecycleOptions>] [-Recovery <DotNetPublishServiceRecoveryOptions>] [-ConfigBootstrap <DotNetPublishConfigBootstrapRule[]>] [<CommonParameters>]

DESCRIPTION

Creates service packaging options for DotNet publish targets.

EXAMPLES

EXAMPLE 1

$lifecycle = New-ConfigurationDotNetServiceLifecycle -Enabled
New-ConfigurationDotNetService -ServiceName 'My.Service' -GenerateInstallScript -GenerateUninstallScript -Lifecycle $lifecycle

PARAMETERS

-Arguments

Optional service arguments.

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

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

-ConfigBootstrap

Optional config bootstrap rules.

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

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

-Description

Description text.

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

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

-DisplayName

Display name.

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

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

-ExecutablePath

Executable path relative to output.

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

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

-GenerateInstallScript

Generates Install-Service.ps1.

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

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

-GenerateRunOnceScript

Generates Run-Once.ps1.

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

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

-GenerateUninstallScript

Generates Uninstall-Service.ps1.

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

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

-Lifecycle

Optional lifecycle settings.

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

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

-Recovery

Optional recovery settings.

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

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

-ServiceName

Service name.

Type: String
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.DotNetPublishServicePackageOptions

RELATED LINKS

  • None