7
votes

Recently I reformatted my PC, which previously had Visual Studio installed on it.

In Visual Studio, under Server Explorer -> Windows Azure Storage, before reformatting, I had a storage account configured for one of my hosted services in Azure. When I configured it, the "Remember My Account Key" was checked.

After reformatting, this account was gone, as expected. However, when I went to reconfigure the account, I noticed that it automatically populated the "Account Key" field with the valid key.

How does Visual Studio remember this option?

1
a wild guess here is that you opened Server Explorer while you have your Cloud Service solution opened. And if you have configured that account in the Cloud Service project, it would be the source for the account key. I don't see any other way.astaykov
So, in this case, if I say "remember account key", the account key value is saved in the config (.cscfg)?David Savage

1 Answers

3
votes

From what I can see, your subscription information is saved in an XML file located on your hard drive:

C:\Users\\Documents\Visual Studio 2012\Settings\Windows Azure Connections.xml

If you restored this file, it would have everything it needs to connect to Azure on your behalf and get the list of storage accounts directly. Once it has the thumbprint information associated with the subscription ID, it connects to the management portal directly using the Management API.