question

Nibbler avatar image
0 Votes"
Nibbler asked Nibbler answered

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

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Nibbler avatar image
0 Votes"
Nibbler answered

I have found the solution, and that is to run the PS script with "-AsJob".

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.