Start-​Service​Fabric​Partition​Quorum​Loss

Initiates a fault to put a partition into quorum loss. The various ways to specify or to choose the partition to invoke quorum loss on are below.

Syntax

Start-ServiceFabricPartitionQuorumLoss
     -OperationId <Guid>
     -PartitionId <Guid>
     -QuorumLossDurationInSeconds <Int32>
     -QuorumLossMode <QuorumLossMode>
     -ServiceName <Uri>
     [-TimeoutSec <Int32>]
     [<CommonParameters>]
Start-ServiceFabricPartitionQuorumLoss
     -OperationId <Guid>
     -PartitionKey <String>
     [-PartitionKindNamed]
     -QuorumLossDurationInSeconds <Int32>
     -QuorumLossMode <QuorumLossMode>
     -ServiceName <Uri>
     [-TimeoutSec <Int32>]
     [<CommonParameters>]
Start-ServiceFabricPartitionQuorumLoss
     -OperationId <Guid>
     -PartitionKey <String>
     [-PartitionKindUniformInt64]
     -QuorumLossDurationInSeconds <Int32>
     -QuorumLossMode <QuorumLossMode>
     -ServiceName <Uri>
     [-TimeoutSec <Int32>]
     [<CommonParameters>]
Start-ServiceFabricPartitionQuorumLoss
     -OperationId <Guid>
     [-PartitionKindSingleton]
     -QuorumLossDurationInSeconds <Int32>
     -QuorumLossMode <QuorumLossMode>
     -ServiceName <Uri>
     [-TimeoutSec <Int32>]
     [<CommonParameters>]

Description

The Start-ServiceFabricPartitionQuorumLoss cmdlet initiates a fault to put a stateful service partition into quorum loss in Azure Service Fabric.

To run this cmdlet, FaultAnalysisService must be enabled.

> [!WARNING]

Do not use this cmdlet to perform a quorum loss fault operation on system services. Run this cmdlet to perform a quorum loss fault operation only for partitions for stateful services.

You can check the progress of the fault operation by using the Get-ServiceFabricPartitionQuorumLossProgress cmdlet.

Examples

Example 1: Start a quorum loss fault operation for a service by partition ID

PS C:\> Start-ServiceFabricPartitionQuorumLoss -OperationId aeaceca9-320d-4f7b-84e8-3cc13c29a974 -QuorumLossMode QuorumReplicas -QuorumLossDurationInSeconds 10 -PartitionId 20a726d0-3112-4c5a-a22c-2e4b8ee85280 -ServiceName "fabric:/ContosoApp/ContosoService"

This command starts a partition quorum loss fault operation on the service named fabric:/ContosoApp/ContosoService in the partition that has the ID 20a726d0-3112-4c5a-a22c-2e4b8ee85280. The QuorumLossMode parameter has a value of QuorumReplicas, which means that this cmdlet faults a quorum of replicas. Specify a unique GUID for the OperationId parameter. You can use this ID to check the progress of the quorum loss fault operation.

Required Parameters

-OperationId

Specifies a unique identifier for this operation. Specify a unique value. You can check the progress of the operation by passing this ID into Get-ServiceFabricPartitionQuorumLossProgress.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PartitionId

Specifies the ID of the Service Fabric partition that this cmdlet puts into quorum loss.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-PartitionKey

Specifies the key of the Service Fabric partition that this cmdlet puts into quorum loss.

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

Indicates that the Service Fabric partition that this cmdlet puts into quorum loss is a Named partition.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PartitionKindSingleton

Indicates that the Service Fabric partition that this cmdlet puts into quorum loss is a singleton partition.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PartitionKindUniformInt64

Indicates that the Service Fabric partition that this cmdlet puts into quorum loss is a UniformInt64 partition.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-QuorumLossDurationInSeconds

Specifies the duration, in seconds, of the quorum loss.

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

Specifies the mode of quorum loss that this cmdlet performs. The acceptable values for this parameter are:- FullQuorumLoss. Down all replicas for the target partition.

  • PartialQuorumLoss. Down a quorum of replicas for the target partition.
Type:QuorumLossMode
Parameter Sets:Invalid, QuorumReplicas, AllReplicas
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ServiceName

Specifies the Uniform Resource Identifier (URI) of a Service Fabric service.

Type:Uri
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-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

Outputs

This cmdlet does not generate any output.