Hi,
I've found that a container named "leases" was not being able to be created due to provisioning limit.
I suppose that a container which is designated in [Collection name for leases] in Edit Trigger is necessary for Function triggering properly.
Now, triggering works well after I created "leases" container manually.I was wondering what the container named "leases" means and has a role in this case because the word seems to be for very specific domain.
My Function is receiving change feed event whenever I create or update item of Cosmos DB with Data Explorer, but it's not being able to receive change feed even if I "delete" a item from Cosmos DB. Receiving change feed when deleted is actually main purpose that I'm struggling to compose this "Cosmos DB trigger + Function" structure.
By any chance, is there any other setting to make Function receive feed when a item is deleted from Cosmos DB?
Or, Could you provide any other idea(it's ok even if it's not using Function) to make our system know deletion of item from Cosmos DB automatically?
Currently change feed only gives you inserts and updates. For deletes, you can mark each item with is-deleted or similar to show that it is in soft-deleted state. Please see this article:
https://learn.microsoft.com/en-us/azure/cosmos-db/change-feed
The leases container is necessary for the trigger to process the change feed. Please see below for detailed explanation:
Thanks.
-TP