I am trying to delete a previously created RM resource group with powershell. The Remove-AzureRmResourceGroup command seems forever and control is not returned to the console. Following is the script used to delete the resource group.
Login-AzureRmAccount
$resourceGroupName="dummyResourceGroup"
Get-AzureRmSubscription –SubscriptionName "Visual Studio Enterprise: BizSpark"| Select-AzureRmSubscription
Remove-AzureRmResourceGroup -Name $resourceGroupName
I tried the following steps
- Attempt to delete again from Azure portal, but the resource group had delete button disabled with message "Deleting" in a orange bar
In a new powershell window
Get-AzureRmResourceGroup -Name $resourceGroupNamecommand comes up with statusResourceGroupName : dummyResourceGroup Location : australiaeast ProvisioningState : Deletingattempt to create another resourcegroup with same name comes up with message
New-AzureRmResourceGroup : The resource group 'dummyResourceGroup' is in deprovisioning state and cannot perform this operation.
Its been almost 3 hours and I suspect that the operation is errored out and will not complete. Any pointers on how to resolve this are greatly appreciated.
Remove-AzureRmResourceGroup -Name $resourceGroupName -Force- Aatif Akhter