Invoke-​Service​Fabric​Partition​Data​Loss

DEPRECATED . Please use the Start-ServiceFabricPartitionDataLoss (./Start-ServiceFabricPartitionDataLoss.md).

Syntax

Invoke-ServiceFabricPartitionDataLoss
      -DataLossMode <DataLossMode>
      -PartitionId <Guid>
      -ServiceName <Uri>
      [-TimeoutSec <Int32>]
      [<CommonParameters>]
Invoke-ServiceFabricPartitionDataLoss
      -DataLossMode <DataLossMode>
      -PartitionKey <String>
      [-PartitionKindNamed]
      -ServiceName <Uri>
      [-TimeoutSec <Int32>]
      [<CommonParameters>]
Invoke-ServiceFabricPartitionDataLoss
      -DataLossMode <DataLossMode>
      -PartitionKey <String>
      [-PartitionKindUniformInt64]
      -ServiceName <Uri>
      [-TimeoutSec <Int32>]
      [<CommonParameters>]
Invoke-ServiceFabricPartitionDataLoss
      -DataLossMode <DataLossMode>
      [-PartitionKindSingleton]
      -ServiceName <Uri>
      [-TimeoutSec <Int32>]
      [<CommonParameters>]

Description

The Invoke-ServiceFabricPartitionDataLoss cmdlet induces data loss in a specified Service Fabric partition to test the data recovery path for a service.

Required Parameters

-DataLossMode

Specifies the data loss mode for the operation. The acceptable values for this parameter are:

  • PartialDataLoss
  • FullDataLoss
Type:DataLossMode
Parameter Sets:Invalid, PartialDataLoss, FullDataLoss
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PartitionId

Specifies the ID of the partition on which to invoke the data loss.

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

Specifies the key of the partition on which to invoke the test.

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

Indicates that this cmdlet invokes data loss on a named partition.

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

Indicates that this cmdlet invokes data loss on a singleton partition.

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

Indicates that this cmdlet invokes data loss on a UniformInt64 partitioned service.

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

Specifies the name of the service to test.

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

Inputs

System.Guid

Represents the ID of a Service Fabric partition.

Inputs

System.Uri

Represents the name of a Service Fabric service.

Outputs

System.Object

This cmdlet returns a System.Fabric.Testability.InvokeDataLossResult object that represents the operation result.