Move-ServiceFabricInstance

Moves the instance of a partition of a stateless service.

Syntax

Move-ServiceFabricInstance
    [-CurrentInstanceNodeName <String>]
    [-NewInstanceNodeName <String>]
    [-IgnoreConstraints <Boolean>]
    -PartitionId <Guid>
    -ServiceName <Uri>
    [-TimeoutSec <Int32>]
    [<CommonParameters>]
Move-ServiceFabricInstance
    [-CurrentInstanceNodeName <String>]
    [-NewInstanceNodeName <String>]
    [-IgnoreConstraints <Boolean>]
    -ServiceName <Uri>
    [-TimeoutSec <Int32>]
    [<CommonParameters>]
Move-ServiceFabricInstance
    [-CurrentInstanceNodeName <String>]
    [-NewInstanceNodeName <String>]
    [-IgnoreConstraints <Boolean>]
    -ServiceName <Uri>
    [-PartitionKindSingleton]
    [-TimeoutSec <Int32>]
    [<CommonParameters>]
Move-ServiceFabricInstance
    [-CurrentInstanceNodeName <String>]
    [-NewInstanceNodeName <String>]
    [-IgnoreConstraints <Boolean>]
    -ServiceName <Uri>
    [-PartitionKindNamed]
    -PartitionKey <String>
    [-TimeoutSec <Int32>]
    [<CommonParameters>]
Move-ServiceFabricInstance
    [-CurrentInstanceNodeName <String>]
    [-NewInstanceNodeName <String>]
    [-IgnoreConstraints <Boolean>]
    -ServiceName <Uri>
    [-PartitionKindUniformInt64]
    -PartitionKey <String>
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Description

This command moves the instance of a partition of a stateless service, respecting all constraints. Partition id and service name must be specified to be able to move the instance. CurrentNodeName when specified identifies the instance that is moved. If not specified, random instance will be moved, New node name can be omitted, and the instance is moved to a random node. If IgnoreConstraints parameter is specified and set to true, then instance will be moved regardless of the constraints.

Parameters

-CurrentInstanceNodeName

The name of the source node for instance move. If not specified, instance is moved from a random node.

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

-IgnoreConstraints

Ignore constraints when moving a replica or instance. If this parameter is not specified, all constraints are honored.

Type:Boolean
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-NewInstanceNodeName

The name of the target node for secondary replica or instance move. If not specified, replica or instance is moved to a random node.

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

-PartitionId

Specifies the partition ID.

Type:Guid
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-PartitionKey

Specifies the partition key.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-PartitionKindNamed

Indicates that this cmdlet moves a named partition.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-PartitionKindSingleton

Indicates that this cmdlet moves a singleton partition.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-PartitionKindUniformInt64

Indicates that this cmdlet moves a UniformInt64 partition.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ServiceName

Name of the 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.Boolean

System.Guid

System.Uri

System.String

Outputs

System.Object