发布后,Azure Functions应用程序为只读 [英] Azure Functions App is Read Only after publishing

查看:44
本文介绍了发布后,Azure Functions应用程序为只读的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个Azure Functions应用程序(c#,javascript和python),过了一段时间,它们都被随机设置为只读"模式.奇怪的是,这3个功能应用程序中只有一个在此之前进行了更新.我知道这不一定是问题,但是我希望能够从门户网站进行编辑.

I have several Azure Functions Apps (c#, javascript and python) and after some time they were all randomly set to Read Only mode. The strange thing is that only one of these 3 function apps were updated before this happened. I know that this is not necessarily a problem, but I want to be able to make edits from the portal.

我无法打开App Service编辑器

我无法通过功能应用程序设置->功能应用程序编辑模式将应用设置为读取/写入我还尝试使用"func azure functionapp publish myAzFuncAppName --nozip",但结果相同

I can't open App Service Editor

I can't set the app to Read/Write from Function App Settings -> Function app edit mode I also tried using "func azure functionapp publish myAzFuncAppName --nozip", but with the same result

推荐答案

当然可以.请注意,如果该功能已部署"到Azure,则将部署已编译的文件.

Of course. Please notice that if the function is 'deployed' to Azure, what will be deployed is the compiled file.

例如,如果您部署C#功能应用程序,则将部署的是dll文件.所以这就是为什么它是只读的.

For example, if you deploy C# function app, what will be deployed is the dll file. So this is why it is readonly.

对代码的更改应在将它们编译成相应的无法编辑"文件之前进行,这需要特别注意.

Changes to the code should be done before compiling them into corresponding 'cannot be edited' files, which requires special attention.

但是对于函数的声明部分和配置部分的修改,这是可能的,具体步骤如下:

But for the modification of the declarative part and the configuration part of the function, this is possible, the specific steps are as follows:

说明性部分:

然后单击调试控制台> cmd:

Then click Debug Console > cmd:

转到site \ wwwroot [yourfunctionname],然后会有一个function.json.

Go to site\wwwroot[yourfunctionname], and there will be a function.json.

点击笔"进行编辑,不要忘记保存.

Click the 'pen' to edit and don't forget to save.

配置部分:

这篇关于发布后,Azure Functions应用程序为只读的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆