title | description | author | manager | ms.technology | ms.topic | ms.date | ms.author |
---|---|---|---|---|---|---|---|
Create an Azure cloud service project |
Learn now to create an Azure cloud service project with Visual Studio |
ghogen |
jmartens |
vs-azure |
how-to |
03/19/2019 |
ghogen |
[!INCLUDE Visual Studio]
[!INCLUDE Cloud Services]
Visual Studio provides a project template that lets you create an Azure cloud service, which is a simple general-purpose Azure service. Once the project has been created, Visual Studio enables you to configure, debug, and deploy the cloud service to Azure.
This section walks you through creating an Azure cloud service project in Visual Studio with one or more web roles.
-
From the start window, choose Create a new project.
-
In the search box, type in Cloud, and then choose Azure Cloud Service.
-
Give the project a name and choose Create.
-
In the New Microsoft Azure Cloud Service dialog, select the roles that you want to add, and choose the right arrow button to add them to your solution.
-
To rename a role that you've added, hover on the role in the New Microsoft Azure Cloud Service dialog, and, from the context menu, select Rename. You can also rename a role within your solution (in the Solution Explorer) after it has been added.
The Visual Studio Azure project has associations to the role projects in the solution. The project also includes the service definition file and service configuration file:
- Service definition file - Defines the run-time settings for your application, including what roles are required, endpoints, and virtual machine size.
- 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 files, see Configure the Roles for an Azure cloud service with Visual Studio.