title: How can I get Azure application settings locally?
body: <p>I'm attempting to integrate SendGrid with my application, which is hosted on Azure.</p>
  
  <p>One of the instructions is to store the API key as an application setting in Azure, which I have done.</p>
  
  <p>I'm trying to test locally, and when I try and get that setting, it's coming back as <code>null</code>:</p>
  
  <pre><code>var apiKey = System.Environment.GetEnvironmentVariable("SENDGRID_APIKEY");
  </code></pre>
  
  <p>I figured maybe it needed to be in my web.config, so I added it there, and it still comes back as <code>null</code>.</p>
  
  <p>Is there a way to get those settings locally? Or do I need to somehow determine that I'm running locally, and use a different method instead of <code>GetEnvironmentVariable()</code>?</p>