tag:help.appveyor.com,2012-11-13:/discussions/questions/1102-how-to-update-miscelleneous-config-file-which-is-deployed-in-azure-cloud-serviceAppVeyor: Discussion 2018-10-19T08:17:05Ztag:help.appveyor.com,2012-11-13:Comment/363305542015-03-20T06:21:46Z2015-03-20T06:21:46ZHow to update miscelleneous config file which is deployed in Azure Cloud Service<div><p>Well, if it's Azure cloud service and those
<code>log4net.config</code> and <code>loggly.user.config</code> are
<em>inside</em> cloud service package there is no way to update
them during the deployment. They should be updated during the build
<em>before</em> cloud service package created.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/363305542015-03-22T17:42:37Z2015-03-22T17:42:37ZHow to update miscelleneous config file which is deployed in Azure Cloud Service<div><p>I am trying to figure out how this will work. Before I ran into
this issue I was able to create a build just once and deploy the
same build to various environments.<br>
If I have to change the config files before/during the build it
will mean I have to create different appveyor projects to deploy to
various environments. This also introduces the risk of somebody
checking in code that is not in a lower environment.</p>
<p>I do have the option to merge these config files into my
app.config or web.config files.<br>
Will that help in any way?</p>
<p>I hope somebody can share how they are handling this type of
situation.</p></div>rajindersinghtag:help.appveyor.com,2012-11-13:Comment/363305542015-03-23T06:44:44Z2015-03-23T06:44:44ZHow to update miscelleneous config file which is deployed in Azure Cloud Service<div><p>I think this is exactly what you need:<br>
<a href="https://blogs.endjin.com/2015/03/using-a-different-new-relic-application-name-per-environment-with-azure-cloud-services/">
https://blogs.endjin.com/2015/03/using-a-different-new-relic-applic...</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/363305542015-03-23T19:35:27Z2015-03-23T19:35:27ZHow to update miscelleneous config file which is deployed in Azure Cloud Service<div><p>I will use similar approach but my solution will be easier. I
will most likely include all config files in my deployment and use
this type of powershell script to copy the appropriate file.</p>
<p>So I will have loggly.dev.user.config, loggly.test.user.config
etc.<br>
Powershell script will read the ENV value in cloud configuration
file and copy loggly.dev.user.config to loggly.user.config.</p>
<p>Thanks for finding this.</p></div>rajindersingh