Hello Dhivya S,
Greetings! Welcome to Microsoft Q&A Platform.
I understand that you are encountering issues when migrating your classic storage accounts to Azure Resource Manager Storage account with error status":409,"{"error":"code":"OperationFailed","message"A"The operation 'XXXXXXXXXXX failed: 'The server encountered an internal error." while preparing migration.
If you are facing issues with the Azure backend, you can try the following steps to migrate your Classic Storage account to ARM:
- Use the Azure Storage Explorer tool to copy the data from the Classic Storage account to a new ARM Storage account. You can download the Azure Storage Explorer tool from the following link: https://azure.microsoft.com/en-us/features/storage-explorer/
- Once you have copied the data to the new ARM Storage account, you can update your application to use the new ARM Storage account.
- Classic storage accounts may contain classic (unmanaged) disks, virtual machine images, and operating system (OS) images. To migrate the account, you will need to delete these artifacts first. If you do not delete classic disk artifacts first, the migration may fail. After deleting the disk artifacts, you can proceed with the migration. Please check to see if this is the case and delete them then retry the migration. The commands to find these resources are in the section here. After the migration, ensure your applications are updated to use the Azure Resource Manager APIs.
This article catalogs the most common errors and mitigations during the migration of Classic to Azure Resource Manager migration.
Identify classic storage accounts in your subscription: You can do this via the Azure portal or PowerShell.
Step-by-Step process: https://learn.microsoft.com/en-us/azure/storage/common/classic-account-migrate?tabs=azure-powershell
Addition information: How to migrate your classic storage accounts to Azure Resource Manager, https://stackoverflow.com/questions/73057732/error-migrating-azure-classic-storage-to-arm,https://learn.microsoft.com/en-us/answers/questions/1489959/how-to-backup-or-recovery-classic-storage-account
In some cases, this is a transient error that goes away with a retry. If it continues to persist, contact Azure support as it needs investigation of platform logs.
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.