Azure Function 読み取り専用モードを解除する方法はありますか?

RS 0 Reputation points
2023-07-21T01:09:43.1433333+00:00

Azure Functionの関数が読み取り専用モードになりテスト実行ができなくなりました。特に構成値の変更は行っていないのですが、以下の内容が画面に表示されています。

「パッケージ ファイルから実行しているため、アプリは現在読み取り専用モードです。変更を加えるには、Zip ファイルの内容と WEBSITE_RUN_FROM_PACKAGE アプリ設定を更新します。」

解決策はございますでしょうか。宜しくお願い致します。

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,398 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,081 questions
{count} votes

1 answer

Sort by: Most helpful
  1. navba-MSFT 27,465 Reputation points Microsoft Employee
    2023-07-21T04:31:42.18+00:00

    @RS Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    I understand that you are facing an issue with your Azure Functions, where the function is in read-only mode, and you are unable to test it in Azure Portal.

    The error message suggests that the app is currently running from a package file, and you need to update the contents of the Zip file and the WEBSITE_RUN_FROM_PACKAGE app setting to make changes.

    To resolve this issue, you can follow the below steps:

    1. Open the Azure portal and navigate to the Function App that is experiencing the issue.
    2. In the Function App, go to the Configuration settings and locate the WEBSITE_RUN_FROM_PACKAGE app setting.
    3. Change the value of the WEBSITE_RUN_FROM_PACKAGE app setting to 0
    4. Save the changes and restart the Function App.
    5. Test the Function App to ensure that it is no longer in read-only mode.

    By changing the value of the WEBSITE_RUN_FROM_PACKAGE app setting to 0, the Function App will no longer run from the package file, and the you should be able to make changes to the app.

    Here is the reference to the Azure documentation that explains how to configure app settings for Azure Functions:

    I hope this helps! Let me know if you have any further questions.

    **
    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


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.