Parameterisation during Azure Cloud Service Worker Role Deploy

chris.dunn's Avatar

chris.dunn

15 Jun, 2015 04:28 PM

Hi,

Any idea's or recommendations how to parameterise and transform app.config values when deploying a Azure Cloud Server Worker Role?

I want to avoid having different build configurations and therefore different config files, I'm looking for my worker role to handle config parameterisation the same as a web application/web role and therefore store my environment specific settings in environment variables. Is this possible? is it possible to invoke the part of web deploy that only handles parameterisation? I've not found anything yet ...

I've searched these and no joy. I also came across the following articles but these aren't ideal because they still need the configuration to be stored in source control via config or scripts.

https://blogs.endjin.com/2015/03/using-a-different-new-relic-application-name-per-environment-with-azure-cloud-services/
http://www.protosystem.net/post/2009/06/01/Using-Powershell-to-manage-application-configuration.aspx

Any thoughts?

  1. Support Staff 1 Posted by Feodor Fitsner on 15 Jun, 2015 05:07 PM

    Feodor Fitsner's Avatar

    Take a look at this thread: http://help.appveyor.com/discussions/questions/1102-how-to-update-m... There is a link to blog post with possible approach.

  2. chris.dunn closed this discussion on 16 Jun, 2015 11:56 AM.

  3. chris.dunn re-opened this discussion on 17 Jun, 2015 07:54 AM

  4. 2 Posted by chris.dunn on 17 Jun, 2015 07:54 AM

    chris.dunn's Avatar

    Thanks for the response, I had a feeling it wasn't possible but I had to ask.

    In the end I've gone with using several cscfg files each targeting a specific environment such as dev, test and live. I then used your cloud service deployment 'Target profile (optional)' parameter in order to select which cscfg to deploy.

  5. chris.dunn closed this discussion on 17 Jun, 2015 02:29 PM.

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