azureazure-webjobs

Does Azure WebJob look at the app.config once deployed


I have a Web site running on Azure App Services. It has a WebJob that deploys with it, and thus gets put in it's App_data folder once deployed.

If I FTP to the wwwroot/app_data folder of my site once deployed, the app.config file has none of the configured settings that I set up in the "Application Settings Blade" in the Azure portal. The settings are changed in my web.config for the Website though.

The most curious thing is that when I run the WebJob, the log output indicates that the correct settings are being used!!

So as per my title, does the WebJob use the App.Settings file once deployed or does it use some kind of in-memory copy of the app-settings from the azure portal, or does it use what is in the web.config of the website?

Just to pre-emt a possible question, I know that the app.settings gets renamed to myappname.exe.config


Solution

  • Here is how it works: