title: Environment variable in Azure function is not retrieved
body: <p>I have an Azure function. It should retrieve some environment variables values like this:</p>
  <pre><code>   string username = Environment.GetEnvironmentVariable(&quot;BASIC_AUTH_USERNAME&quot;, EnvironmentVariableTarget.Process) ?? _config[&quot;BASIC_AUTH_USERNAME&quot;] ?? _config[&quot;Values:BASIC_AUTH_USERNAME&quot;];
  </code></pre>
  <p>For local testing, the variables are set in local.settings.json:</p>
  <pre><code>{
    &quot;IsEncrypted&quot;: false,
    &quot;Values&quot;: {
       &quot;BASIC_AUTH_USERNAME&quot;: &quot;Set in Azure. For development, set in User Secrets (secrets.json)&quot;,
    ...
    }
  }
  </code></pre>
  <p>In Azure, I set corresponding variables in the release pipeline:</p>
  <pre><code>- stage: Production
  dependsOn: QA
  variables:
  - group: Production
  </code></pre>
  <p><a href="https://i.stack.imgur.com/XV1NV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XV1NV.png" alt="enter image description here" /></a></p>
  <p>Everything seems to be in place, and yet when I run the Azure function via Postman, the username is null. What can I be missing?</p>