Share via


Remove-ServiceFabricTestState

Removes all test state data from a Service Fabric cluster.

Syntax

Default (Default)

Remove-ServiceFabricTestState
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Description

The Remove-ServiceFabricTestState cmdlet removes all of the test state data from a Service Fabric cluster. You can use this cmdlet in the case of a bad shutdown of the test driver. Some actions set test state in the Service Fabric cluster, and if the process fails while in this state, it could leave the Service Fabric cluster unusable. The Remove-ServiceFabricTestState clears this test state data.

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: Remove a Service Fabric test state

PS C:\> Remove-ServiceFabricTestState

This command removes the Service Fabric test state.

Parameters

-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