Cancelling a subscription with data with retention policy set

Dinesh Kumar 20 Reputation points
2026-04-17T04:37:03.44+00:00

I have a subscription and it has a version immutable storage account with locked retention policy set for 5 years on few blobs . Now I no longer need that data and subscription (it was for testing)

  1. Can I cancel the subscription even though it has data with locked retention policy
  2. Will the subscription automatically get deleted within 90 days along with all data with retention policy . Or the data will be retained even after subscription is deleted .
  3. Will I keep getting billed for the retained data even if I cancel the subscription .
Azure Storage
Azure Storage

Globally unique resources that provide access to data management services and serve as the parent namespace for the services.

0 comments No comments

Answer accepted by question author
Venkatesan S 10,830 Reputation points Microsoft External Staff Moderator
2026-04-17T04:51:15.4033333+00:00

Hi Dinesh Kumar,

Thanks for reaching out in Microsoft Q&A forum,

You can definitely cancel your subscription even though you have immutable blobs with a locked 5-year retention policy. Here’s how it works:

  1. Can you cancel with data still under a locked retention policy?
  • Yes. As long as you’re a Subscription Owner or Service Administrator, you can go into the Azure portal’s Subscriptions blade and hit Cancel subscription.
  • Cancellation simply disables all services (VMs de-allocated, storage set to read-only) but doesn’t try to delete your blobs — they remain intact under their existing immutability policy.
  1. What happens to the subscription and the data after cancellation?
  • Billing stops immediately on cancel, though it may take up to 10 minutes to show in the portal.
  • Microsoft holds onto your data for 30–90 days “just in case” you change your mind. At the end of that period the subscription itself is automatically deleted.
  • However, your blobs have their own retention lock for 5 years. Even after the subscription object is gone, those blobs cannot be purged until that 5-year retention lapses. In other words, auto-deletion of the subscription won’t override your immutability policy — the data stays in read-only mode until the policy expires.
  1. Will you keep getting billed for retained data?
  • No. Once you cancel, you are not charged for keeping data around during that 30–90 day window, nor for the period the blobs remain under immutability lock.

In short: go ahead and cancel now, you won’t be blocked by the 5-year lock. The subscription will auto-delete after 90 days, but your immutable data will stick around read-only until its retention period finishes and you won’t pay to store it during that time.

Reference docs:

Kindly let us know if the above helps or you need further assistance on this issue.

Please do not forget to 210246-screenshot-2021-12-10-121802.pngand “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

Was this answer helpful?

2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.