i have an error deleting original Storage Account after migration to ARM from Classic

Domenico Rossi 0 Reputation points
2024-06-27T16:32:25.6133333+00:00

this is the error , but the storage account is empty:

Error details

portalvhdsrr94bm6h1yks: Unable to delete storage account 'portalvhdsrr94bm6h1yks': 'Storage account portalvhdsrr94bm6h1yks has some active image(s) and/or disk(s), e.g. AS-SERVERWEB-AS-EVOTERMINAL-0-201505041150460700. Ensure these image(s) and/or disk(s) are removed before deleting this storage account.'. (Code: StorageAccountOperationFailed)

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. KarishmaTiwari-MSFT 18,667 Reputation points Microsoft Employee
    2024-06-27T22:38:43.23+00:00

    @Domenico Rossi Thanks for posting your query on Microsoft Q&A.

    The error message indicates that the storage account has some active image(s) and/or disk(s), which prevents deletion.

    Resolution steps:

    #1To remove classic Disks, follow these steps on the Azure portal:

    -Navigate to the Azure portal.

    -Navigate to the Disks(classic).

    -Click the Disks tab.

    Screenshot shows the Azure portal with Disks (classic) selected. A classic disk name and storage account is shown.

    -Select your data disk, then click Delete Disk.

    Screenshot shows the Azure portal with Disks (classic) selected. A data disk is selected and the Delete option is highlighted.

    -Retry the Delete operation that previously failed.

    #2. The disk lease associated with the page blob (.vhd) also prevents deletion.

    Go to the Azure portal, navigate to OS images (classic), and delete the image associated with the storage account.

    This action will break the disk lease, allowing you to delete the page blob itself.

    A storage account or container can't be deleted if it has a single Disk.

    Additional reads:

    https://video2.skills-academy.com/en-us/troubleshoot/azure/virtual-machines/windows/storage-classic-cannot-delete-storage-account-container-vhd

    https://stackoverflow.com/questions/10969012/how-do-i-delete-an-azure-storage-account-containing-a-leased-blob


    Try the suggestions above and please let me know in the "comments" and I would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase the visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image