New-AzureSBNamespace doesn't allow creation of namespaces created by mistake in other subscription
- Select a subscription
- Create a service bus namespace "XXXX"
- Realise the subscription hadnt been changed properly
- Delete the service bus
- Change the subscription
- Create a service bus namespace "XXXX"
Error 400
This may come from Azure and not the powershell scripts but, come on, ... mistakes happen and now I need to wait one week??
I've been struggling with the same issue. I don't know why there is no fix for this issue till now.
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
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?
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.
Having the same issue here. Would love to know how to resolve.
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
So here's why it takes a week: Error Code: 400--The namespace name is previously used in another project and has been deleted less than one week.
@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."