Microsoft Azure : Running JAVA Web Application using template - Blogs

Microsoft Azure : Running JAVA Web Application using template

We will create Java web app in Azure App Service by using the Azure portal. The Azure portal is a web interface that we can use to manage Azure resources.



We require a Microsoft Azure Subscription.


JAVA application options

There are several ways we can set up Java application in an App Service web app:

1)    Use template from the Azure Marketplace

The Azure Marketplace includes templates that automatically create and configure Java web apps with Tomcat or Jetty web containers. Web containers that the templates set up are configurable.


2)    Create app and then configure Application settings.

App Service provides several Tomcat and Jetty versions, with default configuration. If the application that we will be hosting will work with one of the built-in versions, this method of setting up web container is the easiest but it lacks configuration capabilities in other methods. For this method, we create app in portal and then go to app's Application settings blade to choose our version of Java along with desired Java web container. When we use this method the app runs from local hard drive that is used by worker to host app, which does not take disk space away from tenant. When we use this model, we don't have access to edit files in this part of file system.


3)    Create app and then manually copy and edit configuration files

We might want to host custom Java application that does not deploy in any of the web containers provided by App Service.


Use JAVA template from the Azure Marketplace

We will use the Azure Marketplace to create Java web app. The same general flow can also be used to create Java-based mobile or API app.

1)    Log in to




2)    Click New >> Marketplace.

3)    Click Web + Mobile.

4)    In search text box, enter name of Java application server and then press Enter.

5)    In search result, click Java application server.




6)    In first Apache Tomcat or Jetty blade, click Create.

7)    In next Apache Tomcat or Jetty blade, enter name for web app in Web app box.

This name must be unique in domain because URL of web app will be If the name we enter isn't unique, a red exclamation mark appears in text box.


8)    Select Resource Group or create a new one.

9)    Select App Service plan/Location or create new one.








10)  Click Create.

In short time, typically less than a minute, Azure finishes creating new web app.






11)  Click URL to browse new site.

Jetty doesn’t have default page set, so same JSP that is used for empty Java site is reused here.




We’ve created web app with an app container.



Azure App Service Scaling Features And Capabilities

How to scale the application in Azure App Service. There are two workflows for scaling, scale up and...

Read More >

Azure App Service (Build And Host Web Apps, Mobile-Back Ends Without Managing Infrastructure)

In this blog we will see what is Azure App Service, and it’s  features and why do we use it, we can...

Read More >

Azure Blob Storage: The PowerShell Way!

Hi folks!Great to see you again.This blog post is purely based on Azure Blob Storage: The PowerShell...

Read More >

Create a Windows Server 2012 R2 VM using ARM in Azure PowerShell

Hi Folks,In this Blog Post we will learn how to create an Azure ARM Virtual Machine using Azure Powe...

Read More >

Continuous Integration/ Continuous Deployment VSTS

Following the below steps you can build and deploy your ASP.NET  app to Azure from either Visua...

Read More >

How to Sync On-premise AD with Windows Azure AD using Azure AD Connect tool

 Azure AD is a service that provides identity and access management capabilities in the cloud. ...

Read More >

Creating a Point-to-Site Connectivity using Azure Resource Manager

Configure a Point-to-Site connectivity to a VNet using PowerShell (ARM Mode)Task 1: Create a Self-Si...

Read More >

How to Create an Azure Virtual Network by using a Deployment Template

Hello Folks!In this Blog post, we will try to learn how to create an Azure V-Net using an ARM templa...

Read More >

Locking VMs and Resources Groups with Azure Resource Manager using Azure PowerShell

Hello Folks!In this blog post we will be talking about locking down your Azure Resources with Azure ...

Read More >

Microsoft Azure: Implementing Internet Facing Load Balancers using Azure Resource Manager

Howdy Folks!I was exploring Network Load Balancer in Azure Resource Manager and found out that you c...

Read More >


Try DevOpSmartBoard Ultimate complete Azure DevOps End-to end reporting tool

Sign Up

  • Recent
  • Popular
  • Tag
Monthly Archive

Contact Us
  • *
  • *