An Azure service that provides an event-driven serverless compute platform.
@Nir Kirshbloom Thanks for reaching out. For any update operation of your function app you can leverage the Azure App Service as the event source. You can find the list of available events here for your function/app service event source. For any update event you can subscribe to these events.
As the deletion event will not be fired from function/app service event source. So, you need to leverage either the Azure Resource group event source or Azure Subscription event source. Now you can do the filter of events as per your requirement, so you are only listing events when the delete operation is sucess, events for function app (subject) and operation name as delete.
"eventType": "Microsoft.Resources.ResourceDeleteSuccess"
"subject": "/providers/Microsoft.Web/sites/"
"operationName": "Microsoft.Web/sites/delete"
For more details you can refer to individual documents of different event sources and what are the available events. Now as per your business requirement you can configure different event handler.
Feel free to get back to me if you need any assistance.