title: Where do Azure WebJobs read configuration settings from?
body: <p>I’m developing an Azure WebJob with Visual Studio 2019, with Microsoft.NETCore.App v5.0.0 framework. I need to read values from configuration, but I don’t understand where I should put them to finally overwrite them in the Azure WebJob’s page in the Azure portal. So far, I’ve created the following <code>appsettings.json</code>:</p>
  <pre><code>{
    &quot;ConnectionStrings&quot;: {
      &quot;AzureWebJobsStorage&quot;: &quot;...&quot;
    },
    &quot;firstValue&quot;: &quot;...&quot;,
    &quot;secondValue&quot;: &quot;...&quot;
  }
  </code></pre>
  <p>The following public method</p>
  <pre><code>public static async Task Example(
     [BlobTrigger(&quot;%firstValue%/{blobName}&quot;)] Stream blobReceived
     [Blob(&quot;%secondValue%/{blobName}&quot;, FileAccess.Write)] Stream blobToWrite,
     ILogger logger)
  </code></pre>
  <p>Correctly reads the values of <code>firstValue</code> and <code>secondValue</code> from <code>appsettings.json</code>. That said, I see other projects that use <code>app.config</code> files, whose values are then retrieved with something like:</p>
  <pre><code>ConfigurationManager.AppSettings[&quot;...&quot;];
  ConfigurationManager.ConnectionStrings[&quot;...&quot;].ConnectionString;
  </code></pre>
  <p>Should I use <code>app.config</code> instead of <code>appsettings.json</code>? How do I read values I put in the <code>appsettings.json</code> file when we speak about Azure WebJobs?</p>