Azure Web App Service Zip Deployment Failed with Conflict (CODE: 409)

Divya Radhakrishnan 25 Reputation points
2023-01-30T10:05:31.14+00:00

Hello,

While trying to deploy Web package to App service, I am getting the below error since 27th Jan, 2023.

##[error]Failed to deploy web package to App Service.

##[error]Error: Error: Failed to deploy web package to App Service. Conflict (CODE: 409)

##[warning]Error: Failed to update deployment history. Error: Bad Request (CODE: 400)

However there are no deployments going on in parallel.

Please help to resolve this issue and let me know what details I need to provide to help troubleshoot.

Thanks.

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

Accepted answer
  1. Ryan Hill 29,651 Reputation points Microsoft Employee
    2023-01-30T22:03:44.2566667+00:00

    @Divya Radhakrishnan it's tough to say without additional information. The 400 error you're getting regarding deployment history could be a result of the 409 deployment error. This conflict could be caused a CPU spike, an underlying storage capacity issue or something else.

    Since this issue has just started a couple of days go, I would check the app service storage quota to see if there's enough available space. You can also change WEBSITE_RUN_FROM_PACKAGE to 1 which tells the platform not to extract your zip but mount you zip as a folder for your app to run. If you need your app built by the platform, then this setting will not work for you.

    If you've already tried these steps or been down this path, then you'll need to provide some additional details:

    • Are you deploying your zip through the CLI, drag and drop on Kudu, through VS Code?
    • Did scaling your app service plan up resolve the issue?
    • Do you see any file names in D:\home\site\locks?
    • Anything in D:\home\site\deployments?
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.