title: Azure Function - The ConnectionString property has not been initialized
body: <p>I developed a Azure Function in Visual Studio and it works when published in Azure (since a year ago). </p>
  
  <p>Now I made a template from that Azure Function, in Visual Studio, and I changed some details, but it's mainly the same. When I test it locally, it works fine. </p>
  
  <p>But when I publish it in Azure and try to test it, I get this error: </p>
  
  <pre><code>The ConnectionString property has not been initialized
  </code></pre>
  
  <p>I usually write the Connection String in the Application Settings (and it works well for the older Azure functions).</p>
  
  <p>Here is how the function gets the value of the Connection String:</p>
  
  <pre><code>var repo = new GranularRepository(ConfigurationManager.AppSettings["BoConnectionString"]);
  </code></pre>
  
  <p>I also tried:</p>
  
  <pre><code>var repo = new AvgDeliveryTime_GranularRepository(Environment.GetEnvironmentVariable("BodbConnectionString"));
  </code></pre>