Creating a Windows Azure Project with Visual Studio
A Windows Azure Project provides a template for your Windows Azure application and its roles. The Windows Azure Tools for Microsoft Visual Studio simplify the process of creating, configuring, debugging, and deploying a Windows Azure application as a cloud service.
A Windows Azure application consists of a combination these types of projects:
Windows Azure project. The Windows Azure project has associations to the role projects in the solution. It also includes the service definition and service configuration files. The service definition file defines the runtime settings for your application including what roles are required, endpoints, and virtual machine size. The service configuration file configures how many instances of a role are run and the values of the settings defined for a role. For more information about these settings, see How to: Configure the Roles for a Windows Azure Application with Visual Studio.
Web role project. The Windows Azure Tools provides template projects for these types of web roles:
ASP.NET Web Role, for building an ASP.NET application with a web front end
ASP.NET MVC4 Web Role
ASP.NET MVC3 Web Role
ASP.NET MVC2 Web Role (Visual Studio 2010 only)
WCF Service Web Role, for building a WCF service
Silverlight Business Application Web Role (requires Visual Studio 2012, Visual Studio 2010 with SP1, or Visual Web Developer 2010 Express with SP1)
If you're using Visual Studio 2010, you must install ASP.NET MVC4 to create MVC4 Web Roles.
Worker role project. A worker role performs background processing. A worker role can communicate with storage services and with other Internet-based services. A worker role can have any number of HTTP, HTTPS, or TCP endpoints.
Cache Worker Role A role that provides a dedicated cache to your application.
Worker Role with Service Bus Queue A service bus queue that provides message queueing functionality to communicate with the worker process. For more information, see How to Use Service Bus Queues.
In Visual Studio 2010, you can create worker role projects in F#, C#, and Visual Basic.
To create a Windows Azure project in Visual Studio
Start Microsoft Visual Studio as an administrator.
On the menu bar, choose File, New, Project.
In the Project Types pane, choose Cloud from the Visual C# or Visual Basic project template nodes.
In the Templates pane, choose Windows Azure Cloud Service.
Specify which version of the .NET Framework you want to use to develop your project. If you are running Visual Studio 2010, you may choose the .NET Framework 3.5 or the .NET Framework 4.
Enter a name and location for your project and a name for the solution. Choose the OK button.
In the New Windows Azure Project dialog box, choose the roles that you want to add, and choose the right arrow button to add them to your solution. You can add as many roles as you need.
To rename a role that you've added to your project, pause on the role in the New Windows Azure Project dialog box, and choose the Rename icon to the right of the role. You can also rename a role within your solution after it has been added.
Choose the OK button to create your solution in Visual Studio.