'Using parameters.xml to set parameters on scope ApplicationInsights.config
We are trying to push a ConnectionString key in ApplicationInsights.config
via parameters.xml
. The parameter does not do his way to the said file.
We build a webdeploy package that is then published to different environnements. All the other parameters are for the web.config
and works as expected.
We want to replace
<ConnectionString> your connection string </ConnectionString>
tag in ApplicationInsights.config
file through parameter.xml
using azure DevOps release pipeline as we have connection string value different for our Development/UAT/Production
environment.
But its not working using
<parameter name="ConnectionString" defaultValue="ConnectionString" >
<parameterEntry kind="XmlFile"
scope="\\ApplicationInsights.config$"
match="/ApplicationInsights/ConnectionString/text()">
</parameterEntry>
</parameter>
Can someone please suggest how to do it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|