Share via

event on subscription/function app update/deletion

Nir Kirshbloom 26 Reputation points
2022-05-31T08:28:46.477+00:00

Is there any event thrown or an event i could make to notify on subscription or function app deletion/update?

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


Answer accepted by question author

MayankBargali-MSFT 71,016 Reputation points Moderator
2022-05-31T09:54:20.073+00:00

@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.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

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