Tuesday, March 1, 2011

Creating a “Hello world” application in Azure

In this article we will see how to create a “Hello World!!!” application in azure in .net. I had used Visual Studio 2010 along with azure SDK 1.3 installed. Start visual studio and select a new project. In the cloud template select Windows Azure Cloud Service.
clip_image002
Once you click OK. It asks for selecting a Role. Here we are adding an ASP.Net Web role.
clip_image004
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. ASP.Net project is like a normal web project.
clip_image006
Here I removed header div from the SiteMaster.
clip_image008
And add a text “Hello World!!!!” in the default.aspx
clip_image010
And we are done. Now Select Cloud Service as your startup project and run it. When you run it, azure simulation environment is initialized, and it starts development storage and development fabric.
clip_image012
And here you can see your Hello World!!!
clip_image014
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.
clip_image016
Here My CloudService1 is running having a single instance of WebRole.
clip_image018

No comments:

Post a Comment