Get Azure App Service for Java Configuration with System.getEnv ()

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.

image.png

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

Get Azure App Service for Java Configuration with System.getEnv ()
Azure App Service (Windows) Tomcat configuration changes
Get Timestamp with Azure BlobStorage Java SDK
Deploy Java web app to Azure with maven
Change Java heap size in Tomcat in Azure App Service
[Java] Deploy the Spring Boot application to Azure App Service
Use Azure Bing SpellCheck with Java
Enable OpenCV with java8. (For myself)
Using proxy service with Java crawling
Build Redmine on Azure App Service
Get a list of S3 files with ListObjectsV2Request (AWS SDK for Java)
[Java] Get List / Map elements with Iterator
Getting Started with Ruby for Java Engineers
Sample code collection for Azure Java development
Try Health Check on Azure App Service.
Add Document to Azure Search Service (Java)
Interoperability tips with Kotlin for Java developers
Java development with Codenvy: Console app debug
[Java] Get the date with the LocalDateTime class
[Azure] I tried to create a Java application for free-Web App creation- [Beginner]
Links & memos for getting started with Java (for myself)
Simple obstacle racing made with processing for Java
Try Azure Service Fabric (Java) on Mac-Local Environment
I made an Android app for MiRm service
Create your own Android app for Java learning
[Java] Get images with Google Custom Search API
Docker Container Operations with Docker-Client API for Java
[LeJOS] Get EV3 sensor value remotely with Java
Get along with Java containers in Cloud Run
[Azure] I tried to create a Java application for free ~ Connect with FTP ~ [Beginner]