How to get logs of item deletion past TTL in CosmosDB?

Catherine Du 25 Reputation points Microsoft Employee
2024-07-11T18:33:14.1366667+00:00

Hello team,

I'd like to know the best way to monitor that the items in the container are getting properly deleted past TTL.

I've come across the Change feed's All versions and deletes mode where I can trigger an Azure functions to continuously pull these changes and check for "timeToLiveExpired" in the response.

This seems to be an overkill for the sole purpose of validating deletion. Besides the All Versions and deletes mode is still in Preview.

Is there any other approach or more straightforward solution that we can validate items are being properly cleaned up?

Best,

Catherine

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,680 questions
{count} votes

Your answer

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