Function to get an Azure Storage account from the configuration settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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