DevOps deploy fails to delete web app. Error "exclusive lock to create, update or delete"

Nibbler 616 Reputation points
2021-04-19T22:14:00.43+00:00

Hey all,

I have a release-pipeline where I have a step that deletes a deployment slot. This works fine when only deploying to one Web App in the same App Service Plan. But, if I deploy to multiple Web App`s sharing the same App Service Plan, the step fails and returning the below error.:

Error: Failed to delete App Service slot 'webapp-deployment'. Error: 429 - Cannot acquire exclusive lock to create, update or delete this site. Retry the request later. (CODE: 429)

I`m using “-force” in my script but have no effect on this matter.

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,443 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful