使用 PowerShell v5 将高级服务总线的消息传递单元设置为 4

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

我想通过 PowerShell 5 将高级服务总线的消息传递单元设置为 4。 使用以下命令:

New-AzureRmServiceBusNamespace -ResourceGroup Default-ServiceBus-NorthEurope `
    -Location NorthEurope -NamespaceName #{PremiumServiceBus} -SkuName "Premium" `
    -Capacity 4

它给出的容量是无法识别的变量。

怎么办?

Capacity 参数未由 Powershlell cmdlet 定义(参见 documentation). This is possible using REST API。看起来 PS 库与 REST API 之间断开连接,MSFT 需要地址。

我已经 raised an issue 以便 MSFT 团队可以解决它。