microsoft / microsoft/AzureTRE
`make tre-destroy` fails due to azure databricks DenyAssignment
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
- Deploy a TRE with Databricks
- run
make tre-destroy - 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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