Why is my function app deployed as a zip and is read only?

ZZ 120 Reputation points
2025-01-16T11:34:37.73+00:00

To deploy my function app I run

func azure functionapp publish my-app-name

This works, but my code on Azure is always 'read only': 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.

I am on the 'premium' plan and I did not configure the app other than using the default. I don't want it to be deployed as a zip as I want to edit the code on Azure and test it. How not to deploy my app as zip?

The help I found online does not work, they all say go to 'settings > configuration > application settings' and set WEBSITE_RUN_FROM_PACKAGE to 0 or delete it. But this does not make sense as there is no such option anymore.

My environment variables also do not have WEBSITE_RUN_FROM_PACKAGE.

I also tried: az functionapp config appsettings set --name my-app-name --resource-group <your-resource-group> --settings WEBSITE_RUN_FROM_PACKAGE=0

before running 'func azure functionapp publish my-app-name' but it goes 'remote build failed'.

Please help, thanks.

Screenshot from 2025-01-16 11-25-39

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,920 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 25,106 Reputation points Microsoft Employee Moderator
    2025-01-16T12:40:48.3+00:00

    @ZZ Thanks for posting your question in Microsoft Q&A.

    Currently below are the list of supported deployment technologies to deploy your functions-to-functions app in elastic premium SKU.User's image Based on the shared information, I understand that you are trying to deploy the functions using the Cmdlet func publish which is using the zip deploy to deploy your functions and you are unable to edit them from the portal.

    As called out in the documentation here, you can edit the functions which are created or last modified from the portal only.

    Below are the languages which support portal editing JavaScript, PowerShell, Python, and C# Script functions

    User's image

    Hope this helps, let me know if you have any further questions on this.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.