Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/67.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powershell 如何读取Azure服务总线主题名称包含/在其中。例如:电源壳中的xxx/t000_Powershell_Azure_Servicebus_Azure Servicebus Topics - Fatal编程技术网

Powershell 如何读取Azure服务总线主题名称包含/在其中。例如:电源壳中的xxx/t000

Powershell 如何读取Azure服务总线主题名称包含/在其中。例如:电源壳中的xxx/t000,powershell,azure,servicebus,azure-servicebus-topics,Powershell,Azure,Servicebus,Azure Servicebus Topics,我正在使用PowerShell阅读Azure服务总线主题。主题名称中包含一些特殊字符。主题名称为xxx/t000 当我使用: Get-AzureRmServiceBusSubscription -ResourceGroup 'rg_name' -NamespaceName 'sbname' -TopicName "xxx/t000" 我得到一个错误: 操作返回了无效的状态代码“未找到” 所以我用主题名中的/来预测问题。 有人能帮我读一下包含“/”的主题名吗?试着用单引号引一下主题名 -Topi

我正在使用PowerShell阅读Azure服务总线主题。主题名称中包含一些特殊字符。主题名称为xxx/t000

当我使用:

Get-AzureRmServiceBusSubscription -ResourceGroup 'rg_name' -NamespaceName 'sbname' -TopicName "xxx/t000"
我得到一个错误:

操作返回了无效的状态代码“未找到”

所以我用主题名中的/来预测问题。
有人能帮我读一下包含“/”的主题名吗?

试着用单引号引一下主题名

-TopicName 'xxx/t000'

此问题与Azure资源管理器有关,它不支持具有“/”的资源名称。您应该能够通过将“/”替换为“~”来引用主题

以下是MSDN上关于此主题的一个很好的幕后描述:

在服务总线端,我们将在接口时将“/”转换为“~” 使用ARM,但保留后端的斜线,以便继续 按他们应该的方式工作


您是否尝试过
xxx\/t000
?我以前也尝试过。仍然存在相同的问题。我尝试过使用单引号。但仍然得到相同的错误。