Azure DataCenter
  • All of Microsoft
  • My Role
    • Alles zu My Role
    • Azure DataCenter
  • Focus
    • Alles zu Focus
    • Microsoft Ignite 2026
    • Azure Weekly Update
    • Azure Master Class
    • What's Hot
    • M365 Release
Zeitspanne
explore our new search
Azure App Service: troubleshoot old versions
Compute

Azure App Service: troubleshoot old versions

von HubSite 365 über Softchief Learn

Learn how to take advantage of your business data with Microsoft Dynamics 365 & Power Platform & Cross Technologies. My name is Sanjaya Prakash Pradhan and I am a Microsoft Certified Trainer (MCT) and

Trace the artifact, deployment target, slot, running instance, and caches when Azure App Service reports success but users see old behavior.

Key insights

  • A green pipeline confirms its configured operations completed, not that production serves the expected release.
  • Verify the subscription, resource group, app name, and slot in the deployment configuration and history.
  • Test a slot's hostname directly; deploying to staging does not update production until traffic is swapped.
  • When WEBSITE_RUN_FROM_PACKAGE is configured, verify the mounted ZIP package rather than assuming wwwroot files are active.
  • Browser, service worker, CDN, and Azure Front Door caches can continue serving older content after deployment.

Azure App Service can report a successful deployment while users continue to see the previous application behavior; tracing the release from build artifact to client response helps isolate where the mismatch occurs. This matters to developers and operations teams responsible for deploying and validating App Service applications, especially those using deployment slots or multiple workers. Softchief Learn outlines this production troubleshooting scenario and the layers to investigate.

What's new

This is a troubleshooting method, not a new App Service feature. Its central idea is to verify each stage of a release independently instead of treating a green pipeline and a healthy app as proof that every user is receiving the new version.

A release passes through several boundaries: source and build, artifact creation, deployment target, application content, runtime, traffic routing, and client or edge caches. A mismatch at any boundary can make an apparently successful deployment look ineffective. For example, the artifact itself might contain old files, or deployment might have targeted a staging slot while users continue visiting production.

That distinction also helps avoid a blind restart. Check evidence first: deployment history, artifact identity, the content the app actually runs, and responses from the relevant hostnames. A release marker such as a commit SHA or build ID can make it easier to compare what the pipeline created with what a responding app is serving.

Who it is for and what you need

This approach is for Azure developers, engineers, and cloud operations staff investigating a release that appears successful but has not changed the behavior seen by users. It applies to App Service deployments involving slots, package-based deployments, multiple workers, and caching layers.

Start with access to the pipeline configuration and the Azure deployment history for the app. If slots are in use, identify the production and staging hostnames and the intended target for the release. A build or release identifier in the artifact is also useful for checking whether the expected version made it through the deployment process.

The investigation can begin with read-only checks: compare target settings and logs, test the relevant hostnames, and inspect the effective app content. The method does not depend on restarting the service as the first response. Use the Azure Compute topic for more Azure compute coverage.

How it works

Follow the release path in order. This makes it easier to distinguish a stale build from a routing or caching issue, and it gives each finding a concrete place in the deployment process.

  1. Confirm the target. Review the pipeline and Azure deployment history. Check the subscription, resource group, App Service name, and slot, along with the deployment time and deployment ID. A successful operation against the wrong app or slot will not change the production endpoint users are visiting.
  2. Verify the artifact. Inspect the generated package or output for an identifying commit SHA, build ID, or other release marker. If the artifact already contains old files, a successful deployment cannot make the expected code appear.
  3. Read deployment evidence. Use deployment history or Kudu to examine whether the expected deployment completed and what it targeted. Compare the deployed content or package identity with the artifact produced by the build.
  4. Check the effective content. For Linux App Service, the research describes application content commonly being under . However, when is configured, the app runs from a mounted ZIP package. In that case, checking or manually changing ordinary files may not identify the content actually in use.
  5. Verify slot routing and swaps. Visit the staging hostname directly as well as the production hostname. Confirm that the new release landed in the intended slot and that any planned traffic swap completed. Review slot-specific settings and connection strings when relevant.
  6. Compare responses through the remaining layers. If the artifact and app content are correct, investigate worker instances and caching. Compare what users receive with a direct app response, and consider browser and service-worker caches, CDN or Azure Front Door caching, and response cache headers. Repeated requests can help reveal whether workers return different releases.

Softchief Learn's description also identifies Application Insights, request telemetry, correlation IDs, Cache-Control, and ETag checks as areas to investigate. These can help relate a user's request to the response and determine whether caching is involved.

Limitations and alternatives

A successful deployment status is evidence that the configured deployment operation completed; it does not, by itself, prove that production is serving the intended release. Likewise, seeing the expected version on a staging hostname does not establish that production traffic has moved to that slot.

Package-based execution can make a casual inspection of files misleading, while caches can make a correct origin deployment appear stale to a browser. Check the active package and compare responses across the app, edge, and client rather than assuming one view represents every layer.

Repeated requests can also matter when an app has multiple workers: different responses may point to an instance-level inconsistency. Restarting immediately may hide evidence without identifying the cause. A safer alternative is to record the release identity and check targets, logs, runtime content, traffic, and caching before choosing a corrective action.

Sources

Frequently asked questions

Why does Azure App Service show a successful deployment but old behavior?

The pipeline may have deployed an old artifact or targeted the wrong app or slot. The app may also be serving a mounted package, another worker's content, or a cached response.

How do I check whether an App Service deployment went to the right slot?

Check the pipeline target and Azure deployment history for the app name and slot. Test the slot hostname directly and confirm that any planned swap to production completed.

Does WEBSITE_RUN_FROM_PACKAGE change where I should verify deployed files?

Yes. With WEBSITE_RUN_FROM_PACKAGE configured, the app runs from a mounted ZIP package, so ordinary files in wwwroot may not show the effective application content.

Can browser or CDN caching make an App Service deployment look old?

Yes. Browser, service-worker, CDN, Azure Front Door, and other response caches can continue returning older content after deployment.