Set Messaging Unit of premium Service Bus to 4 usi

2019-07-24 03:33发布

问题:

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.