Not Monitored
Tag not monitored by Microsoft.
35,960 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am trying to remove a Resource Group, but I am having the errors described below
Powershell try:
PS /home/felipe> Remove-AzureRmResourceGroup -Name terraform -Force
Remove-AzResourceGroup: Long running operation failed with status 'Conflict'.
StatusCode: 409
ReasonPhrase: Conflict
OperationID :
Az CLI try:
felipe@Azure:~$ az group delete --name terraform
Are you sure you want to perform this operation? (y/n): y
Deployment failed. Correlation ID: 843348de-24d7-4970-bbcd-c865d3c0902b. Operation failed with status: 'Conflict'. Details: 409 Client Error: Conflict for url: https://management.azure.com/subscriptions/6899-4cb6-99f1-70ca97/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBEkl2JMb2NhdGlvbiI6ImJyYXppbHNvdXRoIn0?api-version=2020-10-01
Try on Azure Portal:
Remove Resource Group - terraform
Operation name
Delete resource group
Time stamp
Sat Mar 27 2021 15:47:29 GMT-0300 (Brasilia Standard Time)
Error code
Conflict
Message
{"Error":{"Code":"ResourceGroupDeletionBlocked","Target":null,"Message":"Deletion of resource group 'terraform' failed as resources with identifiers 'Microsoft.Storage/storageAccounts/statefile-terraform' could not be deleted. The provisioning state of the resource group will be rolled back. The tracking Id is '5c82bb89'. Please check audit logs for more details.","Details":[{"Code":null,"Target":"/subscriptions/6fc9c1-6899-70ca97e0d409/resourceGroups/terraform/providers/Microsoft.Storage/storageAccounts/statefile-terraform","Message":"{\"error\":{\"code\":\"AccountNameInvalid\",\"message\":\"statefile-terraform is not a valid storage account name. Storage account name must be between 3 and 24 characters in length and use numbers and lower-case letters only.\"}}","Details":null,"AdditionalInfo":null}],"AdditionalInfo":null}}
However, as it is possible to verify, there is no storage account created with this name, as shown in the command below:
az storage account list --resource-group terraform
[]