如何为 VSCode 上传的项目编辑 httptrigger function.json 文件

How to edit httptrigger function.json file for the project uploaded by VSCode

我使用 vscode 扩展 Azure Functions 在我的本地创建 htmltrigger 项目。

我想将 htmltrigger authLevel 编辑为 anonymous,但我在本地 vscode 文件夹中搜索了 function.json,但没有找到

and azure portal show Your app is currently in read only mode because you are running from a package file. To make any changes update the content in your zip file and WEBSITE_RUN_FROM_PACKAGE app setting.,无法编辑function.json

通常,function.json文件是在VS构建后生成的。检查它是否在以您的函数命名的文件夹中,在 ~\bin....... 文件夹下。