Skip to main content

accounts_customer_initiated_migrations

Creates, updates, deletes, gets or lists an accounts_customer_initiated_migrations resource.

Overview

Nameaccounts_customer_initiated_migrations
TypeResource
Idazure.storage.accounts_customer_initiated_migrations

Fields

The following fields are returned by SELECT queries:

OK -- Get the details of the ongoing or completed migration successfully.

NameDatatypeDescription
idstringMigration Resource Id
namestringcurrent value is 'default' for customer initiated migration
propertiesobjectThe properties of a storage account’s ongoing or enqueued migration. (x-ms-client-name: StorageAccountMigrationDetails)
typestringSrpAccountMigrationType in ARM contract which is 'accountMigrations'

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, accountName, migrationName, subscriptionIdGets the status of the ongoing migration for the specified storage account.

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
accountNamestringThe name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
migrationNamestringThe name of the Storage Account Migration. It should always be 'default'
resourceGroupNamestringThe name of the resource group within the user's subscription. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Gets the status of the ongoing migration for the specified storage account.

SELECT
id,
name,
properties,
type
FROM azure.storage.accounts_customer_initiated_migrations
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND migrationName = '{{ migrationName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;