Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where do I obtain IssuerName and IssuerKey in Azure

I am following this tutorial:

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?

This is what I see.

http://lh3.googleusercontent.com/-Fj9_XtqozFU/VAX4tBSSBZI/AAAAAAACCcY/zpaGo5EPx9Y/w667-h519-no/Azure.jpg

like image 494
Richard210363 Avatar asked Sep 02 '14 15:09

Richard210363


2 Answers

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.

enter image description here

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.

*enter image description here*

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.

like image 68
Rick Rainey Avatar answered Sep 28 '22 01:09

Rick Rainey


EDIT
I checked that Microsoft Azure is moving authentication method from ACS to SAS for better performance and manageability, so removed ACS things from dialog for newly created servicebus. Seems that documentation is not yet changed.

To use with SAS, good reference is http://azure.microsoft.com/en-us/documentation/articles/service-bus-dotnet-how-to-use-queues/ and more low-level approach is described in http://msdn.microsoft.com/en-us/library/dn205161.aspx page.
For more information about SAS (and old ACS), please see http://msdn.microsoft.com/en-us/library/dn170478.aspx

ORIGINAL BELOW

Please go to Azure Portal by web browser. You may find it.

enter image description here

like image 30
Youngjae Avatar answered Sep 28 '22 01:09

Youngjae