Azure Databricks

Shyamprasad Gundeti 25 Reputation points
2023-07-19T07:04:16.15+00:00

Recently created a workspace in Databricks for just a trial. But now want to delete it because it not required, but after deleted also it still shows access deny permission due to databrick during onboarding on UI.

There is any solution or can support guide us to remove all the auto generated resources of databricks.

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

Accepted answer
  1. PRADEEPCHEEKATLA 90,661 Reputation points Moderator
    2023-07-19T10:14:16.17+00:00

    @Shyamprasad Gundeti - Thanks for the question and using MS Q&A platform.

    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

    As per the repro, I tried to delete the managed resource group named (databricks-rg-cheprademo-dabcjoqzbfpi2) as experienced the below error message:

    ADB-MRG-Delete

    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 automatically deletes the managed resource group.

    ADB-MRG-Deleting

    We had successfully deleted the managed resource group by following the above steps.

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    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.