Step-by-step: Migrating ASP.NET Application to Windows Azure (Part 1 – Preparing the ASP.NET application)

In this series of blogs, I will write about the step by step of migrating an ASP.NET application to Windows Azure. As the example, I”ll use a simple Personal Website Starter Kit. Recently, I just notice that Microsoft have replaced that version with another which doesn”t have database engine. As it, I suggest you to download the older version from here.

(I assume you”ve successfully installed the Windows Azure Tools for Visual Studio. If you haven”t done so, go and download it here. At the time this article is written, the version of the VS Tools for Azure is 1.2 – June 2010)

Without further due, let”s start the migration:

1. Download and Install Personal Starter Kit


2. Having done the first step, start an empty solution in Visual Studio. I call it CloudPersonalSite.


3. Next, right click on the blank solution, select Add – New Project.


4. You may choose you preferred language (In this example,I”ll use C#),then select Cloud on the project types. Select Windows Azure Cloud Service as the template. Ultimately, fill-in the project name with CloudServicePersonal.


5.  As immediate, the New Cloud Service Project will pop-up and ask you for the roles in your project. By default, there are 4 roles available. I”ll choose ASP.NET Web Role and rename it to PersonalWebRole.



6. As soon as you click OK, Visual Studio will generate 2 projects for you. The first one is CloudServicePersonal which is your Windows Azure Cloud Service Project. The second one is the ASP.NET Web Role called PersonalWebRole. Do note that the ASP.NET Web Role is basically an ordinary ASP.NET Web Application Project (NOT ASP.NET WEBSITE) with some modification on web.config files as well as the new added file called WebRole.cs / WebRole.vb.


7. The next step is to create the personal web site based on the installed template. To do that, right click on the project and select Add – New Website. Select Personal Web Site Starter Kit as the template and name the website WebSitePersonal.

image_thumb117_04B75E2F image_thumb1410_1000726C

8. Since the template is actually created with .NET 2.0, Visual Studio will now prompt us whether to migrate it to .NET 3.5. To do that, click YES button.


You will now see the default page of the personal website,  the welcome.html if you have successfully completed those steps above.

In the next post, I”ll continue to write how to convert the web site to be ready on the Web Role. And then, we”ll migrate our on-premise database to SQL Azure as well.

Stay tuned!

This entry was posted in Uncategorized. Bookmark the permalink.

3 Responses to Step-by-step: Migrating ASP.NET Application to Windows Azure (Part 1 – Preparing the ASP.NET application)

  1. Pingback: Step-by-step: Migrating ASP.NET Application to Windows Azure (Part 3–Converting ASP.NET Web site to Web Role) | Wely's Cloud Journey...

  2. Pingback: Step-by-step: Migrating ASP.NET Application to Windows Azure (Part 2–Preparing SQL Azure Database) | Wely's Cloud Journey...

Leave a Reply

Your email address will not be published. Required fields are marked *