Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Static BlobHelper Class
public static class BlobHelper
public static CloudBlobContainer GetBlobContainer()
// Pull these from config
var blobStorageConnectionString = ConfigurationManager.AppSettings["BlobStorageConnectionString"];
var blobStorageContainerName = ConfigurationManager.AppSettings["BlobStorageContainerName"];
// Create blob client and return reference to the container
var blobStorageAccount = CloudStorageAccount.Parse(blobStorageConnectionString);
var blobClient = blobStorageAccount.CreateCloudBlobClient();
return blobClient.GetContainerReference(blobStorageContainerName);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment