Skip to content

Commit ad1faa8

Browse files
committed
migration deep dive
1 parent a9baf80 commit ad1faa8

File tree

1 file changed

+55
-4
lines changed

1 file changed

+55
-4
lines changed

articles/storage/common/classic-account-migration-deep-dive.md

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,13 @@ The data plane is unaffected by migration from the classic deployment model to t
3434

3535
You can migrate your classic storage account with the Azure portal, PowerShell, or Azure CLI. To learn how to migrate your account, see [Migrate your classic storage accounts to Azure Resource Manager](storage-account-migrate-classic.md).
3636

37-
### Before the migration
38-
3937
Before you start the migration:
4038

4139
- Ensure that the storage accounts that you want to migrate don't use any unsupported features or configurations. Usually the platform detects these issues and generates an error.
4240
- Plan your migration during non-business hours to accommodate for any unexpected failures that might happen during migration.
4341
- Evaluate any Azure role-based access control (Azure RBAC) roles that are configured on the classic storage account, and plan for after the migration is complete. ???is this even possible with classic accts?
4442
- If possible, halt write operations to the storage account for the duration of the migration.
4543

46-
### During the migration
47-
4844
There are four steps to the migration process, as shown in the following diagram:
4945

5046
:::image type="content" source="media/classic-account-migration-deep-dive/migration-workflow.png" alt-text="Screenshot showing the account migration workflow.":::
@@ -59,6 +55,61 @@ There are four steps to the migration process, as shown in the following diagram
5955

6056
If there are any problems with the migration, then you can abort the migration at this point. If you choose to abort, the new resource group and new storage account are deleted. Your classic account remains available. You can address any problems and attempt the migration again.
6157

58+
> [!NOTE]
59+
> The operations described in the following sections are all idempotent. If you have a problem other than an unsupported feature or a configuration error, retry the prepare, abort, or commit operation. Azure tries the action again.
60+
61+
### Validate
62+
63+
The Validation step is the first step in the migration process. The goal of this step is to analyze the state of the resources that you want to migrate from the classic deployment model. The Validation step evaluates whether the resources are capable of migration (success or failure). If the the classic storage account is not capable of migration, Azure lists the reasons why.
64+
65+
#### Checks not done during the Validation step
66+
67+
The Validation step analyzes the state of resources in the classic deployment model. It checks for failures and unsupported scenarios due to different configurations of the storage account in the classic deployment model.
68+
69+
It's not possible to check for all issues that the Azure Resource Manager stack might impose on the storage account during migration. These issues are only checked when the resources undergo transformation in the next step of migration (the Prepare step). The following table lists all the issues not checked in the Validation step:
70+
71+
???Charles - do we have anything here/need this section or a table like VMs have???
72+
73+
### Prepare
74+
75+
The Prepare step is the second step in the migration process. The goal of this step is to simulate the transformation of the storage account from the classic deployment model to the Azure Resource Manager deployment model. The Prepare step also enables you to compare the storage account in the classic deployment model to the migrated storage account in Azure Resource Manager.
76+
77+
> [!IMPORTANT]
78+
> Your classic storage account is not modified during this step. It's a safe step to run if you're trying out migration.
79+
80+
If the storage account is not capable of migration, Azure stops the migration process and lists the reason why the Prepare step failed.
81+
82+
If the storage account is capable of migration, Azure blocks management plane operations for the storage account under migration. For example, you cannot regenerate the storage account keys while the Prepare phase is underway ???true? and what about data operations - not blocked at this step???. Azure then creates a new resource group ???in the same region??? as the classic storage account. The name of the new resource group follows the pattern `<classic-account-name>-Migrated`.
83+
84+
> [!NOTE]
85+
> It is not possible to select the name of the resource group that is created for a migrated storage account. After migration is complete, however, you can use the move feature of Azure Resource Manager to move your migrated storage account to a different resource group. For more information, see [Move resources to new resource group or subscription](../azure-resource-manager/management/move-resource-group-and-subscription.md).
86+
87+
Finally, Azure migrates the storage account and all of its data and configurations to a new storage account in Azure Resource Manager in the same region as the classic storage account. At this point your classic storage account still exists and contains all of your data. If there are any problems reported during the Prepare step, you can correct them or abort the process.
88+
89+
### Check manually
90+
91+
After the Prepare step is complete, both accounts exist in your subscription, so that you can review and compare the classic storage account in the pre-migration state and in Azure Resource Manager. For example, you can examine the new account via the Azure portal to ensure that the storage account's configuration is as expected.
92+
93+
There is no set window of time before which you need to commit or abort the migration. You can take as much time as you need for the Check phase. However, management plane operations are blocked for the classic storage account (???what about new account?) until you either abort or commit.
94+
95+
### Abort
96+
97+
To revert your changes to the classic deployment model, you can choose to abort the migration. Aborting the migration deletes the new storage account and new resource group.
98+
99+
???This operation deletes the Resource Manager metadata (created in the prepare step) for your resources.
100+
101+
> [!CAUTION]
102+
> You cannot choose to abort the migration after you have committed the migration. Make sure that you have checked your migrated storage account carefully for errors before you commit.
103+
104+
### Commit
105+
106+
After you are satisfied that your classic storage account has been migrated successfully, you can commit the migration. Committing the migration deletes your classic storage account. You data is now available only in the newly migrated account in the Resource Manager deployment model.
107+
108+
???The migrated storage account can be managed only in the new portal. - do we want to say this???
109+
110+
> [!NOTE]
111+
> Committing the migration is an idempotent operation. If it fails, retry the operation. If it continues to fail, create a support ticket or ask a question on [Microsoft Q&A](/answers/index.html)
112+
62113
### After the migration
63114

64115
After the migration is complete, your new storage account is a general-purpose v1 storage account. We recommend upgrading to a general-purpose v2 account to take advantage of the newest features that Azure Storage has to offer for security, data protection, lifecycle management, and more. To learn how to upgrade to a general-purpose v2 storage account, see [Upgrade to a general-purpose v2 storage account](storage-account-upgrade.md).

0 commit comments

Comments
 (0)