Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I delete Azure Databricks resource group?

I tried following the Quickstart: Run a Spark job on Azure Databricks using the Azure portal as described at: https://learn.microsoft.com/en-us/azure/azure-databricks/quickstart-create-databricks-workspace-portal

But when I later try to delete resource group for that databricks resource I got the following two errors:

Delete resource group databricks-rg-mydatabricksws-5mlo3dio7wef2 failed The resource group databricks-rg-mydatabricksws-5mlo3dio7wef2 is locked and can't be deleted. Click here to manage locks for this resource group.

UnauthorizedApplicationId "The management lock ... is owned by system application"

See: https://aka.ms/arm-lock

Lock Deletion Failure The lock named mydatabricksws was unable to be deleted for the following reasons: {"errorThrown":"Unavailable in batch","jqXHR":{"responseJSON":{"error":{"code":"UnauthorizedApplicationId","message":"The management lock 'mydatabricksws' is owned by system application(s) 'd9327919-6775-4843-9037-3fb0fb0473cb'.

like image 795
user2942693 Avatar asked Oct 15 '25 06:10

user2942693


1 Answers

I also encountered the same problem before. I get the answer from this link.

  • Log into your Azure Databricks workspace as the account owner (the user who created the service), and click the user profile Account imageicon at the top right.

enter image description here

  • Select Manage Account.

enter image description here

  • In the Azure Databricks service, click Azure Delete image and then OK.

You also could get the Azure Databricks code demo from this document.

like image 115
Tom Sun - MSFT Avatar answered Oct 18 '25 02:10

Tom Sun - MSFT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!