Unable to create Service Bus Namespace, says it's already there

Dave Richardson 26 Reputation points
2024-02-01T00:54:37.9533333+00:00

I have deleted a Service Bus namespace that was a standard Sku, and have deleted it. I'm trying create a new Service Bus namespace with the same name with a Premium sku.
Azure is telling me that the name already exists in the subscription.

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
700 questions
0 comments No comments
{count} votes

Accepted answer
  1. JananiRamesh-MSFT 29,276 Reputation points
    2024-02-01T02:38:40.9166667+00:00

    @Dave Richardson Thanks for reaching out. This issue occurs because Azure Service Bus namespace names are globally unique. Even if you’ve deleted a namespace, the name remains reserved and cannot be reused immediately. This is to ensure data integrity and prevent potential conflicts.

    If you’re still seeing the “name already exists” error, it’s likely that the namespace name is still in the process of being fully deleted, which can take some time. You might need to wait for a while before the name becomes available again.

    you can also verify the availability of names while creating a namespace via a rest api call [https://learn.microsoft.com/en-us/rest/api/servicebus/stable/namespaces-check-name-availability/check-name-availability?tabs=HTTP] (https://learn.microsoft.com/en-us/rest/api/servicebus/stable/namespaces-check-name-availability/check-name-availability?tabs=HTTP)

    https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-faq#why-am-i-not-able-to-create-a-namespace-after-deleting-it-from-another-subscription--

    please let me know incase of further queries, I would be happy to assist you.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.