Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cancelling azure resource manager deployment

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?

like image 425
Demchenko Anton Avatar asked Aug 26 '15 09:08

Demchenko Anton


1 Answers

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

like image 107
bmoore-msft Avatar answered Oct 10 '22 08:10

bmoore-msft