问题
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
回答1:
Nope. Not sure if it is in the works, but as of right now you can only create a namespace in the portal.
回答2:
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.
回答3:
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.
回答4:
"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."
来源:https://stackoverflow.com/questions/13923003/code-generate-azure-servicebus-namespace