|
| 1 | +--- |
| 2 | +title: How to migrate your classic storage accounts to Azure Resource Manager |
| 3 | +titleSuffix: Azure Storage |
| 4 | +description: Learn how to migrate your classic storage accounts to the Azure Resource Manager deployment model. All classic accounts must be migrated by August 31, 2024. |
| 5 | +services: storage |
| 6 | +author: tamram |
| 7 | + |
| 8 | +ms.service: storage |
| 9 | +ms.topic: how-to |
| 10 | +ms.date: 03/27/2023 |
| 11 | +ms.author: tamram |
| 12 | +ms.subservice: common |
| 13 | +--- |
| 14 | + |
| 15 | +# How to migrate your classic storage accounts to Azure Resource Manager |
| 16 | + |
| 17 | +Microsoft will retire classic storage accounts on August 31, 2024. To preserve the data in any classic storage accounts, you must migrate them to the Azure Resource Manager deployment model by that date. After you migrate your account, all of the benefits of the Azure Resource Manager deployment model will be available for that account. For more information about the deployment models, see [Resource Manager and classic deployment](../../azure-resource-manager/management/deployment-models.md). |
| 18 | + |
| 19 | +This article describes how to migrate your classic storage accounts to the Azure Resource Manager deployment model. For more information, see [Migrate your classic storage accounts to Azure Resource Manager by August 31, 2024](classic-account-migration-overview.md). |
| 20 | + |
| 21 | +## Identify classic storage accounts in your subscription |
| 22 | + |
| 23 | +# [Portal](#tab/azure-portal) |
| 24 | + |
| 25 | +To list classic storage accounts in your subscription with the Azure portal: |
| 26 | + |
| 27 | +1. Navigate to the list of your storage accounts in the Azure portal. |
| 28 | +1. Select **Add filter**. In the **Filter** dialog, set the **Filter** field to **Type** and the **Operator** field to **Equals**. Then set the **Value** field to **microsoft.classicstorage/storageaccounts**. |
| 29 | + |
| 30 | + :::image type="content" source="media/classic-account-migrate/classic-accounts-list-portal.png" alt-text="Screenshot showing how to list classic storage accounts in Azure portal." lightbox="media/classic-account-migrate/classic-accounts-list-portal.png"::: |
| 31 | + |
| 32 | +# [PowerShell](#tab/azure-powershell) |
| 33 | + |
| 34 | +To list classic storage accounts in your subscription with PowerShell, run the following command: |
| 35 | + |
| 36 | +```azurepowershell |
| 37 | +Get-AzResource -ResourceType Microsoft.ClassicStorage/storageAccounts |
| 38 | +``` |
| 39 | + |
| 40 | +# [Azure CLI](#tab/azure-cli) |
| 41 | + |
| 42 | +To list classic storage accounts in your subscription with Azure CLI, run the following command: |
| 43 | + |
| 44 | +```azurecli |
| 45 | +$ az resource list \ |
| 46 | + --resource-type Microsoft.ClassicStorage/storageAccounts \ |
| 47 | + --query "[].{resource_type:type, name:name}" \ |
| 48 | + --output table |
| 49 | +``` |
| 50 | + |
| 51 | +--- |
| 52 | + |
| 53 | +## Migrate a classic storage account |
| 54 | + |
| 55 | +To migrate a classic storage account to the Azure Resource Manager deployment model with the Azure portal: |
| 56 | + |
| 57 | +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. |
| 60 | + |
| 61 | + :::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 | + |
| 63 | +1. After a successful validation, click on **Prepare** button to simulate the migration. |
| 64 | + |
| 65 | + > [!IMPORTANT] |
| 66 | + > There may be a delay of a few minutes after validation is complete before the Prepare button is enabled. |
| 67 | +
|
| 68 | +1. If the Prepare step completes successfully, you'll see a link to the new resource group. Select that link to navigate to the new resource group. The migrated storage account appears under the **Resources** tab in the **Overview** page for the new resource group. |
| 69 | + |
| 70 | + At this point you can compare the configuration and data in the classic storage account to the newly migrated storage account. You'll see both in the list of storage accounts in the portal. Both the classic account and the migrated account have the same name. |
| 71 | + |
| 72 | + :::image type="content" source="media/classic-account-migrate/compare-classic-migrated-accounts.png" alt-text="Screenshot showing the results of the Prepare step in the Azure portal." lightbox="media/classic-account-migrate/compare-classic-migrated-accounts.png"::: |
| 73 | + |
| 74 | +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 | +1. When you're ready to commit, type **yes** to confirm, then select **Commit** to complete the migration. |
| 76 | + |
| 77 | +### Locate and delete disk artifacts in a classic account |
| 78 | + |
| 79 | +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. |
| 80 | + |
| 81 | +To delete disk artifacts from the Azure portal, follow these steps: |
| 82 | + |
| 83 | +1. Navigate to the Azure portal. |
| 84 | +1. In the **Search** bar at the top, search for **Disks (classic)**, **OS Images (classic)**, or **VM Images (classic)** to display classic disk artifacts. |
| 85 | +1. Locate the classic disk artifact to delete, and select it to view its properties. |
| 86 | +1. Select the **Delete** button to delete the disk artifact. |
| 87 | + |
| 88 | + :::image type="content" source="media/classic-account-migrate/delete-disk-artifacts-portal.png" alt-text="Screenshot showing how to delete classic disk artifacts in Azure portal." lightbox="media/classic-account-migrate/delete-disk-artifacts-portal.png"::: |
| 89 | + |
| 90 | +## See also |
| 91 | + |
| 92 | +- [Migrate your classic storage accounts to Azure Resource Manager by August 31, 2024](classic-account-migration-overview.md) |
| 93 | +- [Understand storage account migration from the classic deployment model to Azure Resource Manager](classic-account-migration-process.md) |
0 commit comments