Start-ServiceFabricPartitionQuorumLoss

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>
     -QuorumLossMode <QuorumLossMode>
     -QuorumLossDurationInSeconds <Int32>
     -PartitionId <Guid>
     -ServiceName <Uri>
     [-TimeoutSec <Int32>]
     [<CommonParameters>]
Start-ServiceFabricPartitionQuorumLoss
     -OperationId <Guid>
     -QuorumLossMode <QuorumLossMode>
     -QuorumLossDurationInSeconds <Int32>
     -ServiceName <Uri>
     [-TimeoutSec <Int32>]
     [<CommonParameters>]
Start-ServiceFabricPartitionQuorumLoss
     -OperationId <Guid>
     -QuorumLossMode <QuorumLossMode>
     -QuorumLossDurationInSeconds <Int32>
     -ServiceName <Uri>
     [-PartitionKindSingleton]
     [-TimeoutSec <Int32>]
     [<CommonParameters>]
Start-ServiceFabricPartitionQuorumLoss
     -OperationId <Guid>
     -QuorumLossMode <QuorumLossMode>
     -QuorumLossDurationInSeconds <Int32>
     -ServiceName <Uri>
     [-PartitionKindNamed]
     -PartitionKey <String>
     [-TimeoutSec <Int32>]
     [<CommonParameters>]
Start-ServiceFabricPartitionQuorumLoss
     -OperationId <Guid>
     -QuorumLossMode <QuorumLossMode>
     -QuorumLossDurationInSeconds <Int32>
     -ServiceName <Uri>
     [-PartitionKindUniformInt64]
     -PartitionKey <String>
     [-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.

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
Required:True
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
Required:True
Accept pipeline input:True
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
Required:True
Accept pipeline input:True
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
Required:True
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
Required:True
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
Required:True
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
Required:True
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
Accepted values:Invalid, QuorumReplicas, AllReplicas
Position:Named
Default value:None
Required:True
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
Required:True
Accept pipeline input:True
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

System.Guid

System.Uri

System.String

Outputs

System.Object