Reputation: 93724
As the title states, is there a way to trigger an action when the function is manually stopped or restarted ?
Example, when the function is stopped I want to make an update in Azure table storage.
I searched quite a lot in google couldn't find anything meaningful, any pointer will be helpful.
Upvotes: 0
Views: 255
Reputation: 60751
503 unavailable
from the function appUpvotes: 0
Reputation: 889
You can use an Azure Event Grid to achieve this. Event Grids utilise the central nervous system of Azure by being able to intercept logs from the Azure Monitor.
Follow this tutorial here to achieve exactly what you need to do however change the operation on the condition step to:
Microsoft.Web/sites/stop/action
In your logic app. You can then apply whatever logic you want to the true
step in the Logic App
Upvotes: 1