title: Get app service name in azure programmatically
body: <p>Simple question, hopefully a simple answer :) </p>
  
  <p>How to I get the app service name, displayed as "test-webapp" in the picture below, from code (C#)?  (any other identifier of a specific app service also works).</p>
  
  <p>I have multiple app services, running same code. So I want to be able to express</p>
  
  <pre><code>if(appServiceName == "test-webapp")
  {
      //take a specific value from web.config and run with it
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/RWWnv.png" rel="noreferrer"><img src="https://i.stack.imgur.com/RWWnv.png" alt="see image"></a></p>