Windows Azure - Creating and Deploying Web Role

In this article we are creating a web role using Visual Studio 2010. This will
make the reader familiar with Windows Azure.

Open Visual Studio 2010 and use the command New Project. From the appearing
dialog box select the Windows Azure Project option from Visual C# group.

Enter an appropriate name for the project and click Ok to continue. Now you will
be prompted with another dialog for selecting the type of project.

Double click on the ASP.NET Web Role option to select a web role project and
click Ok button.

Now you are ready with the Web Role project. Now execute the application and you
will be able to see the application inside the browser. From the system tray,
you can verify the Windows Azure Emulator as running.

If successfully executed, you can see the web role opened in a browser like
below:

Exceptional Case 1

In case the emulator raised an error like below dialog, you have to restart
Visual Studio in the Computer Administrator context.

Exceptional Case 2

In case you are struck with issue of Compute Emulator Shutdown issue, you can
resolve it with the
link
Deploying the Web Role

After developing the web role, we have to package it and deploy to the cloud.
The entire steps in this are:

Create Web Role

Create Package

Deploy to Cloud

Creating the web role is already performed. Now
we need to do the following steps.

Create Package

For creating the package, right click on the project context menu and click
Package.

Now as dialog box will be appearing, leave the default options selected and
click the Package button on the dialog.

After performing the packaging, the folder containing package is opened in a new
explorer window automatically.