Storage Accounts - Get Customer Initiated Migration
Gets the status of the ongoing migration for the specified storage account.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/accountMigrations/default?api-version=2024-01-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
account
|
path | True |
string minLength: 3maxLength: 24 pattern: ^[a-z0-9]+$ |
The 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. |
migration
|
path | True | pattern: ^[a-z][a-z0-9]*$ |
The name of the Storage Account Migration. It should always be 'default' |
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+$ |
The name of the resource group within the user's subscription. The name is case insensitive. |
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK -- Get the details of the ongoing or completed migration successfully. |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Storage |
Storage |
StorageAccountGetMigrationFailed
Sample request
Sample response
{
"id": "/subscriptions/{subscription-id}/resourceGroups/resource-group-name/providers/Microsoft.Storage/storageAccounts/accountname/accountMigrations/default",
"name": "default",
"type": "Microsoft.Storage/storageAccounts/accountMigrations",
"properties": {
"targetSkuName": "Standard_ZRS",
"migrationStatus": "Failed",
"migrationFailedReason": "ZrsNotSupportedForAccountWithArchiveData",
"migrationFailedDetailedReason": "ZRS is not supported for accounts with archive data."
}
}
StorageAccountGetMigrationInProgress
Sample request
Sample response
{
"id": "/subscriptions/{subscription-id}/resourceGroups/resource-group-name/providers/Microsoft.Storage/storageAccounts/accountname/accountMigrations/default",
"name": "default",
"type": "Microsoft.Storage/storageAccounts/accountMigrations",
"properties": {
"targetSkuName": "Standard_ZRS",
"migrationStatus": "InProgress"
}
}
Definitions
Name | Description |
---|---|
Error |
An error response from the storage resource provider. |
Error |
Error response body contract. |
Migration |
The name of the Storage Account Migration. It should always be 'default' |
migration |
Current status of migration |
Sku |
The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called accountType. |
Storage |
The parameters or status associated with an ongoing or enqueued storage account migration in order to update its current SKU or region. |
ErrorResponse
An error response from the storage resource provider.
Name | Type | Description |
---|---|---|
error |
Azure Storage Resource Provider error response body. |
ErrorResponseBody
Error response body contract.
Name | Type | Description |
---|---|---|
code |
string |
An identifier for the error. Codes are invariant and are intended to be consumed programmatically. |
message |
string |
A message describing the error, intended to be suitable for display in a user interface. |
MigrationName
The name of the Storage Account Migration. It should always be 'default'
Value | Description |
---|---|
default |
migrationStatus
Current status of migration
Value | Description |
---|---|
Complete | |
Failed | |
InProgress | |
Invalid | |
SubmittedForConversion |
SkuName
The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called accountType.
Value | Description |
---|---|
PremiumV2_LRS | |
PremiumV2_ZRS | |
Premium_LRS | |
Premium_ZRS | |
StandardV2_GRS | |
StandardV2_GZRS | |
StandardV2_LRS | |
StandardV2_ZRS | |
Standard_GRS | |
Standard_GZRS | |
Standard_LRS | |
Standard_RAGRS | |
Standard_RAGZRS | |
Standard_ZRS |
StorageAccountMigration
The parameters or status associated with an ongoing or enqueued storage account migration in order to update its current SKU or region.
Name | Type | Description |
---|---|---|
id |
string |
Migration Resource Id |
name |
string |
current value is 'default' for customer initiated migration |
properties.migrationFailedDetailedReason |
string |
Reason for migration failure |
properties.migrationFailedReason |
string |
Error code for migration failure |
properties.migrationStatus |
Current status of migration |
|
properties.targetSkuName |
Target sku name for the account |
|
type |
string |
SrpAccountMigrationType in ARM contract which is 'accountMigrations' |