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.
<strong>Is there a scriptable (c#, powershell) way to create a new azure servicebus w/o using the Azure portal</strong>?
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
<a href="http://blog.longle.net/2012/09/18/declaritively-and-programitcally-subscribing-to-the-windows-azure-service-bus-relay-with-wcf/" rel="nofollow">Declaritively and Programitcally Subscribing to the Windows Azure Service Bus Relay with WCF</a>
<a href="http://www.windowsazure.com/en-us/develop/net/how-to-guides/service-bus-relay/" rel="nofollow">How to Use the Service Bus Relay Service</a>
Thank you in advance.
Nope. Not sure if it is in the works, but as of right now you can only create a namespace in the portal.Answer2:
You can use the latest version of the <a href="https://github.com/WindowsAzure/azure-sdk-tools/tree/dev" rel="nofollow">Azure SDK tools</a> to create namespaces via powershell. <a href="http://michaelwasham.com/2012/12/14/new-windows-azure-powershell-update-december-2012/" rel="nofollow">This blog post</a> has a good tutorial on how to use the SDK, and which ServiceBus operations are available.Answer3:
The <a href="http://msdn.microsoft.com/en-us/library/windowsazure/jj856303.aspx" rel="nofollow">Create Namespace</a> in the Windows Azure Service Bus REST API can be used for that.
According to the documentation:<blockquote>
Creates a new service namespace. Once created, this namespace’s resource manifest is immutable. This operation is idempotent.</blockquote> Answer4:
"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 <a href="https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-manage-with-ps" rel="nofollow">Microsoft documentation</a> for more information."