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

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

问题描述

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

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.

我无法打开应用服务编辑器

我无法从功能应用设置 -> 功能应用编辑模式将应用设置为读/写我也尝试使用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:

去sitewwwroot[yourfunctionname],会有一个function.json.

Go to sitewwwroot[yourfunctionname], and there will be a function.json.

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

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

配置部分:

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

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