Mar*_*ris 3 servicebus azure azureservicebus azure-servicebus-queues
由于公司的限制,我无法使用旧的Azure门户。但是我有一个在项目中使用ServiceBus的要求。我可以使用创建服务总线ns resource.azure.com,但是找不到找到该服务总线名称空间的连接字符串的方法。我尝试使用天蓝色的电源外壳,但是它也需要访问旧的天蓝色的门户……在此先感谢。
对于那些使用Azure CLI 的人来说,这就可以了
az servicebus namespace authorization-rule keys list \
-g "<group>" \
--namespace-name "<namespace>" \
-n "RootManageSharedAccessKey" \
--query "primaryConnectionString" -o tsv
Run Code Online (Sandbox Code Playgroud)
您可以使用 Azure Powershell Cmdlet 通过 powershell 执行此操作。
您可以通过如何安装和配置 Azure PowerShell找到它们的安装程序- 请参阅从 WebPI 安装 Azure PowerShell下的链接。
安装后:
先添加账号
Add-AzureAccount
输入您的凭据以连接到您的 Azure 帐户
选择您想要使用的特定订阅
Select-AzureSubscription -SubscriptionName "Your_Sub_Name"
列出您的服务总线命名空间
Get-AzureSBNamespace
您的所有命名空间以及连接字符串(for RootManageSharedAccessKey)都会列出。
(可选)如果您创建了特定的共享访问密钥名称,则可以按如下方式获取它们:
Get-AzureSBAuthorizationRule -Namespace your_namespace
这namespace将是步骤 3 的输出中列出的名称
| 归档时间: |
|
| 查看次数: |
3535 次 |
| 最近记录: |