locked
Azure Storage Used by non-Azure Website RRS feed

  • Question

  • I inherited a MVC EF website that was later converted to Azure for everything.  We are taking the Azure Website and Azure SQL Server off Azure however and hosting both on our own servers.  However we still want to use Azure Blob storage.  Apparently on my development environment I have to install the Azure SDK for Visual Studio and configure settings using a command prompt.  On my local environment I was getting (Azure Reader?) errors relating http://127.0.0.1:10002.  When I uploaded the production site to the new server I getting the same errors.  What do I have to configure to get rid of that?

    Thank you

    Monday, April 7, 2014 2:53 PM

Answers

  • Can you tell what's the error message you're getting on your local environment? For production, please check the connection string. If it is still "UseDevelopmentStorage=true", you will need to change it to point to an actual cloud storage account.

    Monday, April 7, 2014 3:19 PM
  • Thank you so far!

    I fixed that in the web.config file to point to our blob storage account

    <add name="AzureReader2" connectionString="DefaultEndpointsProtocol=http;AccountName=blobnuqa;AccountKey=<our account key>endpoint="http://blobnuqa.blob.core.windows.net" prefix="~/azure/" />

    and I don't seem the be getting an error.

    I have another key in the web.config file however and the settings above generate errors when I point to table storage:

    Original:

    <add key="TableStorageConnectionString" value="UseDevelopmentStorage=true" />

    New:

    <add key="TableStorageConnectionString" value="DefaultEndpointsProtocol=http;AccountName=blobnuqa;AccountKey=<our Key>; endpoint="http://blobnuqa.tabel.core.windows.net"  />

    Tuesday, April 8, 2014 2:11 PM

All replies

  • Can you tell what's the error message you're getting on your local environment? For production, please check the connection string. If it is still "UseDevelopmentStorage=true", you will need to change it to point to an actual cloud storage account.

    Monday, April 7, 2014 3:19 PM
  • Thank you so far!

    I fixed that in the web.config file to point to our blob storage account

    <add name="AzureReader2" connectionString="DefaultEndpointsProtocol=http;AccountName=blobnuqa;AccountKey=<our account key>endpoint="http://blobnuqa.blob.core.windows.net" prefix="~/azure/" />

    and I don't seem the be getting an error.

    I have another key in the web.config file however and the settings above generate errors when I point to table storage:

    Original:

    <add key="TableStorageConnectionString" value="UseDevelopmentStorage=true" />

    New:

    <add key="TableStorageConnectionString" value="DefaultEndpointsProtocol=http;AccountName=blobnuqa;AccountKey=<our Key>; endpoint="http://blobnuqa.tabel.core.windows.net"  />

    Tuesday, April 8, 2014 2:11 PM