How to delete azure databricks resource group? No permission to delete the deny assignments

woodymoo 311 Reputation points
2025-01-12T23:07:37.0866667+00:00

User's image

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,303 questions
0 comments No comments
{count} votes

Accepted answer
  1. Shikha Ghildiyal 2,170 Reputation points Microsoft Employee
    2025-01-13T05:10:24.5466667+00:00

    Hi woodymoo

    Thanks for reaching out to Microsoft Q&A.

    Before going to delete the managed resource group let's understand some concepts associated with Azure Databricks Workspace.

    What is Managed Resource Group?

    This resource group holds all the resources that are required by the managed application. For example, this resource group contains the virtual machines, storage accounts, and virtual networks for the solution. The customer has limited access to this resource group because the customer doesn't manage the individual resources for the managed application.

    Is it possible to delete the Managed Resource Group?

    When we create a Azure Databricks workspace, by design it will automatically create Databricks Managed resource Group. The managed resource group must exist as this is where your cluster(s) will be created. To ensure that nothing breaks them, they are placed in a separate resource group (managed resource group) that has a super lock on it so you cannot modify anything in it.

    What happens if you try to delete the Managed Resource Group?

    If you are trying to delete the Managed Resource Group - you will experience the error message as shown below, because by default every managed resource group has a DenyAssignment on the resource group which prevents manually deletion by any user.

    User's image

    How to delete the managed resource group associated with Azure Databricks Workspace?

    In order to delete this managed resource group, First you need to delete Azure Databricks workspace that is associated with it. Then as part of the process even the Azure Databricks Managed resource Group gets deleted.

    You may follow the below steps to delete the managed resource group associated with Azure Databricks.

    Step1: Identify the associated Azure Databricks workspace with managed resource group.

    Note: To identify the associated Azure Databricks workspace => Open managed resource group and you will find the associated Azure Databricks workspaces shown as Managed By : DatabricksworkspaceName User's image

    Step2: Click on the Managed By : DatabricksworkspaceNameand then delete the Azure Databricks workspace. Note: By deleting associated Azure Databricks workspace, it will automatically deletes the managed resource group.

    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.