Periodically, newer versions are released for Java software either due to security flaws or to include additional functionality. Using the latest Java version for web apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the newer version.
Perform the following in the Azure Console:
Perform the following in Azure Command Line Interface 2.0:
To see the list of supported runtimes.
az webapp list-runtimes | grep java
To set latest Java version for an existing app, run the following command.
az webapp config set –resource-group <RESOURCE_GROUP_NAME> –name <APP_NAME> –java-version ‘ 1.8 ‘ –java-container ‘ Tomcat ‘ –java-container-version ‘ & lt;VERSION & gt;’