Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Functions App is Read Only after publishing

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.

I can't open App Service Editor
App Service Editor can't be pressed
I can't set the app to Read/Write from Function App Settings -> Function app edit mode enter image description here I also tried using "func azure functionapp publish myAzFuncAppName --nozip", but with the same result

like image 725
johnykes Avatar asked Jan 19 '20 19:01

johnykes


2 Answers

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

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:

Declarative part:

enter image description here

Then click Debug Console > cmd:

enter image description here

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

enter image description here

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

Configuration part:

enter image description here

like image 95
Cindy Pau Avatar answered Oct 11 '22 23:10

Cindy Pau


You can change the settings from Azure Portal or by editing the application settings. FUNCTION_APP_EDIT_MODE allows values readwrite and readonly, a

like image 40
Sajeetharan Avatar answered Oct 12 '22 01:10

Sajeetharan