访问Azure Function运行时设置

访问Azure Function运行时设置

问题描述:

是否可以访问/更新 WebJobs.Script.WebHost func.exe.Config(在C:\Users\{user}\AppData\Local\Azure.Functions.Cli\1.0.0-beta.91\中)使用的Web.config?

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\)?

当我使用消费"计划创建Azure函数并浏览文件共享时,在任何目录中都没有看到这些文件中的任何一个,但是我假设运行时从这些文件之一中获取设置或类似的内容.

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.

基本上,我想通过在这些.config文件之一中设置一些值来删除返回的标准.NET标头.

当前无法修改Functions运行时使用的web.config.我已经在我们的仓库此处中打开了一个跟踪项我们调查是否可以针对可配置性进行开放.

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.