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'.
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
icon at the top right.
- Select Manage Account.
- In the Azure Databricks service, click Azure Delete
and then OK.
You also could get the Azure Databricks code demo from this document.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With