Before reading this article, I highly recommend reading the following previous parts:
- Introduction to Microsoft Azure: Part 1
- Introduction to Microsoft Azure: Part 2
- Introduction to Microsoft Azure: Part 3 (Data Service)
- Practicing Microsoft Azure: Part 4
- Practicing Microsoft Azure: Part 5 (App Service)
- Practicing Microsoft Azure: Part 6 (Cloud Computing)
- Practicing Microsoft Azure: Part 7 (Azure Web Role Project)
Deploying Azure service from Visual Studio
This article is designed to showcase the creation of a simple ASP.NET web role project and its deployment into the Azure cloud environment using Visual Studio itself. However, the Windows Azure Portal is sufficient to create, configure and deploy any cloud service through its full-fledged user interface. You shall come to an understanding of the various features of the Visual Studio IDE that are directly correlated with the live Azure portal. In fact, there is no need to rely on a browser to access the Azure development portal. Whatever you create or configure in Visual Studio, for instance a website, virtual machine, or database, shall be immediately reflected into the Azure portal. Overall, the objective behind writing this paper is to guide the developer in the direct manipulation of the Azure service using Visual Studio.
Prerequisites
This article expects you to have at least a minimal understanding of .NET development, especially ASP.NET with C# and Object-Oriented Programming concepts. You will need the following hardware and software to complete the practice exercises in this article:
• One of the Windows 7 editions, Windows Server 2008 with Service Pack 2, or Windows 8
• Visual Studio 2010, or any later edition
• Windows Azure SDK.
• An Internet connection to work with Windows Azure.
Getting Started
Managing projects and solutions in the cloud through the Windows Azure Portal is simple and straightforward. In this section, you deploy your sample web role project to the cloud using Azure Services as a host. You follow the manual deployment process using Visual Studio, so that you can familiarize yourself with all the procedures involved in the process. This article shows this manually deployment process by creating a simple ASP.NET web role project that yields the square root of an integer.
Step 1
Launch Visual Studio that is dully leveraging the Azure SDK. Choose an Azure Cloud Service project, name it sqrtCalaculation. Subsequently, add a WebRole from the prompted template. Visual Studio will therefore create solution the associtaed essential files.
Step 2
Now, open the Default.aspx design file from the WebRole1 file hierarchy. Arrange a couple of ASP.NET controls such as text box, labels and button there.
Step 3
Then, place the following Square root calculation logic in the button click event handler.











Bhuvanesh MohankumarPosted Apr 23, 2016, 5:53 PM
Useful for our students for training
Santhakumar MunuswamyPosted Apr 25, 2015, 8:10 AM
Thanks for nice article sir
Yatendra SharmaPosted Mar 21, 2015, 1:18 AM
nyc article sir