When running a Java-based application with the Azure Web App service, you can save the value with the combination of Name-Value as Application settings from Settings --Configuration.
Use System.getEnv () to get this value from the app.
String serviceName = System.getenv("KEY_NAME");
The point is that it is set as an environment variable instead of a system property.
that's all.
Recommended Posts