API Reference
Cmdlet
New-ConfigurationDotNetServiceLifecycle
Creates service lifecycle execution options for DotNet publish service targets.
Remarks
Creates service lifecycle execution options for DotNet publish service targets.
Examples
Create lifecycle options
New-ConfigurationDotNetServiceLifecycle -Enabled -Mode Step -StopIfExists -DeleteIfExists -Install -Start -Verify
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-ConfigurationDotNetServiceLifecycle [-DeleteIfExists <Boolean>] [-Enabled] [-Install <Boolean>] [-Mode <Step|InlineRebuild>] [-OnExecutionFailure <Warn|Fail|Skip>] [-OnUnsupportedPlatform <Warn|Fail|Skip>] [-Start <Boolean>] [-StopIfExists <Boolean>] [-StopTimeoutSeconds <Int32>] [-Verify <Boolean>] [-WhatIfMode] [<CommonParameters>]
#
Parameter set:
All Parameter SetsParameters
- DeleteIfExists Boolean
- Delete existing service before reinstall.
- Enabled SwitchParameter
- Enables lifecycle execution.
- Install Boolean
- Install or reinstall service.
- Mode DotNetPublishServiceLifecycleMode
- Lifecycle execution mode.
- Possible values:
Step,InlineRebuild - OnExecutionFailure DotNetPublishPolicyMode
- Policy on lifecycle execution failures.
- Possible values:
Warn,Fail,Skip - OnUnsupportedPlatform DotNetPublishPolicyMode
- Policy on non-Windows platforms.
- Possible values:
Warn,Fail,Skip - Start Boolean
- Start service after install.
- StopIfExists Boolean
- Stop existing service before reinstall.
- StopTimeoutSeconds Int32
- Stop timeout in seconds.
- Verify Boolean
- Verify service status after actions.
- WhatIfMode SwitchParameter
- Simulates lifecycle actions.
Outputs
PowerForge.DotNetPublishServiceLifecycleOptions