Take collection / container offline
It would be useful to be able to take a collection / container 'offline'. For example, if we wish to delete a large collection, our policy is to make it inaccessible for 6 months prior to deletion.
Whilst we can do this at the client level, it would bring greater assurance a given collection is unused at the point of deletion if it had been offline for a few months beforehand.
Hello Kris and thank you for your suggestion. This is not on our road map at this time.
There are some alternatives you could explore.
You could file a support ticket and ask the container be restored from the latest backup. This is done into a new Cosmos account which would have it’s own keys, essentially making this unavailable to users.
You could also use the Cosmos Data Migration Tool to export the container into json files in blob storage.
Both of these would fit your retention needs as well as make the data essentially offline for access. If this is a rather large set of data and there is a very low or zero chance of it being brought online again, blob storage may make more sense to use as the storage costs are lower.
Will mark this as unplanned as we may offer this ability in the future and/or provides a more automated means of doing one or both suggestions above.