title: JSON variable substitution in appsettings.json file is not working in Azure DevOps Releases
body: <p>I am using Visual Studio 2019 to create a Restful Web API in C# using ASP.NET Core 3.1. I am trying to replace a value (AppSettings.ReleasePipeline) in my appsettings.json file in the release pipeline to different values for each stage, but it is not getting set on any stage and is just using the value in the appsettings.json file that is already there.</p>
  <p>Here is my appsetttings.json file:</p>
  <pre><code>{
    &quot;Logging&quot;: {
      &quot;LogLevel&quot;: {
        &quot;Default&quot;: &quot;Information&quot;,
        &quot;Microsoft&quot;: &quot;Warning&quot;,
        &quot;Microsoft.Hosting.Lifetime&quot;: &quot;Information&quot;
      }
    },
    &quot;AllowedHosts&quot;: &quot;*&quot;,
    &quot;ConnectionStrings&quot;: {
      &quot;CodeCampDatabaseConnectionString&quot;: &quot;Data Source=.;Initial Catalog=PSCodeCamp;User Id=sa;Password=Dallas!@#;Connect Timeout=30;&quot;
    },
    &quot;AppSettings&quot;: {
      &quot;ReleasePipeline&quot; : &quot;Environment from AppSettings&quot;
    }
  }
  </code></pre>
  <p>The variables in my release pipeline, look like this:</p>
  <p><img src="https://i.stack.imgur.com/Opp4f.png" alt="Image of my Release Pipeline" /></p>
  <p>If someone could assist, I would really appreciate it.</p>