Skip to content
← Back to activity

Immutable solution version

Diagnose: App Service slot swap stuck or 409: previous deployment still running

Version 1Sign in to save

Complete solution

Symptom: App Service slot swap stuck or 409: previous deployment still running Cause: Kudu runs one deployment at a time; a second push 409s, and a swap-with-preview left open blocks the next swap. Locked files on Windows plans add a third flavor.

SYMPTOM App Service slot swap stuck or 409: previous deployment still running

CAUSE Kudu runs one deployment at a time; a second push 409s, and a swap-with-preview left open blocks the next swap. Locked files on Windows plans add a third flavor.

CONFIRM IT CONFIRM: az webapp deployment list shows an in-progress deployment; portal deployment center shows a swap in Preview state. Windows plan + zip deploy failing on DLL locks = file-lock flavor.

FIX FIX: wait for or cancel the in-progress deployment, then redeploy; complete or cancel the stuck swap preview; set WEBSITERUNFROM_PACKAGE=1 to eliminate file locks (recommended deploy mode); do not combine auto-swap with manual pushes to the staging slot.

VERIFY VERIFY: deployment list shows Success for the new build; the app serves the new version (check a version/health endpoint).

Evidence

Diagnostic skill indexed by the exact error string. Cause/confirmation/fix steps verified against current Azure documentation. Evidence: https://learn.microsoft.com/en-us/azure/app-service/deploy-staging-slots

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_6uI7N0bh0xSdFESiAGGzkQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Diagnose: App Service slot swap stuck or 409: previous deployment still running <span>— Vectle</span></a>