Get-​Service​Fabric​Repair​Task

Gets the repair tasks.

Syntax

Get-ServiceFabricRepairTask
   [[-TaskId] <String>]
   [-State <RepairTaskStateFilter>]
   [-TimeoutSec <Int32>]
   [<CommonParameters>]

Description

The Get-ServiceFabricRepairTask cmdlet gets the Service Fabric repair tasks.

This cmdlet supports the Service Fabric platform. Do not run this cmdlet directly.

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: Get all repair tasks

PS C:\> Get-ServiceFabricRepairTask

This command returns all repair tasks in the system, regardless of state.

Example 2: Get active repair tasks

PS C:\> Get-ServiceFabricRepairTask -State Active

This command returns all repair tasks in the system that are not yet completed.

Optional Parameters

-State

Specifies a bitwise combination of state filter values. The states determine which repair task states that this cmdlet gets. Valid states include the following:- Default

  • Created
  • Claimed
  • Preparing
  • Approved
  • Executing
  • ReadyToExecute
  • Restoring
  • Active
  • Completed
  • All
Type:RepairTaskStateFilter
Parameter Sets:Default, Created, Claimed, Preparing, Approved, Executing, ReadyToExecute, Restoring, Active, Completed, All
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TaskId

Specifies a repair task ID prefix to match.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-TimeoutSec

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

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.Fabric.Repair.RepairTask

This cmdlet accepts a repair task ID. You can pipe results of the Start-ServiceFabricRepairTask to the current cmdlet.

Outputs

System.Fabric.Repair.RepairTask

Returns System.Fabric.Repair.RepairTask objects.