Start-ServiceFabricApplicationRollback
Starts rolling back a Service Fabric application upgrade.
Syntax
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.
Type: | Uri |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TimeoutSec
Specifies the time-out period, in seconds, for the operation.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
System.Object