How to: Configure a Windows Azure Project with Visual Studio
Updated: February 5, 2014
You can configure a Windows Azure project, depending on your requirements for that project. You can set properties for the project for the following categories:
Publish an application to Windows Azure
You can set a property to make sure that an existing deployment in Windows Azure is not accidentally deleted.
Run or debug an application on the local computer
You can select a service configuration to use and indicate if you want to start the Windows Azure storage emulator.
Validate a service package when it is created
You can decide to treat any warnings as errors so that you can make sure that the service package will deploy without any issues. This reduces your wait time when you deploy and then discover that a failure occurred.
The following illustration shows how to select a service configuration to use when you run or debug your application locally. You can set any of the project properties that you require from this window, as shown in the illustration.
To Configure a Windows Azure Project
To configure a Windows Azure project from Solution Explorer, open the shortcut menu for the Windows Azure project and then choose Properties.
A page with the name of the Windows Azure project is displayed in the Visual Studio editor.
Choose the Development tab
To make sure that you do not accidentally delete an existing deployment in Windows Azure, in the Prompt before deleting an existing deployment list choose True.
To select the service configuration that you want to use when you run or debug your application locally, in the Service configuration list choose the service configuration.
Note 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 a Windows Azure Application with Visual Studio.
To start the Windows Azure storage emulator when you run or debug your application locally, in the Start Windows Azure storage emulator choose True.
To make sure that you cannot publish if there are package validation errors, in Treat warnings as errors choose True.
To make sure that your web role uses the same port each time it is started 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.
To save any changes that you have made to the properties of the Windows Azure project, choose the Save button on the toolbar.
ConceptsConfiguring a Windows Azure Project