Exportar (0) Imprimir
Expandir Tudo
EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

Creating an Azure Project with Visual Studio

Updated: October 1, 2013

An Azure Project provides a template for your Azure application and its roles. The Azure Tools for Microsoft Visual Studio simplify the process of creating, configuring, debugging, and deploying an Azure application as a cloud service.

An Azure application consists of a combination these types of projects:

  • Azure project. The 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 an Azure Application with Visual Studio.

  • Web role project. The 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

    • WCF Service Web Role, for building a WCF service

    • Silverlight Business Application Web Role (requires Visual Studio 2012)

  • 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.

    1. Cache Worker Role A role that provides a dedicated cache to your application.

    2. Worker Role with Service Bus Queue A service bus queue that provides message queuing 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.

  1. Start Microsoft Visual Studio as an administrator.

  2. On the menu bar, choose File, New, Project.

  3. In the Project Types pane, choose Cloud from the Visual C# or Visual Basic project template nodes.

  4. In the Templates pane, choose Azure Cloud Service.

  5. Specify which version of the .NET Framework you want to use to develop your project.

  6. Enter a name and location for your project and a name for the solution. Choose the OK button.

  7. In the New 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.

  8. 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.

  9. Choose the OK button to create your solution in Visual Studio.

Mostrar:
© 2014 Microsoft