Complete Azure Deployments Take an Hour to Fail for Locked Resources

两盒软妹~` 提交于 2019-12-12 10:48:26

问题


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?

来源:https://stackoverflow.com/questions/38624367/complete-azure-deployments-take-an-hour-to-fail-for-locked-resources

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!