I have found the solution, and that is to run the PS script with "-AsJob".
DevOps deploy fails to delete web app. Error "exclusive lock to create, update or delete"
![](https://techprofile.blob.core.windows.net/images/6ji7j_vV90SMxDOvXvgWyQ.png?8D87E6)
Nibbler
616
Reputation points
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.