问题
I want to set the messaging unit of premium service bus to 4 via PowerShell 5. Using following command:
New-AzureRmServiceBusNamespace -ResourceGroup Default-ServiceBus-NorthEurope `
-Location NorthEurope -NamespaceName #{PremiumServiceBus} -SkuName "Premium" `
-Capacity 4
It gives capacity is unrecognized variable.
What to do?
回答1:
Capacity
parameter is not defined by the Powershlell cmdlet (see documentation). This is possible using REST API. Looks like a disconnect between the PS library and REST API that MSFT would need to address.
I've raised an issue so that MSFT team can address it.
来源:https://stackoverflow.com/questions/43413407/set-messaging-unit-of-premium-service-bus-to-4-using-powershell-v5