I want to create a new Serviec Bus on Azure and then scale it up by using automation script.
Right now I can create the service bus successfully by powershell cmdlet
New-AzureSBNamespace -Name $Namespace -Location $Location -CreateACSNamespace $CreateACSNamespace -NamespaceType Messaging
But I can't find any cmdlet or azure management API to scale its capacity.
After installing WindowsAzure.ServiceBus via nuget I found this class
new Microsoft.ServiceBus.Management.MessagingSKUPlan(){SKU=2, SelectedEventHubUnit = 20 };
But I don't know how to use it to scale the service bus
I've found an end point https://manage.windowsazure.com/ServiceBus/UpdateMessagingSKUPlan that used by http://manage.windowsazure.net to scale the service bus, but it's using http cookie for authentication which is hard to implement from Powershell normal authentication that using MS certificate.
My question is is there any way to scale the azure service bus from Powershell or an api? If not, is there any idea how to call https://manage.windowsazure.com/ServiceBus/UpdateMessagingSKUPlan api from my automation script?