Share via


Start-ServiceFabricApplicationRollback

Starts rolling back a Service Fabric application upgrade.

Syntax

Default (Default)

Start-ServiceFabricApplicationRollback
    [-ApplicationName] <Uri>
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Description

The Start-ServiceFabricApplicationRollback cmdlet manually starts rolling back a pending upgrade. If the command finishes successfully, then the cmdlet has registered the intent to roll back the upgrade with Service Fabric. To monitor the status of the rollback, use the Get-ServiceFabricApplicationUpgrade cmdlet.

Before you perform any operation on a Service Fabric cluster, establish a connection to the cluster by using the Connect-ServiceFabricCluster cmdlet.

Examples

Example 1: Roll back an existing application upgrade

PS C:\> Start-ServiceFabricApplicationRollback -ApplicationName fabric:/MyApp

This command starts rolling back any existing application upgrade for fabric:/MyApp.

Parameters

-ApplicationName

Specifies the Uniform Resource Identifier (URI) of a Service Fabric application. The cmdlet rolls back the upgrade for the Service Fabric that this parameter specifies.

Parameter properties

Type:Uri
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TimeoutSec

Specifies the time-out period, in seconds, for the operation.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

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

Inputs

None

Outputs

System.Object