Cancelling azure resource manager deployment

后端 未结 2 1073
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-19 09:16

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:

相关标签:
2条回答
  • 2021-02-19 09:57

    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

    0 讨论(0)
  • 2021-02-19 10:17

    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

    0 讨论(0)
提交回复
热议问题