Where can I find my Azure account name and account key?

假如想象 提交于 2019-12-17 17:53:04

问题


I am starting with Windows Azure. I have an Azure account with Microsoft and would like to use it from my Visual Studio project

In the Azure management portal, I can see the primary access key and secondary access key. However Visual Studio needs the account name and account key.

Are these related or am I missing something? If so, how can I get my account name and account key from the Azure management portal?


回答1:


If you're referring to a Windows Azure Storage account, the storage account name would be the dns prefix you created (e.g. mystorage.blob.core.windows.net - the name would be mystorage).

You then get two keys - primary and secondary. Specify either. You have two so you can give one out to someone (such as giving the secondary key to a 3rd-party monitoring company) and revoke it by changing the key, without impacting you (assuming you're using the primary key for yourself).




回答2:


The user interface changed a little bit but it's generally the same place:

Note that on the right side of the key you have a Connection String. There you can clearly see the name and the key as well.




回答3:


Adding a new answer as Azure UI is updated.

So, after selecting the storage account(in my case its inAFlash) select Access keys option you will get the following screen shown in the screenshot

Here you see two key's Primary and secondary. So, previously these were key1 and key2.

Reason for two keys? it's to avoid downtime. let's say, if you had only one key and used it multiple places. Suddenly you had to share it to someone for some reason. So, you might need to regenerated this key(As you have already shared it) and update it in all places where you used it previously. So, to avoid this, we have secondary key, which you can share and regenerate it so that, primary key will be still valid.



来源:https://stackoverflow.com/questions/6985921/where-can-i-find-my-azure-account-name-and-account-key

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!