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:
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.