I cannot recreate a previously deleted Azure Functions and storage account resource on another subscription

Torben Makowka 0 Reputation points
2025-03-12T13:28:01.99+00:00

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

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,931 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.