Wriju's BLOG

.NET, Cloud and everything

Windows Azure Storage Connection String

If you are not using Visual Studio Cloud Projects (where one cloud project and n-number of Web/Worker Role project(s)) and building simple WebSite, you may need this.

This is the connection string you need in your Web.Config file under ConnectionStrings

DefaultEndpointsProtocol=http;AccountName=[account_name];AccountKey=[account_key]

After which you need to initiate by doing

CloudStorageAccount csa =

CloudStorageAccount.Parse(ConfigurationManager.ConnectionStrings["DataConnection"].ConnectionString);

Namoskar!!!