Share via

How to Deploy my Web App with a Minimum Delay?

redapplesonly 0 Reputation points
2025-12-16T16:14:04.3966667+00:00

Hi all, newbie Azure developer and first-time poster here.

I am building my first Azure web app. To do so, I've created all of the following:

  • An Azure subscription
  • A Resource Group
  • An App Service Plan (set to "B1 Basic" for development)
  • My Web App Resource (named "pdh-webapp1")

I've been developing my app's JavaScript code locally on my Windows 11 laptop, using VS Code (v 1.107.0) as my development platform. VS Code is synced with my Azure subscription, and when I think I have my code just right, I deploy by right-clicking in VS Code Explorer --> "Deploy to Web App". I assume the deployment is successful, because in the "Azure" terminal window, I'll see this:

Deploy to app "pdh-webapp1" Succeeded in 2m 2s
  Zip and deploy workspace "C:\path\to\my\project" 51 s
  Build app "pdh-webapp1" in Azure 1m 4s

Looks promising!

And when I examine my web app in the Azure portal, the new code will deploy... but it can take AN HOUR or LONGER before my new code "goes live". This is maddening, especially when I'm trying to fine-tune code changes. I'm writing this post to see if my experience is common?

After I deploy, I've tried all of the following to try and get my newest code to "go live" ASAP:

  • "Restart" and/or "Stop" then "Start" the web app resource on the Azure portal
  • Issue a az webapp restart --name "pdh-webapp1" --resource-group "myResourceGroup" in an Azure shell
  • Issue a reboot command in a Kudu SSH shell

None of this works, probably because when I examine my project via Kudu SSH, I don't see the newest code files in my Azure container. As I said, EVENTUALLY they will appear, but it can be a very, very, very, very, very, very, very, very long wait.

Seriously, is this a common experience? What is the usual amount of waiting time between "Deploy to Web App..." and when the new code "goes live"? Where might I look to troubleshoot such issues? (Is there a deployment log?)

Thank you.

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.

0 comments No comments

Answer recommended by moderator
  1. Anonymous
    2025-12-16T22:57:50.7233333+00:00

    Hi @redapplesonly

    Thank you for sharing the detailed troubleshooting steps.

    Based on the behavior you described, this is not a restart or runtime issue. The root cause is that the Azure Web App is running in Run-From-Package mode.

    When the application setting below is enabled: WEBSITE_RUN_FROM_PACKAGE = 1

    Azure runs the app from a ZIP package instead of directly from the file system. In this mode, deployments are processed asynchronously by the platform. Until Azure finishes extracting and swapping the package in the background:

    • New files do not appear in Kudu (/site/wwwroot)
    • Restart / Stop–Start / az webapp restart have no effect
    • The updated code becomes visible only after a long delay

    This is why the changes eventually appear, but much later.

    If you want the latest code to go live immediately after deployment:

    • Go to Azure Portal → Web App → Configuration → Application settings
    • Remove the setting WEBSITE_RUN_FROM_PACKAGE or set it to WEBSITE_RUN_FROM_PACKAGE = 0

    Hope this helps!

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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