Skip to main content

move_instances

Creates, updates, deletes, gets or lists a move_instances resource.

Overview

Namemove_instances
TypeResource
Idazure.service_fabric_dataplane.move_instances

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
move_instanceexecservice_id, partition_id, endpointCurrentNodeName, NewNodeName, IgnoreConstraints, timeoutMoves the instance of a partition of a stateless service. 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 in that case 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

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme). (default: )
partition_idstringThe identity of the partition.
service_idstringThe identity of the service. This ID is typically the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "" character. For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be "myappapp1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions.
CurrentNodeNamestringThe name of the source node for instance move. If not specified, instance is moved from a random node.
IgnoreConstraintsbooleanIgnore constraints when moving a replica or instance. If this parameter is not specified, all constraints are honored.
NewNodeNamestringThe name of the target node for secondary replica or instance move. If not specified, replica or instance is moved to a random node.
timeoutinteger (int64)The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is willing to wait for the requested operation to complete. The default value for this parameter is 60 seconds.

Lifecycle Methods

Moves the instance of a partition of a stateless service. 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 in that case 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.

EXEC azure.service_fabric_dataplane.move_instances.move_instance 
@service_id='{{ service_id }}' --required,
@partition_id='{{ partition_id }}' --required,
@endpoint='{{ endpoint }}' --required,
@CurrentNodeName='{{ CurrentNodeName }}',
@NewNodeName='{{ NewNodeName }}',
@IgnoreConstraints={{ IgnoreConstraints }},
@timeout='{{ timeout }}'
;