title: Azure functions - getting configuration recommended practices
body: <p>I have created an Azure Function v2. In most articles I people suggest following:</p>
  
  <pre><code> var config = new ConfigurationBuilder()
          .SetBasePath(context.FunctionAppDirectory)
          .AddJsonFile("local.settings.json", optional: true, reloadOnChange: true)
          .AddEnvironmentVariables()
          .Build();
  </code></pre>
  
  <p>Does a function hosted on azure also have a local.settings.json file? Will this code snippet get the app settings defined in Azure? Or do you need to change local.settings.json before publish? I thought local.settings.json was a local developer thing?</p>
  
  <p>Is there any recommended practices using above snippet vs  </p>
  
  <pre><code>Environment.GetEnvironmentVariable("xx")?
  </code></pre>