

Setup the Gradle Plugin for Azure Web Apps by adding the plugin to your build.

Here is a sample configuration in pom.xml: Then you can deploy your Java app to Azure using the following command: mvn package azure-webapp:deploy This command adds a azure-webapp-maven-plugin plugin and related configuration by prompting you to select an existing Azure Web App or create a new one. With the Maven Plugin for Azure Web Apps, you can prepare your Maven Java project for Azure Web App easily with one command in your project root: mvn :azure-webapp-maven-plugin:2.2.0:config To show all supported Java versions, run the following command in the Cloud Shell: az webapp list-runtimes -linux | grep "JAVA\|TOMCAT\|JBOSSEAP" To show the current Java version, run the following command in the Cloud Shell: az webapp config show -resource-group -name -query linuxFxVersion
