microsoft / microsoft/AzureTRE

Delete resource group on workspace deletion even if it has "lingering" resources.

Open Beginner friendly
#4,183 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Occasionally Azure resources are left in a resource group and are not being tracked by Terraform state/TRE resources. This prevents deletion of the workspace and requires and Azure admin to interveen. We could set the feature flag prevent_deletion_if_contains_resources = false within the features of the AzureRM provider to enable the workspaces to be deleted.

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 at the Terraform AzureRM provider's features configuration and locate the workspace deletion entry point; the issue names the prevent_deletion_if_contains_resources flag but no repository file or test. Verify workspace deletion when the resource group contains untracked Azure resources, and confirm the existing behavior remains unchanged for other deletion cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, terraform
Domain
cloud
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.