Skip to main content

move_resources

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

Overview

Namemove_resources
TypeResource
Idazure.resource_mover.move_resources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource Id for the resource.
namestringThe name of the resource.
dependsOnarrayGets or sets the move resource dependencies.
dependsOnOverridesarrayGets or sets the move resource dependencies overrides.
errorsobjectDefines the move resource errors.
existingTargetIdstringGets or sets the existing target ARM Id of the resource.
isResolveRequiredbooleanGets a value indicating whether the resolve action is required over the move collection.
moveStatusobjectDefines the move resource status.
provisioningStatestringDefines the provisioning states. Known values are: "Succeeded", "Updating", "Creating", and "Failed".
resourceSettingsobjectGets or sets the resource settings.
sourceIdstringGets or sets the Source ARM Id of the resource. Required.
sourceResourceSettingsobjectGets or sets the source resource settings.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
targetIdstringGets or sets the Target ARM Id of the resource.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, move_collection_name, move_resource_name, subscription_idGets the Move Resource.
listselectresource_group_name, move_collection_name, subscription_id$filterLists the Move Resources in the move collection.
createinsertresource_group_name, move_collection_name, move_resource_name, subscription_idCreates or updates a Move Resource in the move collection.
deletedeleteresource_group_name, move_collection_name, move_resource_name, subscription_idDeletes a Move Resource from the move collection.

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
move_collection_namestringThe Move Collection Name. Required.
move_resource_namestringThe Move Resource Name. Required.
resource_group_namestringThe Resource Group Name. Required.
subscription_idstring
$filterstringThe filter to apply on the operation. For example, you can use $filter=Properties/ProvisioningState eq 'Succeeded'. Default value is None.

SELECT examples

Gets the Move Resource.

SELECT
id,
name,
dependsOn,
dependsOnOverrides,
errors,
existingTargetId,
isResolveRequired,
moveStatus,
provisioningState,
resourceSettings,
sourceId,
sourceResourceSettings,
systemData,
targetId,
type
FROM azure.resource_mover.move_resources
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND move_collection_name = '{{ move_collection_name }}' -- required
AND move_resource_name = '{{ move_resource_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a Move Resource in the move collection.

INSERT INTO azure.resource_mover.move_resources (
properties,
resource_group_name,
move_collection_name,
move_resource_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ move_collection_name }}',
'{{ move_resource_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

DELETE examples

Deletes a Move Resource from the move collection.

DELETE FROM azure.resource_mover.move_resources
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND move_collection_name = '{{ move_collection_name }}' --required
AND move_resource_name = '{{ move_resource_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;