Skip to main content

storage_movers

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

Overview

Namestorage_movers
TypeResource
Idazure.storage_mover.storage_movers

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
storageMoverNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, storageMoverName, subscriptionIdGets a Storage Mover resource.
listSELECTresourceGroupName, subscriptionIdLists all Storage Movers in a resource group.
list_by_subscriptionSELECTsubscriptionIdLists all Storage Movers in a subscription.
create_or_updateINSERTresourceGroupName, storageMoverName, subscriptionIdCreates or updates a top-level Storage Mover resource.
deleteDELETEresourceGroupName, storageMoverName, subscriptionIdDeletes a Storage Mover resource.
updateUPDATEresourceGroupName, storageMoverName, subscriptionIdUpdates properties for a Storage Mover resource. Properties not specified in the request body will be unchanged.

SELECT examples

Lists all Storage Movers in a subscription.

SELECT
description,
location,
provisioning_state,
resourceGroupName,
storageMoverName,
subscriptionId,
system_data,
tags
FROM azure.storage_mover.vw_storage_movers
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.storage_mover.storage_movers (
resourceGroupName,
storageMoverName,
subscriptionId,
properties,
systemData,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ storageMoverName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ systemData }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a storage_movers resource.

/*+ update */
UPDATE azure.storage_mover.storage_movers
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND storageMoverName = '{{ storageMoverName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified storage_movers resource.

/*+ delete */
DELETE FROM azure.storage_mover.storage_movers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND storageMoverName = '{{ storageMoverName }}'
AND subscriptionId = '{{ subscriptionId }}';