I cannot recreate a previously deleted Azure Functions and storage account resource on another subscription
Hello,
i'm encountering an issue redeploying several Azure Functions and Storage Account resources, which have been previously created on another subscription, but have been deleted via the Azure Portal prior to recreating (and we waited for a couple of days now between retries).
We are using Terraform v1.10.5 and azurerm v4.22.0 for deployment.
This is the Terraform output (I obfuscated the real resource names):
Storage Account:
Error: creating Storage Account (Subscription: "xyz")
Resource Group Name: "rg-*"
Storage Account Name: "st*": performing Create: unexpected status 409 (409 Conflict) with error: StorageAccountAlreadyTaken: The storage account named st* is already taken.
Function App:
Error: the Site Name "func-" failed the availability check: Hostname 'func-' already exists. Please select a different name.
The Function Apps are Consumption ones, and i verified that the sites cannot be reached via the default URI (*.azurewebsites.net).
I can add the actual resource names in a private conversation.
Thanks,
Torben