question

FelipeDias-7126 avatar image
0 Votes"
FelipeDias-7126 asked deherman-MSFT edited

Problem's with removal of a Resource Group due to a storage account that does not exist


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
[]


not-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers