title: can't override appsettings.json settings with environment variables
body: <p>I can't override the settings of my <code>appsettings.json</code> file with environment variables.</p>
  
  <p><code>appsettings.json</code>:</p>
  
  <pre><code>{
    "AppSettings": {
      "LocalUpdatesDir": "&lt;some path&gt;",
      "BinaryDeltaCount": 5,
      "BinaryDeltaFilenameTemplate": "&lt;template&gt;",
      "Azure": {
        "User": "user here",
        "Password": "password here"
      }
    },
  }
  </code></pre>
  
  <p>Main:</p>
  
  <pre><code>public static void Main(string[] args)
  {
      var webHost = new WebHostBuilder()
          .UseKestrel()
          .UseContentRoot(Directory.GetCurrentDirectory())
          .ConfigureAppConfiguration((hostingContext, config) =&gt;
          {
              var env = hostingContext.HostingEnvironment;
              config.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
                    .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true, reloadOnChange: true);
              config.AddEnvironmentVariables();
          })
          .UseStartup&lt;Startup&gt;()
          .Build();
  
      webHost.Run();
  }
  </code></pre>
  
  <p><strong>Environment variables:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/1c0K9.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/1c0K9.jpg" alt="enter image description here"></a></p>
  
  <blockquote>
    <p><strong>Update 1:</strong></p>
  </blockquote>
  
  <p>Here I can see, that all my providers are registered:</p>
  
  <p><a href="https://i.stack.imgur.com/iPIAg.png" rel="noreferrer"><img src="https://i.stack.imgur.com/iPIAg.png" alt="enter image description here"></a></p>
  
  <p>What's really strange: In the environments variable list, there are about 80 entries in it. My two new ones are missing, BUT there are 2 environment variables in it, which I created a few hours ago and deleted right away. WHERE THE HECK ARE THEY COMING FROM?!</p>
  
  <blockquote>
    <p><strong>Update 2:</strong></p>
  </blockquote>
  
  <p>I restarted my computer and now I see my Environment variable in the list, but it doesn't override the value in <code>appsettings.json</code>?</p>