【发布时间】:2018-08-16 04:02:30
【问题描述】:
我想通过 power-shell 脚本删除 SB 主题及其订阅。
我可以使用 Microsoft.ServiceBus 命名空间和 NamespaceManager 类中可用的 C# 代码删除。
public void DeleteSubscription(string topicPath, string name);
但正在寻找 power-shell 脚本?
我得到了删除整个 SB 命名空间的脚本。
Remove-SBNamespace –Name 'ServiceBusDefaultNamespace' -Force
请建议可以删除单个主题及其订阅的脚本。谢谢!
我想使用一些 Azure 版本命令,这里是更新,
我正在使用命令Remove-AzureRmServiceBusTopic -NamespaceName SB-Example1 -TopicName SB-Topic_exampl1,它要求-ResourceGroup。现在对于本地服务总线,我认为我们不能通过任何`ResourceGroup,请建议
【问题讨论】:
标签: c# powershell servicebus