Skip to content

Commit 29d5ef1

Browse files
committed
edits
1 parent 04d5e7f commit 29d5ef1

6 files changed

+81
-45
lines changed

articles/app-service/includes/quickstart-java/quickstart-java-javase.md

Lines changed: 63 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@ ms.date: 06/10/2025
77
ms.author: cephalin
88
---
99

10-
In this quickstart, you use the Maven plugin to deploy a Java web application with an embedded Spring Boot, Quarkus, or Tomcat server to App Service by using the [azure-webapp-maven-plugin](https://github.com/microsoft/azure-maven-plugins/wiki/Azure-Web-App).
10+
This quickstart uses the Maven plugin to deploy a Java web application with an embedded Spring Boot, Quarkus, or Tomcat server to App Service by using the [azure-webapp-maven-plugin](https://github.com/microsoft/azure-maven-plugins/wiki/Azure-Web-App).
1111

1212
## Prerequisites
1313

1414
- [!INCLUDE [quickstarts-free-trial-note](~/reusable-content/ce-skilling/azure/includes/quickstarts-free-trial-note.md)]
1515

1616
- Run the commands in this quickstart by using Azure Cloud Shell, an interactive shell that you can use through your browser to work with Azure services. To use Cloud Shell:
1717

18-
1. Select **Open Cloud Shell** at upper right in a code block and sign in to Azure if necessary. Make sure you're in the **Bash** environment of Cloud Shell.
19-
1. Select **Copy** in the code block, paste the code into Cloud Shell, and run it.
18+
1. Select the following **Launch Cloud Shell** button or go to https://shell.azure.com to open Cloud Shell in your browser.
19+
:::image type="icon" source="~/reusable-content/ce-skilling/azure/media/cloud-shell/launch-cloud-shell-button.png" alt-text="Button to launch the Azure Cloud Shell." border="false" link="https://shell.azure.com":::
20+
1. Sign in to Azure if necessary, and make sure you're in the **Bash** environment of Cloud Shell.
21+
1. Select **Copy** in a code block, paste the code into Cloud Shell, and run it.
2022

2123
## Get the sample app
2224

@@ -36,7 +38,7 @@ Then change your working directory to the project folder by running `cd my-webap
3638

3739
1. Generate a new Quarkus app named `quarkus-hello-azure` by running the following Maven command:
3840

39-
```azurecli-interactive
41+
```bash
4042
mvn io.quarkus.platform:quarkus-maven-plugin:3.21.3:create \
4143
-DprojectGroupId=org.acme \
4244
-DprojectArtifactId=quarkus-hello-azure \
@@ -65,7 +67,7 @@ The App Service deployment process uses your Azure credentials from Cloud Shell
6567

6668
Run the following Maven command to configure the deployment by setting the App Service operating system and Java version.
6769

68-
```azurecli-interactive
70+
```bash
6971
mvn com.microsoft.azure:azure-webapp-maven-plugin:2.14.1:config
7072
```
7173

@@ -111,7 +113,7 @@ The relevant portion of the *pom.xml* file should look similar to the following
111113
<configuration>
112114
<schemaVersion>v2</schemaVersion>
113115
<resourceGroup>generated-app-name-rg</resourceGroup>
114-
<appName>generated-app-name/appName>
116+
<appName>generated-app-name</appName>
115117
...
116118
</configuration>
117119
</plugin>
@@ -130,18 +132,42 @@ You can modify the configurations for App Service directly in your *pom.xml* fil
130132

131133
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.
132134

135+
### [Spring Boot](#tab/springboot)
136+
133137
1. Build the JAR file using the following command.
134138

135-
### [Spring Boot](#tab/springboot)
136-
137139
```bash
138140
mvn clean package
139141
```
140142

141143
> [!TIP]
142144
> Spring Boot produces two JAR files with `mvn package`, but the `azure-webapp-maven-plugin` picks the right JAR file to deploy automatically.
143145
144-
### [Quarkus](#tab/quarkus)
146+
1. Deploy the app to Azure by using the following command:
147+
148+
```bash
149+
mvn azure-webapp:deploy
150+
```
151+
152+
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:
153+
154+
```output
155+
[INFO] Successfully deployed the artifact to <URL>
156+
[INFO] ------------------------------------------------------------------------
157+
[INFO] BUILD SUCCESS
158+
[INFO] ------------------------------------------------------------------------
159+
[INFO] Total time: 02:20 min
160+
[INFO] Finished at: 2023-07-26T12:47:50Z
161+
[INFO] ------------------------------------------------------------------------
162+
```
163+
164+
1. 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:
165+
166+
:::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.":::
167+
168+
### [Quarkus](#tab/quarkus)
169+
170+
1. Build the JAR file using the following command.
145171

146172
```bash
147173
echo '%prod.quarkus.http.port=${PORT}' >> src/main/resources/application.properties
@@ -153,7 +179,31 @@ With all the configuration ready in your [pom.xml](https://github.com/Azure-Samp
153179
> [!TIP]
154180
> Quarkus produces two JAR files with `mvn package`, but `azure-webapp-maven-plugin` picks the right JAR file to deploy automatically.
155181
156-
### [Embedded Tomcat](#tab/embeddedtomcat)
182+
1. Deploy the app to Azure by using the following command:
183+
184+
```bash
185+
mvn azure-webapp:deploy
186+
```
187+
188+
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:
189+
190+
```output
191+
[INFO] Successfully deployed the artifact to <URL>
192+
[INFO] ------------------------------------------------------------------------
193+
[INFO] BUILD SUCCESS
194+
[INFO] ------------------------------------------------------------------------
195+
[INFO] Total time: 02:20 min
196+
[INFO] Finished at: 2023-07-26T12:47:50Z
197+
[INFO] ------------------------------------------------------------------------
198+
```
199+
200+
1. 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:
201+
202+
:::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.":::
203+
204+
### [Embedded Tomcat](#tab/embeddedtomcat)
205+
206+
1. Build the JAR file using the following command.
157207

158208
```bash
159209
mvn clean package
@@ -165,8 +215,6 @@ With all the configuration ready in your [pom.xml](https://github.com/Azure-Samp
165215
- Creates an [executable JAR](https://en.wikipedia.org/wiki/JAR_(file_format)#Executable_JAR_files) by specifying the Tomcat class as the startup class.
166216
- Replaces the original artifact with the `Uber-Jar` to ensure that the deploy step deploys the right file.
167217

168-
-----
169-
170218
1. Deploy the app to Azure by using the following command:
171219

172220
```bash
@@ -185,27 +233,11 @@ With all the configuration ready in your [pom.xml](https://github.com/Azure-Samp
185233
[INFO] ------------------------------------------------------------------------
186234
```
187235

188-
1. Open the app as follows:
189-
190-
### [Spring Boot](#tab/springboot)
191-
192-
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:
193-
194-
:::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.":::
195-
196-
### [Quarkus](#tab/quarkus)
197-
198-
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:
199-
200-
:::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.":::
201-
202-
### [Embedded Tomcat](#tab/embeddedtomcat)
203-
204-
Open the URL for your app's default domain from the **Overview** in the Azure portal. You should see the following app:
236+
1. Open the URL for your app's default domain from the **Overview** in the Azure portal. You should see the following app:
205237

206238
:::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.":::
207-
208-
-----
239+
240+
-----
209241

210242
Congratulations! You deployed a Java app to App Service.
211243

articles/app-service/includes/quickstart-java/quickstart-java-jboss.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,30 @@ ms.date: 06/10/2025
77
ms.author: cephalin
88
---
99

10-
This quickstart uses the Maven plugin to deploy a Java web application to a Linux JBoss EAP server in App Service.
10+
This quickstart uses the Maven plugin to deploy a Java web application to a Linux JBoss EAP server in Azure App Service.
1111

1212
## Prerequisites
1313

1414
- [!INCLUDE [quickstarts-free-trial-note](~/reusable-content/ce-skilling/azure/includes/quickstarts-free-trial-note.md)]
1515

1616
- Run the commands in this quickstart by using Azure Cloud Shell, an interactive shell that you can use through your browser to work with Azure services. To use Cloud Shell:
1717

18-
1. Select **Open Cloud Shell** at upper right in a code block and sign in to Azure if necessary. Make sure you're in the **Bash** environment of Cloud Shell.
19-
1. Select **Copy** in the code block, paste the code into Cloud Shell, and run it.
18+
1. Select the following **Launch Cloud Shell** button or go to https://shell.azure.com to open Cloud Shell in your browser.
19+
:::image type="icon" source="~/reusable-content/ce-skilling/azure/media/cloud-shell/launch-cloud-shell-button.png" alt-text="Button to launch the Azure Cloud Shell." border="false" link="https://shell.azure.com":::
20+
1. Sign in to Azure if necessary, and make sure you're in the **Bash** environment of Cloud Shell.
21+
1. Select **Copy** in a code block, paste the code into Cloud Shell, and run it.
2022

2123
## Create a Java app
2224

2325
1. Clone the Pet Store demo application.
2426

25-
```azurecli-interactive
27+
```bash
2628
git clone https://github.com/Azure-Samples/app-service-java-quickstart
2729
```
2830

2931
1. Change directory to the completed `petstore-ee7` project and build it.
3032

31-
```azurecli-interactive
33+
```bash
3234
cd app-service-java-quickstart
3335
git checkout 20230308
3436
cd petstore-ee7
@@ -46,7 +48,7 @@ The App Service deployment process uses your Azure credentials from Cloud Shell
4648

4749
Run the following Maven command to configure the deployment by setting the App Service operating system, Java version, and Jbosseap version.
4850

49-
```azurecli-interactive
51+
```bash
5052
mvn com.microsoft.azure:azure-webapp-maven-plugin:2.14.1:config
5153
```
5254

@@ -112,7 +114,7 @@ You can modify the configurations for App Service directly in your *pom.xml* fil
112114

113115
With all the configuration ready in your *pom.xml* file, you can deploy your Java app to Azure with the following single command.
114116

115-
```azurecli-interactive
117+
```bash
116118
# Disable testing, as it requires Wildfly to be installed locally.
117119
mvn package azure-webapp:deploy -DskipTests
118120
```

articles/app-service/includes/quickstart-java/quickstart-java-tomcat.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,24 @@ ms.date: 06/10/2025
77
ms.author: cephalin
88
---
99

10-
In this quickstart, you use the Maven plugin to deploy a Java web application to a Linux Tomcat server in App Service.
10+
This quickstart uses the Maven plugin to deploy a Java web application to a Linux Tomcat server in Azure App Service.
1111

1212
## Prerequisites
1313

1414
- [!INCLUDE [quickstarts-free-trial-note](~/reusable-content/ce-skilling/azure/includes/quickstarts-free-trial-note.md)]
1515

1616
- Run the commands in this quickstart by using Azure Cloud Shell, an interactive shell that you can use through your browser to work with Azure services. To use Cloud Shell:
1717

18-
1. Select **Open Cloud Shell** at upper right in a code block and sign in to Azure if necessary. Make sure you're in the **Bash** environment of Cloud Shell.
19-
1. Select **Copy** in the code block, paste the code into Cloud Shell, and run it.
18+
1. Select the following **Launch Cloud Shell** button or go to https://shell.azure.com to open Cloud Shell in your browser.
19+
:::image type="icon" source="~/reusable-content/ce-skilling/azure/media/cloud-shell/launch-cloud-shell-button.png" alt-text="Button to launch the Azure Cloud Shell." border="false" link="https://shell.azure.com":::
20+
1. Sign in to Azure if necessary, and make sure you're in the **Bash** environment of Cloud Shell.
21+
1. Select **Copy** in a code block, paste the code into Cloud Shell, and run it.
2022

2123
## Create a Java app
2224

2325
Run the following Maven command in Cloud Shell to create a new app named `helloworld`:
2426

25-
```azurecli-interactive
27+
```bash
2628
mvn archetype:generate "-DgroupId=example.demo" "-DartifactId=helloworld" "-DarchetypeArtifactId=maven-archetype-webapp" "-DarchetypeVersion=1.4" "-Dversion=1.0-SNAPSHOT"
2729
```
2830

@@ -34,7 +36,7 @@ The App Service deployment process uses your Azure credentials from Cloud Shell
3436

3537
Run the following Maven command to configure the deployment by setting the App Service operating system, Java version, and Tomcat version.
3638

37-
```azurecli-interactive
39+
```bash
3840
mvn com.microsoft.azure:azure-webapp-maven-plugin:2.14.1:config
3941
```
4042

@@ -100,7 +102,7 @@ You can modify the configurations for App Service directly in your *pom.xml* fil
100102

101103
With all the configuration ready in the *pom.xml* file, you can deploy your Java app to Azure with the following single command.
102104

103-
```azurecli-interactive
105+
```bash
104106
mvn package azure-webapp:deploy
105107
```
106108

@@ -114,7 +116,7 @@ Congratulations! You deployed a Java app to App Service.
114116

115117
## Clean up resources
116118

117-
You created the resources for this tutorial in an Azure resource group. If you no longer need them, you can delete the resource group and all its resources by running the following Azure CLI command in the Cloud Shell.
119+
You created the resources for this tutorial in an Azure resource group. If you no longer need them, you can delete the resource group and all its resources by running the following Azure CLI command in Cloud Shell.
118120

119121
```azurecli-interactive
120122
az group delete --name helloworld-1745408005556-rg --yes
-13.6 KB
Loading
-4.95 KB
Loading
-6.11 KB
Loading

0 commit comments

Comments
 (0)