1
votes

I'm trying to figure out a way to create Azure Servicebus namespace using Azure manage API, cmdlets or REST API, so that I can create repeatable scripts for my deployment. Right now the only way I know how to create the Servicebus Namespace is through the Azure Portal.

Is there a scriptable (c#, powershell) way to create a new azure servicebus w/o using the Azure portal?

here's a few links I've already read through:

Azure Cmdlets: msdn.microsoft.com/en-us/library/jj152841.aspx

API References for Windows Azure: msdn.microsoft.com/en-us/library/windowsazure/ff800682.aspx

Declaritively and Programitcally Subscribing to the Windows Azure Service Bus Relay with WCF

How to Use the Service Bus Relay Service

Thank you in advance.

Gasshope

4
The service bus root namespace create should be viewed similarly to the cloud service namespace. So the first question I'd have is why you need to programmatically create them? Is this because you're created a deployment package to be used by folks who are leveraging your solution and you're just trying to streamline the install for them?BrentDaCodeMonkey

4 Answers

0
votes

Nope. Not sure if it is in the works, but as of right now you can only create a namespace in the portal.

1
votes

You can use the latest version of the Azure SDK tools to create namespaces via powershell. This blog post has a good tutorial on how to use the SDK, and which ServiceBus operations are available.

0
votes

The Create Namespace in the Windows Azure Service Bus REST API can be used for that.

According to the documentation:

Creates a new service namespace. Once created, this namespace’s resource manifest is immutable. This operation is idempotent.

0
votes

"You can use PowerShell to create Service Bus resources, to get started you must have general understanding of PowerShell scripts, NuGet packages, and the .NET Framework. Read this Microsoft documentation for more information."