Get-ServiceFabricPartitionRestartProgress

Gets the progress of a partition restart.

Syntax

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.

Type:Guid
Position:Named
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