Azure Cloud Service - Add Existing Web Application To Cloud Service

This article is a part of a series of articles related to one of the Azure Compute options “Cloud Services”.

 

This article explains how to add an existing ASP.NET web application as an Azure Cloud Service if you are planning to migrate it to the Azure Cloud Services.

Open Visual Studio (I’m using VS 2013) and navigate to your web application, as shown below.

Web Applicatio

Now, right click on the project and click on “Convert” >> “Convert to Microsoft Azure cloud Service Project”, as shown below.

Convert

Clicking on convert button will actually add a new Azure Cloud Service project.

Project

It also adds the required libraries to the bin folder and adds references to the project.

Now, press Ctrl + F5 to execute the application. As shown below, it executes the Web Role and displays the output in the web browser.

Browser

You can also add additional Web Role to the same Azure Cloud Service project if required. Right click on the Roles folder located in the Azure Cloud Service and select Add  New Web Role Project, as shown below.

Project

Clicking on the “New Web Role Project” will open up the following window where you can select the type of Role that you would like to add to the project.

New Web Role Project

In this example, I have chosen a Web Role. I provide it with a name and click on “Add” which opens the following window where I need to select the type of Web Application for the Web Role.

Add

After selecting the required application, click on “OK” button to create the project, as shown below.

create

You can now execute the application. Hope you enjoyed the article. Your feedback is much appreciated.


Similar Articles