Azure Web App Service not Updating after new push using local git deploy

Jason Tanuwijaya 0 Reputation points
2025-04-28T07:42:58.02+00:00

Hello Microsoft,

So I have deploy an web app service on azure, but it seems like the app is showing the old deployment even though I have push a new version using local git I have check the log it show thisUploaded imagebut when I look up the /wwwroot it still have the previous deployment (24 April)

User's image

Can you help me of why is this happening? I have try to restart the web app but it still have the same problem

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,703 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Alekhya Vaddepally 820 Reputation points Microsoft External Staff
    2025-04-28T10:54:35.3966667+00:00

    HiJason Tanuwijaya,

    1. From images you have provided that, Your git -finished log shows that your new commit was successfully pushed (improving API on April 28, 2025).
    2. However, when you inspect the Azure Web app/home/site/wwwroot directory, the files are still from the old deployment (24 April 2025).
    3. This usually occurs because the local git -finance is not automatically extracted on the azure and place the latest build output in /wwwroot /.
    4. Instead, Azure uses a temporary construction directory during the sins (often/TMP) and publishes only after a successful build stage/home/site/wwwroot/only after a successful build phase.
    5. In your case, it seems that the construction of the deployment was successful, but the publication step was not completed properly. Hence the old version remains active.

    The most common cause:

    Build Artifact (output) was created, but did not copy to / wwwroot / folder.

    The deployment script may remember the published phase.

    A permitted or storage quota can be a issue.

    Sometimes, an Azure Deployment engine bug may be the cause of incomplete publication.

    You can also check:
    Manually use the Sink Pretty Arts: Azure Portal> Deployment Center> Sink option.

    Go to your web app in Azure portal.
    Click on SYNC to trigger redevelopment and artifact sinks.
    Under the Personnel Center> Log, verify whether the publishing phase has succeeded or if there were hidden errors.
    If the sink does not work, you can reopen your changes or use Kudu console:

    1. Visit https://<yourapp>.scm.azurewebsites.net/DebugConsole.
    2. Navigate to the build artifact location and manually copy files into /home/site/wwwroot/.

    Ensure that the scm_do_build_during_deployment configuration is set on the correct in the application settings. (This setting ensures proper construction and deployment.)
    If everything else fails, you can clearly clear and re -deploy wwwroot. Be very careful with this - backup first.

    https://learn.microsoft.com/en-us/azure/app-service/deploy-local-git?tabs=cli#troubleshoot-deployment
    If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.

    Let me know if you have any further Queries.


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.