Access Azure Function runtime settings

蓝咒 提交于 2019-12-12 01:14:22

问题


Is it possible to access/update the Web.config used by WebJobs.Script.WebHost or the func.exe.Config (in C:\Users\{user}\AppData\Local\Azure.Functions.Cli\1.0.0-beta.91\)?

When I create an Azure Function using the Consumption plan and browse the file share, I do not see either of these files in any of the directories, but I'm assuming that the runtime is getting the settings from one of these files, or something similar.

Essentially, I would like to remove the standard .NET headers being returned by setting some values in one of these .config files.


回答1:


There is currently no way for you to modify the web.config used by the Functions runtime. I've opened a tracking item in our repo here for us to investigate if we can open this up for configurability.



来源:https://stackoverflow.com/questions/42445686/access-azure-function-runtime-settings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!