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

NameDatatypeDescription
idtextFully qualified resource Id for the resource.
nametextThe name of the resource
depends_ontextfield from the properties object
depends_on_overridestextfield from the properties object
errorstextfield from the properties object
existing_target_idtextfield from the properties object
is_resolve_requiredtextfield from the properties object
moveCollectionNametextfield from the properties object
moveResourceNametextfield from the properties object
move_statustextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_settingstextfield from the properties object
source_idtextfield from the properties object
source_resource_settingstextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
target_idtextfield from the properties object
typetextThe type of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTmoveCollectionName, moveResourceName, resourceGroupName, subscriptionIdGets the Move Resource.
listSELECTmoveCollectionName, resourceGroupName, subscriptionIdLists the Move Resources in the move collection.
createINSERTmoveCollectionName, moveResourceName, resourceGroupName, subscriptionIdCreates or updates a Move Resource in the move collection.
deleteDELETEmoveCollectionName, moveResourceName, resourceGroupName, subscriptionIdDeletes a Move Resource from the move collection.

SELECT examples

Lists the Move Resources in the move collection.

SELECT
id,
name,
depends_on,
depends_on_overrides,
errors,
existing_target_id,
is_resolve_required,
moveCollectionName,
moveResourceName,
move_status,
provisioning_state,
resourceGroupName,
resource_settings,
source_id,
source_resource_settings,
subscriptionId,
system_data,
target_id,
type
FROM azure.resource_mover.vw_move_resources
WHERE moveCollectionName = '{{ moveCollectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.resource_mover.move_resources (
moveCollectionName,
moveResourceName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ moveCollectionName }}',
'{{ moveResourceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified move_resources resource.

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