0

I have a Function app, and I'd like to understand what happens when I change environment variables on Azure Portal. Does Azure stop the running web server and re-start it for the environment changes to be picked up?

I'm re-using static variables like System.Net.Http.HttpClient and StackExchange.Redis.ConnectionMultiplexer so that I don't have to open and close network connections for each request. If I change the environment config for these classes, I want them to start using the new connection strings.

user246392
  • 2,661
  • 11
  • 54
  • 96
  • 1
    I can't find anything in the docs to confirm but it's what I see from my experience. Updating any of the application settings in a function app and making a request to that function's endpoint constantly results in a cold start, which implies an instance restart. – Max Ivanov Oct 29 '20 at 19:14

1 Answers1

0

Yes, app is restarted when you edit environmental variables in Azure Portal. When you try to save changes to the Configuration (including env variables and other settings), here's the popup which informs about the app's restart:

enter image description here

Michał Żołnieruk
  • 2,095
  • 12
  • 20