2 out of 2 rated this helpful - Rate this topic

Publish Windows Azure Application Wizard

After you develop a web application in Visual Studio, you can publish that application more easily to Windows Azure by using the Publish Windows Azure Application wizard. The following section explains the steps that you must complete before you use the wizard, and the remaining sections explain the features of the wizard.

  1. Before You Publish Your Application

  2. Choosing Your Subscription

  3. Configuring Your Settings

  4. Publishing Your Application

You must perform the following tasks before you can use the Publish Windows Azure Application wizard:

  • Obtain a Windows Live ID and a Windows Azure subscription.

  • Enable your web application for Windows Azure.

If you have already completed these tasks, you can skip the following two paragraphs.

After you obtain a Windows Live ID and a Windows Azure subscription, you must log on to the Windows Azure Platform Management Portal, and create a hosted service and a storage account. For more information about how to set up your Windows Azure environment, see Setting Up Services Required to Publish a Windows Azure Application from Visual Studio.

To enable your web application for Windows Azure, you must create a Windows Azure project with a web role in Visual Studio, and that project must be associated with the project for your application. To create the associated Azure project, open the shortcut menu for the project for your application, and then choose Add Windows Azure Deployment Project. Open the same shortcut menu again, and then choose Publish to Windows Azure. For more information about how to enable applications for Windows Azure, see How to: Migrate and Publish a Web Application to Windows Azure from Visual Studio.

Important note Important

You must invoke Visual Studio with administrator credentials (Run As Administrator).

When you are ready to publish your application, open the shortcut menu for the Windows Azure project, and then choose Publish. The following illustration shows the Publish Windows Azure Application wizard.

Subsection Heading

Insert subsection body here.

To choose a subscription

  1. Before you use the wizard for the first time, you must download your credentials. Choose the Sign In To Download Credentials link. Sign in to the Windows Azure portal when prompted, provide your Windows Azure user name and password, and then save the settings to a file. You will import the settings file in the next step.

    This is one of the publishing wizard screens
    Caution note Caution

    The settings file contains certificate information. Save the file to a secure location.

  2. Choose Import to populate the subscription list.

    Note Note

    The settings file is in the same format that WebMatrix uses and has a .publishsettings extension.

  3. In the Choose your subscription list, choose the subscription to use for this deployment. If you choose <Manage…>, you can create, edit, or delete subscriptions.

    Note Note

    The settings file can contain more than one subscription.

  4. At this point, you can publish the application, or you can modify any setting for this deployment. If you are ready to publish, choose Publish to deploy this application. Otherwise, choose Next to continue.

    Note Note

    If you chose Publish in this step, you can monitor the status of this deployment in Visual Studio.

You can modify both common and advanced settings for a deployment by using the Publish Windows Azure Application wizard. For example, you can choose a setting to deploy your application to a test environment before you release it. The following illustration shows the Common Settings tab for a Windows Azure deployment.

To configure the settings

  1. In the Hosted service list, create or choose a hosted service.

    Second screen of the Publishing Wizard.
  2. In the Environment list, choose either Production or Staging. Choose the staging environment if you want to deploy your application to a test environment. You can move your application to the production environment later.

  3. In the Build configuration list, choose either Debug or Release.

  4. In the Service configuration list, choose either Cloud or Local.

    Select the Enable Remote Desktop for all roles check box to enable Remote Desktop. This option is primarily used for troubleshooting. When you select this check box, the Remote Desktop Configuration appears. Choose the Settings link to change the configuration.

    Select the Enable Web Deploy for all web roles check box to enable web deployment. You must enable Remote Desktop to use this feature. For more information, see Publishing a Windows Azure Application using the Windows Azure Tools.

  5. Choose the Advanced Settings tab. In the Deployment label field, either accept the default name, or enter a name of your choosing. To append the date to the deployment label, leave the check box selected.

    Third screen of the Publishing Wizard
  6. In the Storage account list, choose the storage account to use for this deployment.

    Note Note

    The Windows Azure storage account stores the package for the application deployment. After the application is deployed, the package is removed from the storage account.

    Leave the Enable deployment upgrade check box selected so that this upgrade will performed in-place.

    Note Note

    Your service must define two instances to be upgraded without downtime. Otherwise, your service is taken offline while it is upgraded, and the service is unavailable until the upgrade is complete.

    If you want to use IntelliTrace, select the Enable IntelliTrace check box. For more information, see Debugging a Published Hosted Service with IntelliTrace and Visual Studio.

    If you want to profile this application, select the Enable profiling check box. Choose the Settings link to display the profiling options. For more information, see Profiling a Windows Azure Application.

    Important note Important

    You can enable either profiling or IntelliTrace but not both.

  7. Choose Next to view the summary page for the application.

To publish the project

  1. You can create a publishing profile from the settings that you have chosen. To save this profile, choose the Save icon. The wizard creates the profile and saves it in the Visual Studio project. To modify the profile name, open the Target profile list, and then choose <Manage…>.

    Summary screen of the Publishing Wizard
    Note Note

    The publishing profile appears in Solution Explorer in Visual Studio, and the profile settings are written to a file with an .azurePubxml extension. Settings are saved as attributes of XML tags.

  2. Choose Publish to publish your application. You can monitor the process status in the Output pane in Visual Studio.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
http://207.46.192.232/

http://207.46.192.232/http://207.46.192.232/http://207.46.192.232/