You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The process of migrating a classic storage account involves four steps:
50
45
51
-
---
46
+
1.**Validate**. During the Validation phase, Azure checks the storage account to ensure that it can be migrated.
47
+
1.**Prepare**. In the Prepare phase, Azure creates a new general-purpose v1 storage account and alerts you to any problems that may have occurred. The new account is created in a new resource group in the same region as your classic account.
52
48
53
-
## Migrate a classic storage account
49
+
At this point your classic storage account still exists. If there are any problems reported, you can correct them or abort the process.
50
+
51
+
1.**Check manually**. It's a good idea to make a manual check of the new storage account to make sure that the output is as you expect.
52
+
1.**Commit or abort**. If you are satisfied that the migration has been successful, then you can commit the migration. Committing the migration permanently deletes the classic storage account.
53
+
54
+
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.
55
+
56
+
For more information about the migration process, see [Understand storage account migration from the classic deployment model to Azure Resource Manager](classic-account-migration-process.md)
57
+
58
+
You can migrate a classic storage account to the Azure Resource Manager deployment model with the Azure portal or PowerShell.
59
+
60
+
# [Portal](#tab/azure-portal)
54
61
55
62
To migrate a classic storage account to the Azure Resource Manager deployment model with the Azure portal:
56
63
57
64
1. Navigate to your classic storage account in the Azure portal.
58
-
1. In the **Settings** section, click**Migrate to ARM**.
59
-
1.Click on**Validate** to determine migration feasibility.
65
+
1. In the **Settings** section, select**Migrate to ARM**.
66
+
1.Select**Validate** to determine migration feasibility.
60
67
61
68
:::image type="content" source="./media/classic-account-migrate/validate-storage-account.png" alt-text="Screenshot showing how to migrate your classic storage account to Azure Resource Manager." lightbox="./media/classic-account-migrate/validate-storage-account.png":::
62
69
63
-
1. After a successful validation, click on**Prepare** button to simulate the migration.
70
+
1. After a successful validation, select**Prepare** button to simulate the migration.
64
71
65
72
> [!IMPORTANT]
66
73
> There may be a delay of a few minutes after validation is complete before the Prepare button is enabled.
@@ -74,6 +81,58 @@ To migrate a classic storage account to the Azure Resource Manager deployment mo
74
81
1. If you're not satisfied with the results of the migration, select **Abort** to delete the new storage account and resource group. You can then address any problems and try again.
75
82
1. When you're ready to commit, type **yes** to confirm, then select **Commit** to complete the migration.
76
83
84
+
# [PowerShell](#tab/azure-powershell)
85
+
86
+
To migrate a classic storage account to the Azure Resource Manager deployment model with PowerShell, you'll need to use the Azure PowerShell Service Management module. To learn how to install this module, see [Install and configure the Azure PowerShell Service Management module](/powershell/azure/servicemanagement/install-azure-ps#checking-the-version-of-azure-powershell). The key steps are included here for convenience.
87
+
88
+
> [!NOTE]
89
+
> The cmdlets in the Azure Service Management module are for managing legacy Azure resources that use Service Management APIs, including classic storage accounts. This module includes the commands needed to migrate a classic storage account to Azure Resource Manager.
90
+
>
91
+
> To manage Azure Resource Manager resources, we recommend that you use the Az PowerShell module. The Az module replaces the deprecated AzureRM module. For more information about moving from the AzureRM module to the Az module, see [Migrate Azure PowerShell scripts from AzureRM to Az](/powershell/azure/migrate-from-azurerm-to-az).
92
+
93
+
First, install PowerShellGet if you do not already have it installed. For more information on how to install PowerShellGet, see [Installing PowerShellGet](/powershell/scripting/gallery/installing-psget#installing-the-latest-version-of-powershellget). After you install PowerShellGet, close and reopen the PowerShell console.
94
+
95
+
Next, install the Azure Service Management module. If you also have the AzureRM module installed, you'll need to include the `-AllowClobber` parameter, as described in [Step 2: Install Azure PowerShell](/powershell/azure/servicemanagement/install-azure-ps#step-2-install-azure-powershell). After the installation is complete, import the Azure Service Management module.
96
+
97
+
```azurepowershell
98
+
Install-Module -Name Azure -AllowClobber
99
+
Import-Module -Name Azure
100
+
```
101
+
102
+
Log into your account by running [Add-AzureAccount](/powershell/module/servicemanagement/azure/add-azureaccount). Then call [Select-AzureSubscription](/powershell/module/servicemanagement/azure/select-azuresubscription) to set your current subscription. Remember to replace the placeholder values in brackets with your subscription name:
To validate that the account is ready for migration, call the [Move-AzureStorageAccount](/powershell/module/servicemanagement/azure/move-azurestorageaccount) command. Remember to replace the placeholder values in brackets with the name of your classic storage account:
Check the configuration for the prepared storage account with either Azure PowerShell or the Azure portal. If you're not ready for migration, use the following command to revert your account to its previous state:
### Locate and delete disk artifacts in a classic account
78
137
79
138
Classic storage accounts may contain classic (unmanaged) disks, virtual machine images, and operating system (OS) images. To migrate the account, you may need to delete these artifacts first.
Copy file name to clipboardExpand all lines: articles/storage/common/classic-account-migration-process.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ There are four steps to the migration process, as shown in the following diagram
51
51
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.
52
52
53
53
> [!NOTE]
54
-
> 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.
54
+
> 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.
55
55
56
56
### Validate
57
57
@@ -98,7 +98,7 @@ To revert your changes to the classic deployment model, you can choose to abort
98
98
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. Your data is now available only in the newly migrated account in the Resource Manager deployment model.
99
99
100
100
> [!NOTE]
101
-
> 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)
101
+
> 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).
0 commit comments