You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/app-service/includes/quickstart-java/quickstart-java-javase.md
+31-28Lines changed: 31 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.date: 06/10/2025
7
7
ms.author: cephalin
8
8
---
9
9
10
-
[Azure App Service](/azure/app-service/) provides a highly scalable, self-patching web app hosting service. At the top of the page, choose how you want to deploy your app: **Java SE**, **Tomcat**, or **JBoss**, and then follow the corresponding instructions.
10
+
[Azure App Service](/azure/app-service/) provides a highly scalable, self-patching web app hosting service. At the top of the page, choose how you want to deploy your Java app: **Java SE**, **Tomcat**, or **JBoss EAP**, and then follow the corresponding instructions.
11
11
12
12
In this quickstart, you use the [Maven Plugin for Azure App Service Web Apps](https://github.com/microsoft/azure-maven-plugins/blob/develop/azure-webapp-maven-plugin/README.md) to deploy a Java web application with an embedded Spring Boot, Quarkus, or Tomcat server to App Service. For more information, see [azure-webapp-maven-plugin](https://github.com/microsoft/azure-maven-plugins/wiki/Azure-Web-App).
13
13
@@ -20,7 +20,10 @@ If Maven isn't your preferred development tool, check out our other similar tuto
- Run the Bash and Azure CLI commands in this tutorial by using Azure Cloud Shell, an interactive shell that you can use through your browser to work with Azure services. Select **Open Cloud Shell** at upper right in a code block and sign in to Azure if necessary. Then select **Copy** in the code block, paste the code into Cloud Shell, and run it.
23
+
24
+
- Run the Azure CLI and Maven commands in this tutorial by using Azure Cloud Shell, an interactive shell that you can use through your browser to work with Azure services.
25
+
26
+
To use Cloud Shell, select **Open Cloud Shell** at upper right in a code block and sign in to Azure if necessary. Then select **Copy** in the code block, paste the code into Cloud Shell, and run it. Make sure you're using the **Bash** environment of Cloud Shell.
24
27
25
28
## Get the sample app
26
29
@@ -65,9 +68,9 @@ Then change your working directory to the project folder by running `cd my-webap
65
68
66
69
## Configure the Maven plugin
67
70
68
-
The deployment process to Azure App Service uses your Azure credentials from the Azure CLI automatically. If the Azure CLI isn't installed locally, then the Maven plugin authenticates with OAuth or device sign-in. For more information, see [authentication with Maven plugins](https://github.com/microsoft/azure-maven-plugins/wiki/Authentication).
71
+
The deployment process to Azure App Service uses your Azure credentials from Azure Cloud Shell automatically. If the Azure CLI isn't installed locally, then the Maven plugin authenticates with OAuth or device sign-in. For more information, see [authentication with Maven plugins](https://github.com/microsoft/azure-maven-plugins/wiki/Authentication).
69
72
70
-
Run the Maven command shown next to configure the deployment. This command helps you to set up the App Service operating system, Java version, and Tomcat version.
73
+
Run the Maven command shown next to configure the deployment. This command helps you to set the App Service operating systemand Java version.
@@ -134,7 +137,7 @@ You can modify the configurations for App Service directly in your *pom.xml* fil
134
137
135
138
With all the configuration ready in your [pom.xml](https://github.com/Azure-Samples/java-docs-embedded-tomcat/blob/main/pom.xml) file, you can deploy your Java app to Azure.
136
139
137
-
1. Build the JAR file using the following commands for Spring Boot, Quarkus, or Embedded Tomcat.
140
+
1. Build the JAR file using the following command.
138
141
139
142
### [Spring Boot](#tab/springboot)
140
143
@@ -169,47 +172,47 @@ With all the configuration ready in your [pom.xml](https://github.com/Azure-Samp
169
172
- Creates an [executable JAR](https://en.wikipedia.org/wiki/JAR_(file_format)#Executable_JAR_files) by specifying the Tomcat class as the startup class.
170
173
- Replaces the original artifact with the `Uber-Jar` to ensure that the deploy step deploys the right file.
171
174
172
-
-----
175
+
-----
173
176
174
-
1. Deploy to Azure by using the following command:
177
+
1. Deploy the app to Azure by using the following command:
175
178
176
179
```bash
177
180
mvn azure-webapp:deploy
178
181
```
179
182
180
-
Once you select from a list of available subscriptions, Maven deploys to Azure App Service. When deployment completes, your application is ready, and you see the following output:
183
+
Once you select from a list of available subscriptions, Maven deploys to Azure App Service. When deployment completes, your application is ready, and you see the following output:
181
184
182
-
```output
183
-
[INFO] Successfully deployed the artifact to <URL>
1. Open the Spring Boot< Quarkus, or Embedded Tomcat app as follows:
195
+
1. Open the app as follows:
193
196
194
-
### [Spring Boot](#tab/springboot)
197
+
### [Spring Boot](#tab/springboot)
195
198
196
-
Open your app's default domain from the **Overview** page in the Azure portal, and append `/greeting` to the URL. You should see the following app:
199
+
Open your app's default domain from the **Overview** page in the Azure portal, and append `/greeting` to the URL. You should see the following app:
197
200
198
-
:::image type="content" source="../../media/quickstart-java/springboot-hello-world-in-browser-azure-app-service.png" alt-text="Screenshot of Spring Boot Hello World web app running in Azure App Service.":::
201
+
:::image type="content" source="../../media/quickstart-java/springboot-hello-world-in-browser-azure-app-service.png" alt-text="Screenshot of Spring Boot Hello World web app running in Azure App Service.":::
199
202
200
-
### [Quarkus](#tab/quarkus)
203
+
### [Quarkus](#tab/quarkus)
201
204
202
-
Open your app's default domain from the **Overview** in the Azure portal, and append `/hello` to the URL. You should see the following app:
205
+
Open your app's default domain from the **Overview** in the Azure portal, and append `/hello` to the URL. You should see the following app:
203
206
204
-
:::image type="content" source="../../media/quickstart-java/quarkus-hello-world-in-browser-azure-app-service.png" alt-text="Screenshot of Quarkus web app running in Azure App Service.":::
207
+
:::image type="content" source="../../media/quickstart-java/quarkus-hello-world-in-browser-azure-app-service.png" alt-text="Screenshot of Quarkus web app running in Azure App Service.":::
205
208
206
-
### [Embedded Tomcat](#tab/embeddedtomcat)
209
+
### [Embedded Tomcat](#tab/embeddedtomcat)
207
210
208
-
Open the URL for your app's default domain from the **Overview** in the Azure portal. You should see the following app:
211
+
Open the URL for your app's default domain from the **Overview** in the Azure portal. You should see the following app:
209
212
210
-
:::image type="content" source="../../media/quickstart-java/embedded-tomcat-hello-world-in-browser-azure-app-service.png" alt-text="Screenshot of embedded Tomcat web app running in Azure App Service.":::
213
+
:::image type="content" source="../../media/quickstart-java/embedded-tomcat-hello-world-in-browser-azure-app-service.png" alt-text="Screenshot of embedded Tomcat web app running in Azure App Service.":::
211
214
212
-
-----
215
+
-----
213
216
214
217
Congratulations! You deployed a Java app to App Service.
Copy file name to clipboardExpand all lines: articles/app-service/includes/quickstart-java/quickstart-java-jboss.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.date: 06/10/2025
7
7
ms.author: cephalin
8
8
---
9
9
10
-
[Azure App Service](/azure/app-service/) provides a highly scalable, self-patching web app hosting service. At the top of the page, choose how you want to deploy your app: **Java SE**, **Tomcat**, or **JBoss**, and then follow the corresponding instructions.
10
+
[Azure App Service](/azure/app-service/) provides a highly scalable, self-patching web app hosting service. At the top of the page, choose how you want to deploy your Java app: **Java SE**, **Tomcat**, or **JBoss EAP**, and then follow the corresponding instructions.
11
11
12
12
In this quickstart, you use the [Maven Plugin for Azure App Service Web Apps](https://github.com/microsoft/azure-maven-plugins/blob/develop/azure-webapp-maven-plugin/README.md) to deploy a Java web application to a Linux JBoss EAP server in App Service.
13
13
@@ -20,7 +20,10 @@ If Maven isn't your preferred development tool, check out our similar tutorials
- Run the Bash and Azure CLI commands in this tutorial by using Azure Cloud Shell, an interactive shell that you can use through your browser to work with Azure services. Select **Open Cloud Shell** at upper right in a code block and sign in to Azure if necessary. Then select **Copy** in the code block, paste the code into Cloud Shell, and run it.
23
+
24
+
- Run the Azure CLI and Maven commands in this tutorial by using Azure Cloud Shell, an interactive shell that you can use through your browser to work with Azure services.
25
+
26
+
To use Cloud Shell, select **Open Cloud Shell** at upper right in a code block and sign in to Azure if necessary. Then select **Copy** in the code block, paste the code into Cloud Shell, and run it. Make sure you're using the **Bash** environment of Cloud Shell.
24
27
25
28
## Create a Java app
26
29
@@ -46,9 +49,9 @@ If Maven isn't your preferred development tool, check out our similar tutorials
46
49
47
50
## Configure the Maven plugin
48
51
49
-
The App Service deployment process uses your Azure credentials from Azure CLI automatically. The Maven plugin authenticates with OAuth or device sign-in. For more information, see [Authentication](https://github.com/microsoft/azure-maven-plugins/wiki/Authentication).
52
+
The App Service deployment process uses your Azure credentials from Azure Cloud Shell automatically. The Maven plugin authenticates with OAuth or device sign-in. For more information, see [Authentication](https://github.com/microsoft/azure-maven-plugins/wiki/Authentication).
50
53
51
-
Run the following Maven command to configure the deployment by setting up the App Service operating system, Java version, and Tomcat version.
54
+
Run the following Maven command to configure the deployment by setting the App Service operating system, Java version, and Jbosseap version.
Copy file name to clipboardExpand all lines: articles/app-service/includes/quickstart-java/quickstart-java-tomcat.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.date: 06/10/2025
7
7
ms.author: cephalin
8
8
---
9
9
10
-
[Azure App Service](/azure/app-service/) provides a highly scalable, self-patching web app hosting service. At the top of the page, choose how you want to deploy your app: **Java SE**, **Tomcat**, or **JBoss**, and then follow the corresponding instructions.
10
+
[Azure App Service](/azure/app-service/) provides a highly scalable, self-patching web app hosting service. At the top of the page, choose how you want to deploy your Java app: **Java SE**, **Tomcat**, or **JBoss EAP**, and then follow the corresponding instructions.
11
11
12
12
In this quickstart, you use the [Maven Plugin for Azure App Service Web Apps](https://github.com/microsoft/azure-maven-plugins/blob/develop/azure-webapp-maven-plugin/README.md) to deploy a Java web application to a Linux Tomcat server in App Service.
13
13
@@ -20,7 +20,10 @@ If Maven isn't your preferred development tool, check out our similar tutorials
- Run the Bash and Azure CLI commands in this tutorial by using Azure Cloud Shell, an interactive shell that you can use through your browser to work with Azure services. Select **Open Cloud Shell** at upper right in a code block and sign in to Azure if necessary. Then select **Copy** in the code block, paste the code into Cloud Shell, and run it.
23
+
24
+
- Run the Azure CLI and Maven commands in this tutorial by using Azure Cloud Shell, an interactive shell that you can use through your browser to work with Azure services.
25
+
26
+
To use Cloud Shell, select **Open Cloud Shell** at upper right in a code block and sign in to Azure if necessary. Then select **Copy** in the code block, paste the code into Cloud Shell, and run it. Make sure you're using the **Bash** environment of Cloud Shell.
24
27
25
28
## Create a Java app
26
29
@@ -34,9 +37,9 @@ Then change your working directory to the project folder by running `cd hellowor
34
37
35
38
## Configure the Maven plugin
36
39
37
-
The App Service deployment process uses your Azure credentials from Azure CLI automatically. The Maven plugin authenticates with OAuth or device sign-in. For more information, see [Authentication](https://github.com/microsoft/azure-maven-plugins/wiki/Authentication).
40
+
The App Service deployment process uses your Azure credentials from Azure Cloud Shell automatically. The Maven plugin authenticates with OAuth or device sign-in. For more information, see [Authentication](https://github.com/microsoft/azure-maven-plugins/wiki/Authentication).
38
41
39
-
Run the following Maven command to configure the deployment by setting up the App Service operating system, Java version, and Tomcat version.
42
+
Run the following Maven command to configure the deployment by setting the App Service operating system, Java version, and Tomcat version.
Copy file name to clipboardExpand all lines: articles/app-service/quickstart-java.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: 'Quickstart: Create a Java app on Azure App Service'
3
-
description: Deploy your first Java Hello World to Azure App Service in minutes. The Azure Web App Plugin for Maven makes it convenient to deploy Java apps.
3
+
description: Deploy a Java app to Azure App Service in minutes by using the Azure Web App Plugin for Maven.
0 commit comments