I would like to use the Azure Table Storage Service from an Azure Web Site (not a Cloud Service). There is guides on how to do this using Node.js but I like to use .NET MVC instead.
All the guides for .NET talks about storing the Azure Storage connection information in the ServiceConfiguration (as you do in a Cloud Service) but in an Azure Web site I do not have this (just a Web.config). If I am not mistaken it is also not possible to use the RoleEnvironment (used to read from the ServiceConfiguration) without running in the Azure emulator and I do not do this in an AzureWeb Site.
Is it possible to access the Table Storage from an Azure Web Site and if so how do I connect to it?
I have looked at this question and it does not look similar.
You can simply get the connection string from the web.config and parse it (note that you can also use the
CloudConfigurationManager.GetSettingmethod):And in your web.config you will need to add the connection string like this: