Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Function to get an Azure Storage account from the configuration settings
using Microsoft.WindowsAzure.ServiceRuntime;
using Microsoft.WindowsAzure.Storage;
public static CloudStorageAccount GetAccount()
{
const string configName = "StorageConnectionString";
string value = RoleEnvironment.GetConfigurationSettingValue(configName);
return CloudStorageAccount.Parse(value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment