Create a Java application in an Azure Web app

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.