Deleting Azure's Resource Group

Hnin Ei Phyu 0 Reputation points
2024-02-21T02:49:56.5733333+00:00

Hi! I have a question regarding to deleting the resource group, which has a vault and "Locked Immutable Recovery Services" state. I cannot delete this file and I have no any idea how to solve it. Could you please suggest me. Cheers, Hnin

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,175 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,479 questions
Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
786 questions
Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
672 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dr. S. Gomathi 650 Reputation points MVP
    2024-02-21T03:17:08.2233333+00:00

    Hi Hnin, If you're having trouble deleting an Azure Resource Group with a vault in "Locked Immutable Recovery Services" state, follow these steps: Check Dependencies: Make sure there are no linked resources like virtual machines preventing deletion. Unlock Recovery Services Vault: Disable any retention policies or immutability settings in the vault. Review Azure Policies: Check for policies restricting resource deletion and adjust or remove them. Remove Locks: Remove any locks applied to the vault or resource group using the Azure Portal or PowerShell. Use PowerShell: Try using Remove-AzResourceGroup -Name YourResourceGroupName -Force in PowerShell. Contact Azure Support: If all else fails, reach out to Azure Support for assistance.

    Always be cautious and ensure backups before deleting resources. If the answer helped, or pointed you in the right direction, please click accept answer or please share more information to help you better.

    0 comments No comments