Share via


Get-ServiceFabricPartitionRestartProgress

Gets the progress of a partition restart.

Syntax

Default (Default)

Get-ServiceFabricPartitionRestartProgress
    -OperationId <Guid>
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Description

The Get-ServiceFabricPartitionRestartProgress cmdlet gets the progress of a partition restart operation in Azure Service Fabric. Initiate a restart by using the Start-ServiceFabricPartitionRestart cmdlet.

Examples

Example 1: Check progress of partition restart operation

PS C:\> Get-ServiceFabricPartitionRestartProgress -OperationId ebd322c2-b1d3-46a7-b254-3cc42e6ca2d1
    State ProgressResult
    ----- --------------
Completed SelectedPartition: Service Name: fabric:/ContosoApp/ContosoService, Partition Id: 20a726d0-3112-4c5a-a22c-2e4b8ee8...

This command checks the progress of a partition restart operation that has the ID ebd322c2-b1d3-46a7-b254-3cc42e6ca2d1. The operation is completed.

Parameters

-OperationId

Specifies a unique identifier for the operation that this cmdlet checks. You assign this value when you run Start-ServiceFabricPartitionRestart.

Parameter properties

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

Parameter sets

(All)
Position:Named
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