microsoft / microsoft/AzureTRE

`make tre-destroy` fails due to azure databricks DenyAssignment

Open
#4,776 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
235
Forks
192
Avg merge
1d 23h
Merged PRs (30d)
13

Description

Describe the bug
make tre-destroy fails due to azure databricks DenyAssignment

Steps to reproduce

  1. Deploy a TRE with Databricks
  2. run make tre-destroy
  3. Observe errors relating to databricks deny assignments
ERROR: (DenyAssignmentAuthorizationFailed) The client '76347256-...' with object id 'f38431f9-...' has permission to perform action 'Microsoft.Resources/subscriptions/resourcegroups/delete' on scope '/subscriptions/b4b96431.../resourcegroups/rg-tredev-ws-c6f7-svc-8800'; however, the access is denied because of the deny assignment with name 'System deny assignment created by Azure Databricks /subscriptions/b4b96431.../resourceGroups/rg-tredev-ws-c6f7/providers/Microsoft.Databricks/workspaces/adb-tredev-ws-c6f7-svc-8800' and Id '3d64f...' at scope '/subscriptions/b4b96431.../resourceGroups/rg-tredev-ws-c6f7-svc-8800'.
Code: DenyAssignmentAuthorizationFailed
Message: The client '76347256-...' with object id 'f38431f9-...' has permission to perform action 'Microsoft.Resources/subscriptions/resourcegroups/delete' on scope '/subscriptions/b4b96431-.../resourcegroups/rg-tredev-ws-c6f7-svc-8800'; however, the access is denied because of the deny assignment with name 'System deny assignment created by Azure Databricks /subscriptions/b4b96431-.../resourceGroups/rg-tredev-ws-c6f7/providers/Microsoft.Databricks/workspaces/adb-tredev-ws-c6f7-svc-8800' and Id '3d64fe...' at scope '/subscriptions/b4b96431.../resourceGroups/rg-tredev-ws-c6f7-svc-8800'.

The command to delete databricks rg's is
az databricks workspace delete --name adb-tredev-ws-142a-svc-b2e6 --resource-group rg-tredev-ws-142a --yes
Then make tre-destroy succeeds

Azure TRE release version (e.g. v0.14.0 or main):
main
Deployed Azure TRE components - click the (i) in the UI:
UI Version:
0.8.19
API Version:
0.25.4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with a TRE deployment that includes Databricks, then run make tre-destroy and inspect the make target's cleanup flow. Compare it with az databricks workspace delete, which is reported to unblock destruction. Done means make tre-destroy removes the deployed resources without requiring manual Databricks resource-group deletion.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.