Azure Service Management APIs have been deprecated for messaging services as of November 1, 2021 and replaced with Azure Resource Management APIs.

john john 1,006 Reputation points
2023-07-24T13:59:04.0233333+00:00

I want to create a service bus to be able to debug a remote event receivers as mentioned in this link https://blog.virtosoftware.com/remote-event-receivers-creating-and-debugging-sharepoint-online/, so i tried to run this command:-

New-AzureSBNamespace "TestTestingServiceBus" -CreateACSNamespace $true -NamespaceType Messaging

but i got this error:-

New-AzureSBNamespace : 
At line:1 char:1
+ New-AzureSBNamespace "TestTestingServiceBus" -CreateACSNamespace $tru ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [New-AzureSBNamespace], CloudException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceBus.NewAzureSBNamespaceCommand

any advice? Thanks

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

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 19,001 Reputation points
    2023-07-24T20:21:01.63+00:00

    Hi @john john ,

    It looks like you were using the wrong Azure PowerShell syntax by using 'azure' instead of 'az' at the beginning of your command to create your Service Bus

    To create a Service Bus namespace using Azure PowerShell, you can use the New-AzServiceBusNamespace cmdlet. Here's an example command:

    New-AzServiceBusNamespace -ResourceGroupName <resource-group-name> -NamespaceName <namespace-name> -Location <location> -SkuName Standard
    

    Hope that helps.

    -Grace


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.