This step-through guide will help you launch and run the sample Java application through the Azure Web app. In addition to Java, Azure Web apps support other languages such as PHP,. NET, node. js, Python, Ruby, and so on, and this tutorial focuses on Java (other languages will follow the same process). All of the actions completed in this tutorial are eligible for the 1-dollar trial condition.
Before you begin
Before you run this sample, install the following prerequisites locally:
Download and install Git
Azure CLI 2.0
If you don't have an Azure subscription, you can create a trial account before you start.
Step 1: Download the sample
1. First search and open Git Bash on your computer.
2. Enter the following command to clone the Java sample app to the local computer.
git clone https://github.com/azure-appservice-samples/JavaCoffeeShopTemplate
Note: When the sample download is complete, you need to javacoffeeshoptemplate/webapps/root. The WAR is unpacked and the following commands are run after decompression is complete.
git add -A
git commit -am “<commit_message>”
Step 2: Create an Azure Web app
1. Sign in to the Azure portal and create a new Web app, Web + mobile.
2. Enter "app name", "app service plan/location" to select Default. If you want more information about app service plans, go to Azure app service plan in-depth overview.
3. Select Create.
Step 3: Configure deployment Credentials
When the Web app is created, click "Deploy Credentials", enter "username" and password, and click "Save". Since Git and FTP cannot authenticate with your login account, we need to use the new username and password here to deploy the Java app.
Step 4: Configure local Git deployment options
Click "Deployment Options", "Select Source" as "local Git repository" and click OK.
Step 5: Configure to use Java
Select "Application Settings", select the appropriate "Java version" and "Web container" and click "Save".
For more steps, click to
Welcome to Exchange
A research institute graduate student [email protected]
Create a Java application in an Azure Web app