Disable the Function accidentally restarts AzureFunction

70 views Asked by At

I have a FunctionApp named A that includes 4 functions inside it. When I disabled the first function, FunctionApp accidentally restarted to update the status. This leads to the remaining 3 functions, if they are running, also being stopped. Is there any way to solve this problem?

I hope to be able to disable the first function without affecting the running of the remaining functions.

1

There are 1 answers

2
SiddheshDesai On BEST ANSWER

Ideally the Function app might restart for various reason that you can track from the Activity Logs section, After I disabled my function The Function App took update and then it Synced the Function Trigger with the latest modified time. This happens, Because, When you disable one Function Trigger, Application setting with :-

Configuration Setting:-

AzureWebJobs.HttpTrigger1.Disabled:1

Gets added in the Function app Configuration, Thus once any Application Setting is updated the Function app restarts or Updates by default.

Note- Whenever any application settings is updated, added or removed after you click on Save, The Function App restarts.

enter image description here

Output:-

enter image description here

Activity Logs:-

enter image description here

enter image description here

enter image description here

enter image description here

My Function App with 4 Triggers and 1 Trigger disabled:-

enter image description here