Steps to create a Java web app in Azure
This article will focus on installation, creation and deployment of the web app in Azure using Eclipse IDE. We will create a web app to print Heya Azure!! :).
To get started we need Azure Toolkit for Eclipse. The Azure Toolkit for Eclipse page at the Eclipse Marketplace lists the builds that are compatible with the toolkit. The following processes will take place:
After its installation accepts the license agreement and clicks Finish.

After that, Click Tools -> Azure -> Sign In.

You will see two sign In Method:
1. Interactive — In this you have to enter Azure credentials each time to sign In to Azure account.
2. Automated — In this, credentials file is created and use as automatic sign In to Azure Account.
We will follow the automated method:

Azure Sign in dialogue box appears, enter your Azure credentials.

In Create Authentication Files dialogue box, select subscriptions to use, choose destination directory and click Start.
It will take some time to Create Authentication File.

The Service Principal Creation Status dialogue box will be displayed and after that successfully created files, click OK.

Click Sign In.

You have successfully Sign In to Azure to create and now publish your first Web App.
Creating a Java web app in Azure
Click File -> New -> Other-> Web -> Dynamic Web Project. Add your project name and select Finish.
Note: If Dynamic Web Project is not accessible by both the methods, then follow steps from Here.

Under Project Explorer right click -> New -> JSP File.

Give a name to JSP File as index.jsp and click Finish.

Replace Body tag with:
<body>
<h1><% out.println(“Heya Azure!! :)”); %></h1>
</body>

Right-click on the created project, then Azure -> Publish as Azure Web App.

After a few seconds, Deploy Web App Dialog box appears.

Create App Service Dialog Box with default values:
1. Under Enter name, given is the default unique name, you can personalize name which must be unique across Azure.
2. Select an Azure subscription.
Under App service plan: It specifies the location, size and features of the web server farm that hosts your app.
1. Create new: keep the Name default which is the name of the App Service Plan.
2. Location: Select the location nearest to you.
3. Pricing tier: Select the free option. For features, see App service pricing details.
Resource Group: Keep all values default, it is a web service in which resources like, web apps, Databases and storage accounts are deployed and managed.
Select Create.


It displays Creating App Service and a progress box.

Note: Select Deploy to root else the web app named Ishweenstudentpartner is deployed to wingtiptoys.azurewebsites.net/MyFirstJavaOnAzureWebApp.

It will take some time to deploy and Once shown Published under status, click on it and Hurray!! Congratulations, your first Java web app in Azure is ready.
Below is the web app:

Manage your apps in Azure 🙂
Go to the Azure and Click Resource Groups on Left Panel. After which you will be able to see your created resource groups. Select the Web App.

Click Overview, which gives you a view of the app. You can perform basic management tasks like browse, stop, start, restart, and delete. The tabs on the left side of the page show the different configurations that you can open.
