VKinfotek Inc.
  • Us
    About Us
    Contact Us
  • FAQs
  • Ready Software
    Ready ERP ASP Core Software for Azure Cloud
    Ready Web ERP Software
    Ready ASP.Net Azure Software
    Ready C# SQL Server Accounting Software
    Ready ASP.Net MVC and EF Software
First slide
Earn $100/hour in USA! Click Here

Q75. How to configure Azure Connection Strings?

For cloud service applications, we store the Azure Connection Strings in the Azure service configuration file. We can create a connection string in visual studio for a cloud application. In Visual studio, select cloud service project, Double-click on the WebRole in the Roles section of your cloud project, and then click on the settings section of the role designer. The following screen is displayed. Using Add setting button, we can add multiple connection strings which are targeted for different environments. We will create one for the cloud and one for local development.

Click on the Add Setting button and enter the name of the connection string. I have entered the name 'MyConnectionString'. Select the Connection String in the Type dropdownlist and press the ellipsis button.

settings section of the role designer

The Create Storage connection string dialog is displayed.

We are targeting a storage account in the cloud, so enter the primary access key for that storage account. The Account key can be copied from the “manage access keys” option in the storage section of the Windows Azure Management Portal.

Now, in the Storage connection string dialog, we can enter the Azure storage account credentials - Account name and the Account key.

create storage connection string dialog

With these steps connection string is created and placed in the configuration file automatically. For later usage in the application, the connection string can be retrieved from the application code using CloudConfigurationManager which is a class in the Storage Client Library.

This way of creating Connection string relies on the default endpoints for the storage services.
  • Prev Question
  • Next Question

See More Questions and Answers on - Azure Table Storage (cont..)

  • How to access the Azure table storage from a .NET application?
  • What is an Azure storage connection string?
  • How to configure Azure connection strings for connecting to the storage emulator?
  • How to create a table in Azure storage?
  • How to create a table using a simple c# console application?
  • How to insert entities into the Azure table?
  • How do I retrieve a single entity from table storage using tableoperation?
  • How do I query azure table storage using TableQuery class?
  • How to update records in a table storage?

Back to Master List of 100+ Questions and Answers

People also viewed: cover image of book develop erp software using asp core and deploy to Azure Create your own ERP Software using ASP Core>>
cover image of azure cloud book Create your own Azure SOM Software>>
cover image of asp.net book Create your own ERP Software using ASP .Net and SQL>>
cover image of foundation database programming book Create your own Accounting Software using C# >>
cover image of entity framework book Create your own SOM using Entity Framework MVC >>

  • SITEMAP
  • Terms of use
  • Testimonials

Back to top

Copyright © 2018 - All Rights Reserved - VKInfotek.com