Monday, 17 November 2014

Configuring Azure Connection string using .Net Application

Hi Folks, Today i will explain about how to configure Azure Connection strings from .NET Application.

There are two ways we can configure from connection string from Azure Cloud service application and  from .NET application.

If your application runs on Azure Virtual Machines or If you are building .NET applications that will run outside azure save your connection String in Web.config OR app.config files.


If your application runs in Azure cloud service you can save the connection string in Azure service configuration system(like *.cscfg nd csdef files).

<add key="StorageConnectionString" value="DefaultEndpointsProtocol=[https/http];AccountName=storageAccount-name;AccountKey=StorageAccount-key" />

DefaultEndPointsProtocaol will be either https or http.

replace the AccountName with your storage account Name.

accountKey will your storageAccount primary or secondary Access Key.

you will find these values from Azure Management Portal --> Storage.

Select your storage and at the bottom Navigational panel you will see the Manage Access Keys

Then it will populate the Manage Access keys Window.


No comments:

Post a Comment