Skip to main content

move_collections

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

Overview

Namemove_collections
TypeResource
Idazure.resource_mover.move_collections

Fields

NameDatatypeDescription
idtextFully qualified resource Id for the resource.
nametextThe name of the resource
errorstextfield from the properties object
etagtextThe etag of the resource.
identitytextDefines the MSI properties of the Move Collection.
locationtextThe geo-location where the resource lives.
moveCollectionNametextfield from the properties object
move_regiontextfield from the properties object
move_typetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
source_regiontextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
target_regiontextfield from the properties object
typetextThe type of the resource.
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmoveCollectionName, resourceGroupName, subscriptionIdGets the move collection.
createINSERTmoveCollectionName, resourceGroupName, subscriptionIdCreates or updates a move collection.
deleteDELETEmoveCollectionName, resourceGroupName, subscriptionIdDeletes a move collection.
updateUPDATEmoveCollectionName, resourceGroupName, subscriptionIdUpdates a move collection.
bulk_removeEXECmoveCollectionName, resourceGroupName, subscriptionIdRemoves the set of move resources included in the request body from move collection. The orchestration is done by service. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
commitEXECmoveCollectionName, resourceGroupName, subscriptionId, data__moveResourcesCommits the set of resources included in the request body. The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
discardEXECmoveCollectionName, resourceGroupName, subscriptionId, data__moveResourcesDiscards the set of resources included in the request body. The discard operation is triggered on the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion the moveResource moveState do a transition to MovePending. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
initiate_moveEXECmoveCollectionName, resourceGroupName, subscriptionId, data__moveResourcesMoves the set of resources included in the request body. The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
prepareEXECmoveCollectionName, resourceGroupName, subscriptionId, data__moveResourcesInitiates prepare for the set of resources included in the request body. The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
resolve_dependenciesEXECmoveCollectionName, resourceGroupName, subscriptionIdComputes, resolves and validate the dependencies of the moveResources in the move collection.

SELECT examples

Gets the move collection.

SELECT
id,
name,
errors,
etag,
identity,
location,
moveCollectionName,
move_region,
move_type,
provisioning_state,
resourceGroupName,
source_region,
subscriptionId,
system_data,
tags,
target_region,
type,
version
FROM azure.resource_mover.vw_move_collections
WHERE moveCollectionName = '{{ moveCollectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new move_collections resource.

/*+ create */
INSERT INTO azure.resource_mover.move_collections (
moveCollectionName,
resourceGroupName,
subscriptionId,
tags,
location,
identity,
properties
)
SELECT
'{{ moveCollectionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ identity }}',
'{{ properties }}'
;

UPDATE example

Updates a move_collections resource.

/*+ update */
UPDATE azure.resource_mover.move_collections
SET
tags = '{{ tags }}',
identity = '{{ identity }}'
WHERE
moveCollectionName = '{{ moveCollectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified move_collections resource.

/*+ delete */
DELETE FROM azure.resource_mover.move_collections
WHERE moveCollectionName = '{{ moveCollectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';