FÖRSÄLJNING: 1-800-867-1389
Det här innehållet finns inte tillgängligt på ditt språk men här finns den engelska versionen,

Creating an Azure Project with Visual Studio

Updated: May 12, 2015

The Azure Tools for Visual Studio provide a template that lets you create a cloud service for Azure. The tools also help you configure, debug, and deploy the cloud service to Azure.

An Azure cloud service solution contains the following 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 Cloud Service 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 MVC5 Web Role

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

Var detta till hjälp?
(1500 tecken kvar)
Tack för dina kommentarer
© 2015 Microsoft