Set Messaging Unit of premium Service Bus to 4 using PowerShell v5

非 Y 不嫁゛ 提交于 2019-12-11 06:02:27

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!