Deploy Java web app to Azure with maven

Information to prepare in advance


Check the following information on the console etc.

appName <-(1) in the figure resourceGroup <-(2) in the figure subscriptionId <-(3) in the figure


Set the build part as follows. Change the region runtime etc. as appropriate according to the server side environment.

	<!-- -->
		<!--************************************************* -->
		<!-- Deploy to Tomcat in App Service Windows -->
		<!--************************************************* -->
				<!-- Specify v2 schema -->
				<!-- App information -->
				<!-- SUBSCRIPTION_ID Unique ID for the subscription that deploys the app-->
				<!-- WEBAPP_NAME -->
				<!-- REGION -->
				<!-- Java Runtime Stack for App Service on Windows -->
					<webContainer>tomcat 9.0</webContainer>


Log in from the console

az login

Execution command

Move to the pom.xml directory and execute the command as shown below. Change the options to your liking.

mvn clean package azure-webapp:deploy -Dmaven.test.skip=true


Quickstart: Create a Java app on Azure App Service - Azure App Service | Microsoft Docs

that's all.

Recommended Posts

Deploy Java web app to Azure with maven
War deploy to Azure Web Apps (maven)
[Java] Deploy the Spring Boot application to Azure App Service
Deploy a Java web app on Heroku
Creating Java Web Applications to Azure Web Apps
[Java] Deploy a web application created with Eclipse + Maven + Ontology on Heroku
How to deploy Java to AWS Lambda with Serverless Framework
Get Azure App Service for Java Configuration with System.getEnv ()
Java to play with Function
Try gRPC with Java, Maven
Connect to DB with Java
Connect to MySQL 8 with Java
How to deploy a simple Java Servlet app on Heroku
How to deploy a kotlin (java) app on AWS fargate
Java to learn with ramen [Part 1]
[Java] Points to note with Arrays.asList ()
Use Azure Bing SpellCheck with Java
Dare to challenge Kaggle with Java (1)
I tried to interact with Java
Deploy to EC2 with CircleCi + Capistrano
Create command line app with maven
Java, arrays to start with beginners
Deploy Rails apps to Azure App Service using Docker & Continuous Deployment
Output system time to MANIFEST.MF with Maven
How to compile Java with VsCode & Ant
Deploy to heroku with Docker (Rails 6, MySQL)
Introduction to algorithms with java --Search (depth-first search)
Deploy Java Servlet app locally on Tomcat
I want to create a dark web SNS with Jakarta EE 8 with Java 11
Try deploying Rails app to EC2-Part 2 (Deploy)-
How to set JAVA_HOME with Maven appassembler-maven-plugin
CICS-Run Java applications-(2) Build management with Maven
[Java] [Maven3] Summary of how to use Maven3
Add Document to Azure Search Service (Java)
Get Timestamp with Azure BlobStorage Java SDK
Easy to trip with Java regular expressions
Try with resources statement in web app
Java development with Codenvy: Console app debug
How to make an app with a plugin mechanism [C # and Java]
Introduction to Java Web Apps Performance Troubleshooting
Introduction to algorithms with java --Search (breadth-first search)
How to deploy a system created with Java (Wicket-Spring boot) to an on-campus server
Hello World with Java Servlet and JSP (Easy web server startup with Maven + Jetty)
[Azure] I tried to create a Java application for free-Web App creation- [Beginner]
Challenge to deal with garbled characters with Java AudioSystem.getMixerInfo ()
[Java] How to test for null with JUnit
Upsert from Java SDK to Azure Cosmos DB
[CircleCI 2.0] [Java] [Maven] [JUnit] Aggregate JUnit test results with CircleCI 2.0
I tried to make Basic authentication with Java
Downgrade an existing app created with rails 5.2.4 to 5.1.6
Introduction to algorithms with java --Search (bit full search)
Introduce Kotlin to your existing Java Maven Project
Java automated test implementation with JUnit 5 + Apache Maven
How to display a web page in Java
Deploy Azure Functions using Maven under Proxy environment
Try to link Ruby and Java with Dapr
Java upload and download notes to Azure storage
How to use Java framework with AWS Lambda! ??
I want to use java8 forEach with index
[Swift] How to link the app with Firebase
How to use Java API with lambda expression