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.

Assessment

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

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.

Description

feature

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.

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

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.

More from microsoft/AzureTRE

All issues in microsoft/AzureTRE

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.