Creating a "Hello world" application in Azure



In this article we will see how to create a "Hello World!!!" application in Azure using .Net. I used Visual Studio 2010 along with the Azure SDK 1.3 installed. Start Visual Studio and select a new project. In the cloud template select Windows Azure Cloud Service.

WinAzure1.gif

Once you click OK, it asks for selecting a Role. Here we are adding an ASP.Net Web role.

WinAzure2.gif

It will create two projects, CloudService1 (Azure Service Project) and WebRole1 (ASP.Net Project). The Azure service project is used to configure the application, and to create a deployment package. The ASP.Net project is like a normal web project.

WinAzure3.gif

Here I removed header div from the SiteMaster.

WinAzure4.gif

And add a text "Hello World!!!!" in the default.aspx

WinAzure5.gif

And we are done. Now Select Cloud Service as your startup project and run it. When you run it, the Azure simulation environment is initialized, and it starts development storage and development fabric.

WinAzure6.gif

And here you can see your Hello World!!!

WinAzure7.gif

If you select WebRole1 as your startup project and run the solution, it will run as a normal ASP.Net project and hosted locally on localhost.

If you click on the Azure Simulation and select "Show development Fabric UI" then it will show the Azure services running on your machine.

WinAzure8.gif

Here My CloudService1 is running having a single instance of WebRole.

WinAzure9.gif


  


Similar Articles