Reputation: 218
I know this is not possible because of the parameter described in this message:
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.
However, if I change the value of this parameter to 0, the code is still uneditable. My Azure function is using a lot of libraries that I have to deploy everytime I update even a single character in the code. This is really anoying. I would like to be able to edit my code without wasting 5 ou 10 minutes waiting for all libraries to be downloaded too.
Do I need to remake my Azure function and edit it only on Azure portal to keep the possibility to edit it ?
Is there a way to get the code back to editable status ?
Thank you.
Upvotes: 1
Views: 3989
Reputation: 19768
MIcrosoft docs, Run your functions from a package file in Azure, states the valid values for WEBSITE_RUN_FROM_PACKAGE
are either 1 or <URL>
, not 0. So rather than setting the value to 0, delete the WEBSITE_RUN_FROM_PACKAGE
setting completely.
Upvotes: 0
Reputation: 3398
The thing you need to do is to delete the WEBSITE_RUN_FROM_PACKAGE
.
I noticed that when we deployed a Function app from local to azure, the app setting WEBSITE_RUN_FROM_PACKAGE
would be added by default, which means your code file is in read-only mode, you can not edit it unless you delete the WEBSITE_RUN_FROM_PACKAGE
.
But it should work if you change the value to 0, because it works for me. That's weird.
Upvotes: 2