Arvind
Arvind

Reputation: 33

Creating Azure Bus Service using Azure Powershell throwing exception

I'm trying to create Azure Service Bus using Azure powershell command.

I'm using command as :

New-AzureSBNamespace –Name UKBProjectServiceBus -Location "West US" -CreateACSNamespace $true -NamespaceType Messaging

But getting exception as:

New-AzureSBNamespace : InternalError: The server encountered an internal error. Please retry the request. At line:1 char:1 + New-AzureSBNamespace -Name UKBProjectServiceBus -Location "West US" - ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [New-AzureSBNamespace], CloudException + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceBus.NewAzureSBNamespaceCommand Can anyone please help me?

Upvotes: 0

Views: 232

Answers (1)

Joey Cai
Joey Cai

Reputation: 20067

This PowerShell command for Service Bus will no longer be supported on 11/1/2019. The Azure Service Management model is deprecated for Service Bus, and will be disabled on that date. Please use the commands which support the Azure Resource Management model in AzureRM.ServiceBus.

As Gaurav and Rohit said, the New-AzureSBNamespace is a really old Powershell Cmdlet to use.

You could use New-AzureRmServiceBusNamespace -ResourceGroup $ResGrpName -NamespaceName $Namespace -Location $Location to create Azure ServiceBus. Refer to this one. enter image description here

Or use New-AzServiceBusNamespace -ResourceGroupName Default-ServiceBus-WestUS -Name SB-Example1 -Location WestUS to create Azure ServiceBus. Refer to this one. enter image description here

Upvotes: 1

Related Questions