Azure Blob Storage – connection string issue

More fun with the Azure API, this time with blob storage. Azure blob storage allows you to store large amounts of binary files or data, accessible (in full CRUD fashion) via a REST API along with some provided libraries for various languages, including .NET.

Microsoft provide an Azure storage emulator that runs locally on your development machine, and I had a bit of trouble connecting to it. The particular error I was getting was generated by this line of code:

var storageAccount = CloudStorageAccount.Parse(storageConnectionString);

The error itself was:

"No valid combination of account information found."

It turned out that the connection string for my storage account was formatted incorrectly for local development, despite conflicting things I’d read online – all you need, in fact, is this!

UseDevelopmentStorage=true

Easy!

Leave a Reply