Step by Step walkthrough on CRUD Opearion on Azure table Part-02

No.of Views2174
Bookmarked0 times
Downloads 
Votes0
By  Dhananjay Kumar   On  24 Jul 2010 10:07:14
Tag : Windows Azure , General
This article is going to explain , how we can use AZURE table. This article will explain how to create a storage account and then modify the connection string in existing azure application using local development storage.
emailbookmarkadd commentsprint

Images in this article missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at info@codegain.com

 

Introduction

This article is going to explain , how we can use  AZURE table. This article will explain how to create a stroage account and then modify the connection string in exsiting azure application using local development storage.
Note : This article is part 2 of series of article , so I recoomend please go through  this article  before redaing this one.

You can see video of this article here

Step 1

Login to your Azure portal with your live credential.  After your successful login , you can see the below screen . Just click on New Service. 

Image Loading

Step 2

Then you need to select Storage account from given options.  As you going to create account for windows azure storage . 

Image Loading

Step 3

In this step , you need to provide service label and service description .

Image Loading

 

Step 4

You have to provide a unique name here.  I am providing debugmode as unique name. 

Image Loading

Step 5

In this step you need to set the affinity group. If you don’t want to put your storage account in a particular affinity group, you can select the region of your own. 

Image Loading

And now click on Create

Step 6

Once you click create, you can see three end points has been created for you in azure storage. 

Image Loading

Note: Primary access key and secondary access key    has been blacked out

Accessing Windows Azure table

If you are referring the article here , then navigate to step 5. Step 5 explains how to set the connection string.  You will have to modify the connection string to use Azure table.

Step 1

Click on Webrole 1 in solution explorer. 

Image Loading

Step 2

Click on the setting in the tab

Image Loading

Step 3

In the top select add setting 

Image Loading

Step 4

When you add a setting a setting will get added. Now from drop down , select Connection string as type. 

Image Loading

Step 5

When you click to set the value, you will get the below child window.  Select Enter storage credentials 

Image Loading

Now you need to provide

1.    Account name
2.    Account Key

Now to provide these two information , copy and paste below two things from your azure portal.  In my case account name is debugmode and account key (The blacked out) . 

Image Loading

Once you provide these two details, leave the default setting and press ok. 

Image Loading

You can see in setting tab a value has been added. 
Next  and last step , what you need to do is open WebRole.CS file  and put the  setting name from previous step  at these two below places . 

Image Loading

After performing above steps, now your application has been modified to use Azure table.  I hope this article was useful. Thanks for reading Happy Coding.

 
Sign Up to vote for this article
 
About Author
 
Dhananjay Kumar
Occupation-Software Engineer
Company-Infosys Technolgies,Pune
Member Type-Gold
Location-India
Joined date-20 Jul 2009
Home Page-http://dhananjaykumar.net/
Blog Page-http://dhananjaykumar.net/
Dhananjay Kumar is Microsoft MVP on connected system. He blogs at http://dhananjaykumar.net/ . You can follow him http://twitter.com/debugmode_/ and reach him at dhananjay.25july@gmail.com
 
 
Other popularSectionarticles
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top
</