Reputation: 60841
I'd like to replace the value of Interval
with variables from my release.
Here's my app.config
:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="Interval" value="15000" />
</appSettings>
</configuration>
I'm using Azure App Service Deploy
task to deploy a .NET Core web job:
Here are all the options I have:
How do I replace values in my app.config
using variables from my release?
Upvotes: 0
Views: 111
Reputation: 3448
Thanks to @Levi Lu-MSFT for the Insight. In Azure DevOps release pipeline go to Pipeline > Variables add a variable with the name Interval
and value 30000
.
Check that the app.config
file is part of the deployment package and located in the correct folder.
<add key="Interval" value="15000" />
in the app.config
file.value="15000"
with value="30000"
, based on the pipeline variable.After deployment, transformed app.config
file will look like this:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="Interval" value="30000" />
</appSettings>
</configuration>
Upvotes: -1