Cannot update wwwroot files after deployment

dotnet_guy 10 Reputation points
2024-07-29T19:37:28.1133333+00:00

Hello,

I have an Azure function triggered via Event Hubs. I tried to deployed the updated Azure function (C# code/.NET8 and Nuget package updates), and when I go to SCM -> wwwroot folder, I do not see the updated files.

I am trying to deploy the code via Visual Studio 2022 and also via Azure pipelines, no luck.

Please let me know if someone came across the issue or scenario and if there is any resolution.

Thanks.

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

1 answer

Sort by: Most helpful
  1. hossein jalilian 8,150 Reputation points
    2024-07-29T22:08:20.3633333+00:00

    Hello dotnet_guy,

    Thanks for posting your question in the Microsoft Q&A forum.

    Ensure that the WEBSITE_RUN_FROM_PACKAGE application setting is set to 0 or removed entirely. When set to 1, it can prevent updates to the wwwroot folder.

    If you're using a zip deployment method, make sure your deployment process includes the necessary files. Some compression methods might exclude hidden folders like .azurefunctions, which is crucial for .NET 8 isolated worker deployments

    Sometimes, manually triggering a sync operation can help. You can do this by making a small change to your function app settings and saving it, which can trigger a sync of the file system.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful

    0 comments No comments

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.