gpt4 book ai didi

c# - 在 Azure Function 中覆盖 function.json 时出现问题

转载 作者:行者123 更新时间:2023-12-02 07:54:40 25 4
gpt4 key购买 nike

我想向您询问我当前问题的解决方案。首先,我想强调的是,尽管在 stackoverflow 上可以找到非常相似的文章,但它并不重复。

我的 azure 函数的行为:

当配置属性“WEBSITE_RUN_FROM_PACKAGE”设置为 1 时,“函数”中的函数可用,我得到以下信息:

Your app is currently in read only mode because you are running from apackage file. To make any changes update the content in your zip fileand WEBSITE_RUN_FROM_PACKAGE app setting.

根据 stackoverflow 文章,将属性值更改为 0 应该使 function.json 可编辑。不过我得到了第二个信息:

Your app is currently in read only mode because you have sourcecontrol integration enabled.

还有什么功能“函数”中不存在记录器,并且 function.json 在 wwwroot/sites 中的 Kudu 调试控制台上不再可用。

enter image description here

最佳答案

对于第一个信息,您应该将 WEBSITE_RUN_FROM_PACKAGE 设置为 0。

第二条信息:

Your app is currently in read only mode because you have sourcecontrol integration enabled.

这意味着您已经为函数应用设置了持续部署。您应该通过以下步骤禁用它:

导航到 Azure 门户 -> 您的函数应用 -> 部署中心,然后单击断开连接按钮(如果源不同,可能会略有不同)。这是屏幕截图:

enter image description here

请记住在对函数应用进行一些更改后再次启用持续部署。

关于c# - 在 Azure Function 中覆盖 function.json 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67967336/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com