Azure App Service Environment Variables – JAVA

So short post about configuring an App Service (Web App in this case) and putting sensitive information in App Settings which become Environment Variables in Java.

Unfortunately, it’s not well documented, and some documentation you will find while looking for it is obscure and misleading (older versions I guess). In reality it is super simple.

In this case I have 3 app settings:

  • collectionLink
  • key
  • uri

And to fetch those values from Java (in this case Tomcat container, but I believe it works the same for all environments)


It’s childs play! Of course you need to save, and then restart your app (I believe). Great work Azure, just wish you would document better.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.