title: Detecting update and deletion in Cosmos DB using CosmosDbTrigger in an Azure Function
body: <p>I'm trying to work my way around DB notifications for document events in an Azure Function using <code>CosmosDBTrigger</code>.</p>
  
  <p>I get notified for inserts and updates, however there is no notification for deletion. Is there any way to have it triggered or by design such type of events are not expected? (eg, event sourcing)</p>
  
  <p>In case of an update, is there any way to check if it is an insert or an update? Maybe looking at the <code>ETag</code>?</p>