Created
          April 13, 2015 00:27 
        
      - 
      
- 
        Save gbellmann/53457a7bcde071ab1709 to your computer and use it in GitHub Desktop. 
    Function to get an Azure Storage account from the configuration settings
  
        
  
    
      This file contains hidden or 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