Export (0) Print
Expand All

How to: Configure an Azure Cloud Service Project with Visual Studio

Updated: August 12, 2014

You can configure an Azure cloud service project, depending on your requirements for that project. You can set properties for the project for the following categories:

  • Publish a cloud service to Azure

    You can set a property to make sure that an existing cloud service deployed to Azure is not accidentally deleted.

  • Run or debug a cloud service on the local computer

    You can select a service configuration to use and indicate whether you want to start the Azure storage emulator.

  • Validate a cloud service package when it is created

    You can decide to treat any warnings as errors so that you can make sure that the cloud service package will deploy without any issues. This reduces your wait time if you deploy and then discover that a failure occurred.

The following illustration shows how to select a configuration to use when you run or debug your cloud service locally. You can set any of the project properties that you require from this window, as shown in the illustration.

Configure a Windows Azure Project

  1. To configure a cloud service project from Solution Explorer, open the shortcut menu for the cloud service project and then choose Properties.

    A page with the name of the cloud service project appears in the Visual Studio editor.

  2. Choose the Development tab

  3. To make sure that you do not accidentally delete an existing deployment in Azure, in the Prompt before deleting an existing deployment list choose True.

  4. To select the service configuration that you want to use when you run or debug your cloud service locally, in the Service configuration list choose the service configuration.

    noteNote
    If you want to create a service configuration to use, see How to: Manage Service Configurations and Profiles. If you want to modify a service configuration for a role, see How to: Configure the Roles for an Azure Cloud Service with Visual Studio.

  5. To start the Azure storage emulator when you run or debug your cloud service locally, in the Start Azure storage emulator choose True.

  6. To make sure that you cannot publish if there are package validation errors, in Treat warnings as errors choose True.

  7. To make sure that your web role uses the same port each time it starts locally in IIS Express, in Use web project ports, choose True. To use a specific port for a particular web project, open the shortcut menu for the web project, choose the Properties tab, choose the Web tab, and change the port number in the Project Url setting in the IIS Express section. For example, enter http://localhost:14020 as the Project Url.

  8. To save any changes that you have made to the properties of the cloud service project, choose the Save button on the toolbar.

See Also

Show:
© 2014 Microsoft