Search code examples
azuremsbuildcontinuous-integrationazure-web-rolesazure-cloud-services

Azure Cloud Service continuous integration with existing ccproj profile


How do I get continuous integration to work using publish settings from a profile in our Cloud Project?

Cloud Project Development profile

When using the default TfvcContinuousDeploymentTemplate.12.xaml, the publish ignores some of my profile settings. It doesn't use the correct storage account and always publishes to the Staging environment.

Here are the settings for my Development publish profile:

Publish Profile

Here is the current state of our build definition:

Build Definition

"Path to Deployment Settings" sounds like it would be correct but it is only for Azure Websites.

How do I get this to publish using all profile settings as specified in my .azurePubxml file?


Solution

  • CI template TfvcContinuousDeploymentTemplate.12.xaml will not use your publishing profile. Relevant settings (deployment slot, storage account name, ...) are configured in 6. Deployment > Deployment > Windows Azure Deployment Environment

    enter image description here

    /p:TargetProfile=Development specifies service configuration only (selects correct .cscfg file), not a publishing profile.

    If you need to configure additional features like for example remote debugging, you will have to add additional msbuild parameters in 2. Build > 5. Advanced > MSBuild arguments.