【发布时间】:2021-06-29 14:07:42
【问题描述】:
我正在尝试使用 Get-AzureRmServiceBusNamespace 模块通过 -Name 参数检索特定的服务总线命名空间。
此 cmdlet 的 documentation 表示此参数可用于由资源组检索特定命名空间或命名空间组。当我尝试这样做时,响应包括 all 命名空间。我也尝试使用此参数的别名 (NamespaceName)。有趣的是-ResourceGroupName 参数确实缩小了结果范围。我可以通过在Name 属性上使用过滤器将输出传送到Where-Object cmdlet 来检索特定的ServiceBus,但这感觉很麻烦。
知道我做错了什么吗?
【问题讨论】:
-
Gets a description for the specified Service Bus namespace within the resource group.- 我认为这意味着您需要同时提供-ResourceGroupName和-Name参数。 -
感谢您的回复!
标签: powershell azureservicebus azure-rm