我在哪里可以获取发行者名称和IssuerKey在Azure中 [英] Where do I obtain IssuerName and IssuerKey in Azure

查看:259
本文介绍了我在哪里可以获取发行者名称和IssuerKey在Azure中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下面这个<一个href=\"http://azure.microsoft.com/en-us/documentation/articles/cloud-services-dotnet-multi-tier-app-using-service-bus-queues/\"相对=nofollow>教程:

据提到,我应该从我的ServiceBus的性能得到发行者名称和IssuerKey。有没有性能使用VS2012服务器资源管理器来检查我的ServiceBus时称为发行者名称和IssuerKey。当我使用网上Azure的管理控制台,我点击连接信息,我只得到一个连接字符串不是预期的发行者名称和IssuerKey。

It mentions that I should get the IssuerName and IssuerKey from the properties of my ServiceBus. There are no properties called IssuerName and IssuerKey when using VS2012 Server Explorer to examine my ServiceBus. When I use the online Azure management console and I click on Connection Information I only get a Connection string not the expected IssuerName and IssuerKey.

在哪里这些价值?我上免费试用,关系?

Where are these values? I am on the free trial, does that matter?

这是我所看到的。

在这里输入的形象描述

推荐答案

转到配置标签,你会看到共享访问策略。对于演示/样品的缘故,你可以只使用RootManageSharedAccessKey。 然而,这不是一个最好的做法。您应该创建无论是与发送权限的客户端,与发送服务和监听的权限适用于应用程序共享的访问策略,等等。

Go to the CONFIGURE tab and you will see the Shared Access Policies. For the sake of a demo/sample, you can just use the RootManageSharedAccessKey. However, that is not a best practice. You should create shared access policies appropriate for the application, whether it be a client with Send permissions, a service with Send and Listen permissions, etc.

样本/教程也有一个bug(对于旧的SDK内容陈旧)。在QueueConnector.cs文件中,CreateNamespaceManager应该调用CreateSharedAccessSignatureTokenProvider而不是CreateSharedSecretTokenProvider。

The sample/tutorial also has a bug in it (dated content for an older SDK). In the QueueConnector.cs file, the CreateNamespaceManager should call the CreateSharedAccessSignatureTokenProvider instead of the CreateSharedSecretTokenProvider.

顺便说一句,您还可以从您的连接字符串获取这些值。你只需要在连接字符串中从其他值提取它们。

BTW, you can also get these values from your connection string. You just have to extract them from the other values in the connection string.

这篇关于我在哪里可以获取发行者名称和IssuerKey在Azure中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆