Azure OpenAI soft-delete name collision blocking resource recreation

RHO 0 Reputation points
2026-11-17T07:18:42.0233333+00:00

Hello,

I recently deleted an Azure OpenAI / Cognitive Services account named "sa-automation-openai" under the "SA_Automation" resource group in the East US region.

When trying to recreate a resource with the exact same name, I receive an error stating that the sub-domain name is already used or invalid. It appears to be locked in a soft-deleted retention/purging queue.

Since standard deletion does not instantly free up the globally unique sub-domain name, how can I force-purge or release this name reservation so I can deploy a fresh instance with the same name?

Subscription ID: 8992c261-177f-439f-8b94-71b45a3db0de

Foundry Models
Foundry Models

A catalog of AI models in Microsoft Foundry that you can discover, compare, and deploy using Azure’s built‑in tools for evaluation, fine‑tuning, and inference

0 comments No comments

1 answer

Sort by: Oldest
  1. Divyesh Govaerdhanan 11,895 Reputation points MVP Volunteer Moderator
    2026-11-17T19:26:54.75+00:00

    Hi @RHO ,

    Your deleted resource is in the soft-delete state, and it keeps the name reserved until you purge it. Per the docs, you can’t reuse the same name for 48 hours after deletion unless you purge the deleted resource first.

    To purge it:

    1. In the Azure portal, search for Azure OpenAI and open the service page. Select Manage deleted resources from the top menu.
    2. Select your subscription, tick sa-automation-openai and select Purge.
    3. Wait a few minutes, then create the new resource with the same name in East US.

    If you prefer the CLI, this does the same thing:

    az resource delete --ids /subscriptions/8992c261-177f-439f-8b94-71b45a3db0de/providers/Microsoft.CognitiveServices/locations/eastus/resourceGroups/SA_Automation/deletedAccounts/sa-automation-openai
    

    A few things to check:

    • Purging is permanent. The old resource’s data and keys can’t be recovered afterwards. If you want the old resource back, use Recover in the same screen instead (within 48 hours).
    • You need purge permission, such as Cognitive Services Contributor. If you use Contributor, it must be assigned at the subscription level, not only on the resource or resource group.
    • If the resource had deployments, delete them first, because charges for provisioned deployments continue until the resource is purged.
    • The resource group SA_Automation doesn’t need to exist for the purge, but it must exist if you choose to recover.

    Docs: Recover or purge deleted Microsoft Foundry resources

    If the name still shows as taken after purging, share the exact error text and I’ll take another look.

    Please click Accept Answer and upvote if this helped.

    Was this answer helpful?

    0 comments No comments

Your answer

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