Skip to main content Explore View all products (200+) Microsoft Foundry Azure Copilot GitHub Copilot Azure Kubernetes Service (AKS) Azure Cosmos DB Azure Database for PostgreSQL Azure Arc Microsoft Fabric Linux virtual machines in Azure Foundry Models Foundry Agent Service Foundry IQ Foundry Tools Foundry Control Plane Observability in Foundry Control Plane Azure OpenAI in Foundry Models Azure Speech in Foundry Tools Azure Machine Learning View all databases Azure Cosmos DB Azure DocumentDB Azure SQL Azure Database for PostgreSQL Azure Managed Redis Microsoft Fabric Azure Databricks Linux virtual machines in Azure Windows Server on Azure Azure Functions Azure Virtual Machine Scale Sets Azure API Management Azure Container Apps Azure Kubernetes Service (AKS) Azure Kubernetes Fleet Manager Azure Container Registry Azure Red Hat OpenShift Azure Container Instances Azure Container Storage Azure Arc Azure Local Microsoft Defender for Cloud Azure Monitor Microsoft Sentinel Azure Migrate View all solutions (40+) Cloud solutions for small and medium businesses Cloud migration and modernization center Data analytics for AI Azure Databases AI apps and agents Microsoft Marketplace Microsoft Sovereign Cloud AI apps and agents Responsible AI with Azure AI Infrastructure Data analytics for AI Machine learning operations (MLOps) Low-code application development on Azure Integration Services Serverless computing DevOps Migration and modernization center .NET apps migration Databases on Azure Linux on Azure Oracle on Azure SAP on the Microsoft Cloud Adaptive cloud High-performance computing (HPC) Infrastructure as a service (IaaS) Resiliency Azure Essentials Frontier Accelerate for Azure FinOps on Azure Microsoft Marketplace Azure pricing overview Create an Azure account Free Azure services Flexible purchase options Pricing calculator FinOps on Azure Maximize ROI from AI Azure savings plans Azure reservations Azure Hybrid Benefit Virtual Machines Azure SQL Microsoft Foundry Microsoft Fabric Azure Kubernetes Service (AKS) Microsoft Defender for Cloud View more Software Development Companies Microsoft Marketplace Find a partner Resources for Azure partners Get started with Azure Customer stories Analyst reports, white papers, and e-books Videos Learn more about cloud computing Documentation Explore Azure portal Developer resources Quickstart templates Resources for startups Developer community Students Azure for partners Blog Events and Webinars Learn Support Contact Sales Get started with Azure Sign in

A couple of months back, we announced the general availability of App Service on Linux, starting with support for .NET Core, Node.js, Ruby, PHP, and custom Docker containers. Today, we are glad to share the public preview of Java apps on App Service. This release includes built-in support for Apache Tomcat 8.5/9.0 and OpenJDK 8, making it easy for Java developers to deploy web or API apps to Azure. Just bring your .jar or .war file to Azure App Service and we’ll take care of the capacity provisioning, server maintenance, and load balancing. 

Create and deploy a Java web app easily

Creating a Java web app is easy with App Service using our out-of-box support for Tomcat and OpenJDK. You can deploy your .jar or .war file to Azure and get it up and running at scale with just a few clicks. If you have other preferred images such as Jetty or a different JRE, you can also build your own Docker image and deploy it to App Service. 

Here’s an example of creating a Java web app with a Tomcat image in the portal:

Java on App Service

App Service integrates well with your favorite code repos, IDEs, and CLI tools. You can deploy from all the places you would expect including git, GitHub, BitBucket, FTP, among others. You can also build and publish apps and deploy to App Service from your favorite Java IDE using the Azure toolkit for Eclipse or IntelliJ from Windows, macOS, and Linux. Deployments can also be managed via the command line in Linux, macOS, or Windows with the Azure Command Line Interface (CLI). The CLI runs as a client or in a browser via the Azure portal or at shell.azure.com. The CLI is even available in the Azure management app on your iPhone or Android device.

Extensive support of SDKs and services for Java on Azure

Once your Java app is deployed, you can then extend your applications by adding code from the Azure SDK for Java to work with various Azure services such as Storage, MySQL Database, and PostgreSQL Database. You can also get more granular insights into your app by adding agent calls to your application through the Application Insights Java SDK. Looking for manageable identity services? Use the Azure Active Directory Library for Java to plug into identity services that run in 80 percent of the world’s enterprises. 

These are just a handful examples of SDKs and services available from Azure to boost your productivity and enrich your Java-based web apps. To help you get started, we have dozens of code samples that use the SDK. All of our SDKs run on Windows, macOS, and Linux and are open sourced and available on GitHub

Get started for free

Get started easily with our Java Developer Center. You can also review tutorials and guidance on the Java documentation hub

WE ARE MICROSOFT

Explore Microsoft Foundry

The future of AI starts here. Envision your next great AI app with the latest technologies. Get started with Azure.