Cancelling azure resource manager deployment

社会主义新天地 提交于 2020-01-22 17:37:54

问题


Recently I've started creating a new resource group but it seems to be stuck at provisioning server farm resource. Restarting deployment outputs the following error:

New-AzureResourceGroup : DeploymentActive: Unable to edit or replace deployment 'App': previous deployment from '8/26/2015 8:48:55 AM' is still active (expiration time is '9/2/2015 8:48:54 AM').

I have no time to wait for its expiration. Is there a way to cancel Azure ARM deployment?


回答1:


Stop-AzureRmResourceGroupDeployment should cancel the deployment and preserve the resourcegroup if you need to go that route.

https://docs.microsoft.com/en-us/powershell/module/azurerm.resources/stop-azurermresourcegroupdeployment




回答2:


You can use the Remove-AzureResourceGroup cmdlet. It will start deleting the resources and cancel the deployment. However, the best way to avoid waiting for anything is to deploy with a different name, and let the delete run in the background.

https://msdn.microsoft.com/en-us/library/dn654585.aspx



来源:https://stackoverflow.com/questions/32222691/cancelling-azure-resource-manager-deployment

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