5

I use Azure Resource Manager (ARM) Templates to deploy my Azure platform-as-a-service (PaaS) resources. I perform ARM Template deployments as "Complete" so resources not defined in the template are removed.

When I place an Azure Resource Lock on an Microsoft SQL Server PaaS Database Azure resource and then perform a complete deployment with the database name changed it takes more than an hour for the deployment to fail.

The Resource Group deployment log events contain multiple HTTP code 409 errors, "Cannot perform delete operation because following scope(s) are locked:", but the deployment retries for more than an hour before it fails with DeploymentFailedCleanUp.

I expected both the conflict error when deleting a resource and DeploymentFailedCleanup. How can I make the deployment fail quickly on 409 errors that occur during cleanup though?

Stringfellow
  • 2,788
  • 2
  • 21
  • 36
Dustin Venegas
  • 760
  • 1
  • 7
  • 16

0 Answers0