Is there any shutdown event at Azure function app level?

657 Views Asked by At

I would like to do some clean up of resources (e.g. remove of subscriptions) before entirely shutting down of the Azure function app.

Is there any provider to listen to shutdown events of the host of Azure function app? I can only find the startup file for dependency injection.

1

There are 1 best solutions below

0
PramodValavala On

For C# Class Library functions, Cancellation Tokens are supported but the other languages don't have anything similar AFAIK.