Lesstep
Azure Pipelines · App Service · Checked November 6, 2026

Azure Pipelines: "Failed to deploy web package to App Service": what the code after it means

The App Service deploy tasks (AzureRmWebAppDeployment@4 and @5, AzureWebApp@1, and the Azure Functions deploy tasks) upload the package to the app's deployment service, Kudu, on the scm site (https://<app>.scm.azurewebsites.net). When the upload fails, the task writes this sentence and adds what came back: the scm site's HTTP status, written as Conflict (CODE: 409), or the message of a network error when the agent could not reach the site. The sentence is the same for every cause, so the part after it is the clue (a Stack Overflow question on it has been seen over 44,000 times).

When the deploy runs in a pull request's build validation, the required build stays failed until a deploy goes through: Azure DevOps Pull Requests, a plugin for JetBrains IDEs, lists the pull request's branch policies with their state in your IDE, and with Pro runs a failed build policy again once the pipeline is fixed. Get it on JetBrains Marketplace

What it looks like

Conflict (CODE: 409)

Internal Server Error (CODE: 500) or Bad Request (CODE: 400)

Ip Forbidden (CODE: 403), ENOTFOUND or ETIMEDOUT: the agent cannot reach the scm site

ERROR_FILE_IN_USE with Web Deploy

Azure DevOps pull requests in IntelliJ IDEA and Rider

Azure DevOps Pull Requests, a plugin by Lesstep for JetBrains IDEs 2024.1 or later and Android Studio, reads the organization, project and repository from your git remote and lists the pull requests that wait for your review in an IDE tool window, on Azure DevOps Services and on Azure DevOps Server. It shows the branch policies of a pull request with their state, so a required build that has not passed is next to its pull request, and with Pro you run a failed or expired build policy again from there. The review inbox is free; voting, commenting, completing and creating are Pro, with a 30-day trial.

Get it on JetBrains Marketplace

Azure DevOps, Azure Pipelines and Azure App Service are trademarks of Microsoft Corporation; GitHub is a trademark of GitHub, Inc.; IntelliJ IDEA and Rider are trademarks of JetBrains s.r.o. This page is not affiliated with or endorsed by Microsoft, GitHub, Inc. or JetBrains.

More: the dotnet task matched no project · no zip where the deploy task looks · no template, or no parameters file · a resource authorization issue · 日本語