Azure / Azure/azure-rest-api-specs

Ignore existing resources within a subscription

Open
#20,254 6 comments 6 reactions 0 assignees View on GitHub
customer-reported question Service Attention Subscription
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

Add flag to cancel subscription request to ignore currently existing (deployed) resources in the subscription to be cancelled.

Originally https://github.com/Azure/azure-rest-api-specs/issues/9042

see the discussion at https://github.com/Azure/azure-sdk-for-python/issues/10814#issuecomment-760670103

For me it's far safer for us to 'soft-delete' a subscription, by cancelling it than deleting the resources.

It can be very hard to tell if a subscription is still in use when you have so many, but when you cancel it you find out within the 3 months.

Deleting the resources is far riskier.

Of course this should be hidden behind a flag and only for people who are aware of the implications.

Contributor guide

Open the contributing guide

Research direction

Start with the linked Azure REST API issue 9042 and the discussion in azure-sdk-for-python issue 10814, then locate the subscription cancellation request specification in this repository. Confirm the opt-in flag's intended behavior for subscriptions with deployed resources and update the relevant API definition so cancellation can ignore those resources without deleting them.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
api, cloud
Issue type
Feature
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.