getting error NameInuse when redeploying a service bus using bicep in incremental mode

Kaïss Berkani 25 Reputation points
2024-07-30T15:23:50.2466667+00:00

i'm getting error NameInuse when redeploying a service bus using bicep in incremental mode.

it works perfectly since i upgrade bicep version to 0.29.47.

details of the error :
[{"code":"NamespaceUnavailable","message":"Namespace

name 'service bus namespacename' is not available. Reason: NameInUse. Message: Name already in use"}]}]}]}}

Any work around for this issue.

Thanks

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

Accepted answer
  1. LeelaRajeshSayana-MSFT 14,831 Reputation points Microsoft Employee
    2024-07-30T16:45:10.5666667+00:00

    Hi @Kaïss Berkani Greetings! Welcome to Microsoft Q&A forum. Thank you for posting this question here.

    I see that you are facing error when redeploying a service bus. I wanted to check if you have deleted a service bus that is created in the subscription and trying to recreate it with the same name using the deployment.

    Kindly note that the service bus namespace is unique across Azure and once you delete it, you would have to wait for 4 hours before recreating it with the same name. Please refer to the FAQ section for reference - Why am I not able to create a namespace after deleting it

    Hope this answers your question. Please let us know if you still need any additional assistance or clarification around this.


    If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.

    1 person 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.