azurebackupProtectionLock is greyed out on storageaccount level.. what is the process to delete the lock

Rajesh Sura 0 Reputation points
2025-05-20T12:30:40.6233333+00:00

azurebackupProtectionLock is greyed out on storage account level.. what is the process to delete the lock..

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,542 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Stanislav Zhelyazkov 28,596 Reputation points MVP Volunteer Moderator
    2025-05-20T13:25:39.1033333+00:00

    Hi,

    You can remove the lock by disabling all backups on Azure File shares. The lock can also be deleted if you have the required permissions to delete resource locks in general but it is not recommended to delete the lock. The lock is created when Azure File Shares backup is configured towards Azure Site Recovery vault. More information on the lock

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

  2. Hari Babu Vattepally 3,345 Reputation points Microsoft External Staff Moderator
    2025-05-20T13:59:01.9433333+00:00

    Hi @Rajesh Sura,

    I understand that you're facing trouble with the azurebackupProtectionLock being greyed out on your storage account and want to delete it. I would recommend you to please follow the below work around.

    This lock usually shows up when backups are enabled on Azure File Shares. To remove it, disable all backups for any Azure File Shares tied to your storage account.

    Also, please make sure that you have the right permissions to delete resource locks. You typically need a role that allows you to manage locks in Azure.

    Then, please navigate to the Portal:

    • Goto your Storage Accounts
    • Find the "Locks" section under settings in the left side menu.
    • If backups are off and you have the permissions, you should be able to select and delete the lock.

    However, deleting the lock might not be recommended as it's there to prevent accidental deletions or changes. If it's safe for your scenario, go ahead, but be aware of the risks.

    Make sure to review the documentation linked in the original discussion for more context: Why is it recommended to enable lock on the storage account?

    If this doesn't fix it, could you give more details? Here are some follow-up questions that might help:

    1. Are you sure all backups for your Azure File Shares are disabled?
    2. Do you have the permissions to modify or delete resource locks?
    3. Have you tried using the Azure CLI or PowerShell, and what was the result?
    4. Are there any other locks or configurations on your storage account we should know about?

    Hope the above suggestion helps! Please let us know do you have any further queries.

    Please do consider to “Accept the answer” wherever the information provided helps you, this can be beneficial to other community members.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.