Azure Cloud Service Deploy Parametrization

Daniel Clausen's Avatar

Daniel Clausen

18 Sep, 2015 03:37 PM

In the documentation there is a section that states it is possible to use parameters for environment variables for cloud service deployments:
http://www.appveyor.com/docs/deployment/azure-cloud-service#cloud-service-deploy-parametrization

However this part of the documentation is sparse on detail. I simply need to change a few web.config values (connection strings, app settings, etc) based on the environment it is being deployed to. I'm familiar with using parameters.xml and have that working with AppVeyor to deploy Azure Web Apps via WebDeploy. How do I get it to work with a Cloud Service Web Role?

  1. Support Staff 1 Posted by Feodor Fitsner on 18 Sep, 2015 06:44 PM

    Feodor Fitsner's Avatar

    Please take a look at this thread discussion a similar problem and solution: http://help.appveyor.com/discussions/questions/1102-how-to-update-m...

  2. 2 Posted by Daniel Clausen on 18 Sep, 2015 09:04 PM

    Daniel Clausen's Avatar

    I fixed it by looking at the link you provided and the following thread:
    http://help.appveyor.com/discussions/questions/423-cloud-service-deployment-parametrisation

    I was able to write a script to transform my web config attributes based on environment settings.

  3. Support Staff 3 Posted by Feodor Fitsner on 18 Sep, 2015 09:11 PM

    Feodor Fitsner's Avatar

    Right, this is the only way as web.config is inside the package.

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:00 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac