I have just started learning Terraform. And I stuck. In Azure Cloud with the help of command I was trying to create a resource group and storage account. But the name I gave for resource group is not unique. Hence, it failed . Now I am unable to run with a new name since subscription id and tenant id are already used. Is there any way to delete those from directory?
You can delete the object from your state file: Command: state rm | Terraform by HashiCorp
Deleted the directory by this command -del .tf
Then change the storage account name and try to do create Storage account and Resource group using terraform command, but now getting this error-
│ Error: Error reading static website for AzureRM Storage Account “appstore50009”: accounts.Client#GetServiceProperties: Failure responding to request: StatusCode=403 – Original Error: autorest/azure: Service returned an error. Status=403 Code=“AuthorizationPermissionMismatch” Message=“This request is not authorized to perform this operation using this permission.\nRequestId:e9207f9b-d01e-010c-4fa6-069e72000000\nTime:2022-01-11T04:51:54.0075440Z”
│
│ with azurerm_storage_account.store,
│ on storage.tf line 23, in resource “azurerm_storage_account” “store”:
│ 23: resource “azurerm_storage_account” “store” {