azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

New-AzureSBNamespace doesn't allow creation of namespaces created by mistake in other subscription

Open bunceg opened this issue 11 years ago • 8 comments

  1. Select a subscription
  2. Create a service bus namespace "XXXX"
  3. Realise the subscription hadnt been changed properly
  4. Delete the service bus
  5. Change the subscription
  6. Create a service bus namespace "XXXX"

Error 400The namespace name is previously used in another project and has been deleted less than one week.

This may come from Azure and not the powershell scripts but, come on, ... mistakes happen and now I need to wait one week??

bunceg avatar Mar 21 '15 17:03 bunceg

I've been struggling with the same issue. I don't know why there is no fix for this issue till now.

mayurdhingra avatar Mar 31 '16 09:03 mayurdhingra

I think it's because these scripts are probably going to be deprecated. ARM is way forward and there is a "hidden" ARM script to create service bus namespaces now

bunceg avatar Mar 31 '16 11:03 bunceg

any update on this? I get the same error when re-creating a namespace with same name as a deleted one with an arm template. Why does it take a week?

edtheshed avatar Aug 02 '16 13:08 edtheshed

I have the same issue. All our subscriptions are under the same TenantID so I would have thought that would be a more suitable check than using the SubscriptionID to prevent others from taking your ServiceBus name space immediately after you've deleted yours.

JimBarber avatar Nov 08 '16 02:11 JimBarber

Having the same issue here. Would love to know how to resolve.

aspiringtfsguru avatar Nov 21 '16 23:11 aspiringtfsguru

There isn't really a resolution so far - probably due to the way the service bus registers with DNS I'm guessing?

My work around has been to add a random string to the end of each creation step, e.g. (based on an ARM template) namespace equals something like:

[concat(parameters('sbNamespace'),uniqueString(resourceGroup().id))]

where the uniqueString helps make the namespace unique each time

bunceg avatar Nov 22 '16 09:11 bunceg

@twitchax: "Azure PowerShell continues to maintain RDFE support on a legacy basis: new functionality and bug fixes are addressed sparingly. This issue does not meet the current threshold for consideration."

cormacpayne avatar Sep 02 '17 00:09 cormacpayne