Error: AccountPendingMigrationToSrp The specified account is pending migration to SRP.

Rupali Bhore 0 Reputation points
2024-06-27T07:59:51.64+00:00

Need to upgrade general purpose V1 storage account to V2 but getting this error, Tried powershell command to stop the migration but no luck, please guide me.
*
Move-AzureStorageAccount -Abort -StorageAccountName "name"* : Tried command

User's image

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,854 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nehruji R 3,971 Reputation points Microsoft Vendor
    2024-06-27T10:28:41.02+00:00

    Hello Rupali Bhore,

    Greetings! Welcome to Microsoft Q&A Platform.

    I understand that you’re encountering issues with Azure PowerShell commands related to a storage account pending migration to SRP (Storage Resource Provider). The error messages indicate that there’s a problem with the migration process.

    Check if you have the below following in your storage account which is not supported in v2 storage account, and which may cause the failure in migration.

    Your storage account might be configured to use features that aren't yet supported in Data Lake Storage Gen2 enabled accounts. If your account is using such features, the upgrade will not pass the validation step. Review the Blob Storage feature support in Azure Storage accounts article to identify unsupported features. If you're using any such features in your account, disable them before you begin the upgrade.

    The following features are supported for Data Lake Storage Gen2 accounts, but are not supported by the upgrade process:

    • Blob snapshots
    • Encryption scopes
    • Immutable storage
    • Last access time tracking for lifecycle management
    • Soft delete for blobs
    • Soft delete for containers

    If your storage account has such features enabled, you must disable them before performing the upgrade. If you want to resume using the features after the upgrade is complete, re-enable them.

    In some cases, you will have to allow time for clean-up operations after a feature is disabled before upgrading. One example is the blob soft delete feature. You must disable blob soft delete and then allow all soft-delete blobs to expire before you can upgrade the account.

    Also, you cannot upgrade a storage account to Data Lake Storage Gen2 that has ever had the change feed feature enabled. Simply disabling change feed will not allow you to perform an upgrade. To convert such an account to Data Lake Storage Gen2, you must perform a manual migration. For more information about manually migrating a storage account, see Move an Azure Storage account to another region. https://video2.skills-academy.com/en-us/azure/storage/common/storage-account-overview#migrate-a-storage-account

    If you’re certain that you want to abort the migration process and restart, you can use the Move-AzureStorageAccount cmdlet with the -Abort parameter. However, it’s important to note that the AzureRM module will be retired, and it’s recommended to use the Az module instead. Since you’re using PowerShell, you should use the Az module commands. To abort the migration, you might need to use the Move-AzStorageAccount cmdlet with the -Abort parameter. If this cmdlet is not recognized, ensure that you have the latest version of the Az module installed.

    Make sure you’re working within the correct Azure subscription context.

    Similar SO thread for reference - https://stackoverflow.com/questions/72360137/getting-accountpendingmigrationtosrp-the-specified-account-is-pending-migration, https://video2.skills-academy.com/en-us/answers/questions/1499834/azure-storage-account-pending-migration-prevents-d

    Hope this answer helps! Please let us know if you have any further queries. I’m happy to assist you further.


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments