Skip to content

Commit 7fd5a72

Browse files
authored
Merge pull request #297143 from m-reza-rahman/java-suggestions-reza
Update Java positioning and content
2 parents 6a807c6 + 8735691 commit 7fd5a72

File tree

7 files changed

+96
-89
lines changed

7 files changed

+96
-89
lines changed

articles/app-service/configure-common.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to configure common settings for an Azure App Service app
44
keywords: azure app service, web app, app settings, environment variables
55
ms.assetid: 9af8a367-7d39-4399-9941-b80cbc5f39a0
66
ms.topic: how-to
7-
ms.date: 03/24/2025
7+
ms.date: 03/27/2025
88
ms.custom: devx-track-csharp, devx-track-azurecli, devx-track-azurepowershell, AppServiceConnectivity
99
ms.devlang: azurecli
1010
author: cephalin
@@ -34,10 +34,10 @@ For ASP.NET and ASP.NET Core developers, configuring app settings in App Service
3434
Other language stacks get the app settings as environment variables at runtime. For steps that are specific to each language stack, see:
3535

3636
- [ASP.NET Core](configure-language-dotnetcore.md#access-environment-variables)
37+
- [Java](configure-language-java-data-sources.md)
3738
- [Node.js](configure-language-nodejs.md#access-environment-variables)
38-
- [PHP](configure-language-php.md#access-environment-variables)
3939
- [Python](configure-language-python.md#access-app-settings-as-environment-variables)
40-
- [Java](configure-language-java-data-sources.md)
40+
- [PHP](configure-language-php.md#access-environment-variables)
4141
- [Custom containers](configure-custom-container.md#configure-environment-variables)
4242

4343
App settings are always encrypted when they're stored (encrypted at rest).
@@ -230,10 +230,10 @@ At runtime, connection strings are available as environment variables, prefixed
230230
For example, a MySQL connection string named *connectionstring1* can be accessed as the environment variable `MYSQLCONNSTR_connectionString1`. For steps that are specific to each language stack, see:
231231

232232
- [ASP.NET Core](configure-language-dotnetcore.md#access-environment-variables)
233+
- [Java](configure-language-java-data-sources.md)
233234
- [Node.js](configure-language-nodejs.md#access-environment-variables)
234-
- [PHP](configure-language-php.md#access-environment-variables)
235235
- [Python](configure-language-python.md#access-environment-variables)
236-
- [Java](configure-language-java-data-sources.md)
236+
- [PHP](configure-language-php.md#access-environment-variables)
237237
- [Custom containers](configure-custom-container.md#configure-environment-variables)
238238

239239
Connection strings are always encrypted when they're stored (encrypted at rest).
@@ -411,10 +411,10 @@ It's not possible to edit connection strings in bulk by using a JSON file with A
411411
To configure language stack settings, see these resources:
412412

413413
- [ASP.NET Core](configure-language-dotnetcore.md)
414+
- [Java](configure-language-java-deploy-run.md)
414415
- [Node.js](configure-language-nodejs.md)
415-
- [PHP](configure-language-php.md)
416416
- [Python](configure-language-python.md)
417-
- [Java](configure-language-java-deploy-run.md)
417+
- [PHP](configure-language-php.md)
418418

419419
<a name="alwayson"></a>
420420

articles/app-service/configure-language-java-deploy-run.md

Lines changed: 39 additions & 39 deletions
Large diffs are not rendered by default.

articles/app-service/includes/configure-language-java/java-variants.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
author: cephalin
33
ms.author: cephalin
44
ms.topic: include
5-
ms.date: 05/17/2024
5+
ms.date: 03/27/2025
66
---
77

88
Azure App Service runs Java web applications on a fully managed service in three variants:
99

10-
* Java SE - Can run an app deployed as a JAR package that contains an embedded server (such as Spring Boot, Dropwizard, Quarkus, or one with an embedded Tomcat or Jetty server).
11-
* Tomcat - The built-in Tomcat server can run an app deployed as a WAR package.
12-
* JBoss EAP - Supported for Linux apps in the Free, Premium v3, and Isolated v2 pricing tiers only. The built-in JBoss EAP server can run an app deployed as a WAR or EAR package.
10+
* Java Standard Edition (SE) - Can run an app deployed as a Java Archive (JAR) package that contains an embedded server (such as Spring Boot, Quarkus, Dropwizard, or one with an embedded Tomcat or Jetty server).
11+
* Tomcat - The built-in Tomcat server can run an app deployed as a Web application ARchive (WAR) package.
12+
* JBoss Enterprise Application Platform (EAP) - The built-in JBoss EAP server can run an app deployed as a WAR or Enterprise Archive (EAR) package. Supported for Linux apps in a set of pricing tiers which includes Free, Premium v3, and Isolated v2.

articles/app-service/includes/quickstart-custom-container/quickstart-custom-container-linux-visual-studio-code-pivot.md

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ms.service: azure-app-service
44
ms.devlang: java
55
ms.custom: linux-related-content
66
ms.topic: quickstart
7-
ms.date: 02/14/2025
7+
ms.date: 03/18/2025
88
ms.author: cephalin
99
---
1010

@@ -70,6 +70,23 @@ docker --version
7070
ENTRYPOINT ["dotnet", "/defaulthome/hostingstart/hostingstart.dll"]
7171
```
7272

73+
# [Java](#tab/java)
74+
75+
In this Dockerfile, the parent image is one of the built-in Java containers of App Service. You can find the source files for it at
76+
[java/tree/dev/java11-alpine](https://github.com/Azure-App-Service/java/tree/dev/java11-alpine).
77+
Its [Dockerfile](https://github.com/Azure-App-Service/java/blob/dev/java11-alpine/Dockerfile) copies a simple Java app into `/tmp/appservice`. Your Dockerfile starts
78+
that app.
79+
80+
<!-- https://mcr.microsoft.com/v2/azure-app-service%2Fjava/tags/list -->
81+
```dockerfile
82+
FROM mcr.microsoft.com/azure-app-service/java:11-java11_stable
83+
84+
ENV PORT 80
85+
EXPOSE 80
86+
87+
ENTRYPOINT ["java", "-Dserver.port=80", "-jar", "/tmp/appservice/parkingpage.jar"]
88+
```
89+
7390
# [Node.js](#tab/node)
7491

7592
In this Dockerfile, the parent image is one of the built-in Node.js containers of App Service.
@@ -98,20 +115,6 @@ docker --version
98115

99116
ENTRYPOINT ["gunicorn", "--timeout", "600", "--access-logfile", "'-'", "--error-logfile", "'-'", "--chdir=/opt/defaultsite", "application:app"]
100117
```
101-
102-
# [Java](#tab/java)
103-
104-
In this Dockerfile, the parent image is one of the built-in Java containers of App Service. You can find the source files for it at [java/tree/dev/java11-alpine](https://github.com/Azure-App-Service/java/tree/dev/java11-alpine). Its [Dockerfile](https://github.com/Azure-App-Service/java/blob/dev/java11-alpine/Dockerfile) copies a simple Java app into `/tmp/appservice`. Your Dockerfile starts that app.
105-
106-
<!-- https://mcr.microsoft.com/v2/azure-app-service%2Fjava/tags/list -->
107-
```dockerfile
108-
FROM mcr.microsoft.com/azure-app-service/java:11-java11_stable
109-
110-
ENV PORT 80
111-
EXPOSE 80
112-
113-
ENTRYPOINT ["java", "-Dserver.port=80", "-jar", "/tmp/appservice/parkingpage.jar"]
114-
```
115118
---
116119

117120
1. [Open the Command Palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette), and type **Docker Images: Build Image**. Select **Enter** to run the command.
@@ -155,7 +158,7 @@ The **Output** panel shows the status of the deployment operations. When the ope
155158

156159
## Related content
157160

158-
Congratulations, you've successfully completed this quickstart.
161+
Congratulations, you successfully completed this quickstart!
159162

160163
The App Service app pulls from the container registry every time it starts. If you rebuild your image, you just need to push it to your container registry, and the app pulls in the updated image when it restarts. To tell your app to pull in the updated image immediately, restart it.
161164

articles/app-service/quickstart-arm-template.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: msangapu-msft
55
ms.author: msangapu
66
ms.assetid: 582bb3c2-164b-42f5-b081-95bfcb7a502a
77
ms.topic: quickstart
8-
ms.date: 02/06/2024
8+
ms.date: 03/18/2025
99
ms.custom: subject-armqs, mode-arm, devdivchpfy22, devx-track-arm-template, linux-related-content
1010
zone_pivot_groups: app-service-platform-windows-linux-windows-container
1111
adobe-target: true
@@ -19,7 +19,7 @@ adobe-target-content: ./quickstart-arm-template-uiex
1919
::: zone pivot="platform-windows"
2020
Get started with [Azure App Service](overview.md) by deploying an app to the cloud using an Azure Resource Manager template (ARM template) and [Azure CLI](/cli/azure/get-started-with-azure-cli) in Cloud Shell. A Resource Manager template is a JavaScript Object Notation (JSON) file that defines the infrastructure and configuration for your project. You incur no costs to complete this quickstart because you use a free App Service tier.
2121

22-
To complete this quickstart, you'll need an Azure account with an active subscription. If you don't have an Azure account, you can [create one for free](https://azure.microsoft.com/free/).
22+
To complete this quickstart, you need an Azure account with an active subscription. If you don't have an Azure account, you can [create one for free](https://azure.microsoft.com/free/).
2323

2424
## Skip to the end
2525

@@ -33,7 +33,7 @@ In the Azure portal, select **Create new** to create a new Resource Group and th
3333
::: zone pivot="platform-linux"
3434
Get started with [Azure App Service](overview.md) by deploying an app to the cloud using an Azure Resource Manager template (ARM template) and [Azure CLI](/cli/azure/get-started-with-azure-cli) in Cloud Shell. A Resource Manager template is a JavaScript Object Notation (JSON) file that defines the infrastructure and configuration for your project. You incur no costs to complete this quickstart because you use a free App Service tier.
3535

36-
To complete this quickstart, you'll need an Azure account with an active subscription. If you don't have an Azure account, you can [create one for free](https://azure.microsoft.com/free/).
36+
To complete this quickstart, you need an Azure account with an active subscription. If you don't have an Azure account, you can [create one for free](https://azure.microsoft.com/free/).
3737

3838
## Skip to the end
3939

@@ -132,7 +132,7 @@ This template contains several parameters that are predefined for your convenien
132132

133133
Azure CLI is used here to deploy the template. You can also use the Azure portal, Azure PowerShell, and REST API. To learn other deployment methods, see [Deploy templates](../azure-resource-manager/templates/deploy-powershell.md).
134134

135-
The following code creates a resource group, an App Service plan, and a web app. A default resource group, App Service plan, and location have been set for you. Replace `<app-name>` with a globally unique app name (valid characters are `a-z`, `0-9`, and `-`).
135+
The following code creates a resource group, an App Service plan, and a web app. A default resource group, App Service plan, and location are set for you. Replace `<app-name>` with a globally unique app name (valid characters are `a-z`, `0-9`, and `-`).
136136

137137
::: zone pivot="platform-windows"
138138
Run the following commands to deploy a .NET framework app on Windows.
@@ -154,15 +154,19 @@ az deployment group create --resource-group myResourceGroup --parameters webAppN
154154
--template-uri "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.web/app-service-docs-linux/azuredeploy.json"
155155
```
156156

157-
To deploy a different language stack, update `linuxFxVersion` with appropriate values. Samples are shown in the table. To show current versions, run the following command in the Cloud Shell: `az webapp config show --resource-group myResourceGroup --name <app-name> --query linuxFxVersion`
157+
To deploy a different language stack, update `linuxFxVersion` with appropriate values. Samples are shown in the table. To show current versions, run the following command in the Cloud Shell:
158158

159-
| Language | Example |
160-
|-------------|------------------------------------------------------|
161-
| **.NET** | linuxFxVersion="DOTNETCORE&#124;3.0" |
162-
| **PHP** | linuxFxVersion="PHP&#124;7.4" |
163-
| **Node.js** | linuxFxVersion="NODE&#124;10.15" |
164-
| **Java** | linuxFxVersion="JAVA&#124;1.8 &#124;TOMCAT&#124;9.0" |
165-
| **Python** | linuxFxVersion="PYTHON&#124;3.7" |
159+
```azurecli-interactive
160+
az webapp config show --resource-group myResourceGroup --name <app-name> --query linuxFxVersion
161+
```
162+
163+
| Language | Example |
164+
|-------------|------------------------------------------------------------------------------------|
165+
| **.NET** | linuxFxVersion="DOTNETCORE&#124;3.0" |
166+
| **Java** | linuxFxVersion="JAVA&#124;21-java21 TOMCAT&#124;10.1-java21 JBOSSEAP&#124;8-java17"|
167+
| **Node.js** | linuxFxVersion="NODE&#124;10.15" |
168+
| **Python** | linuxFxVersion="PYTHON&#124;3.7" |
169+
| **PHP** | linuxFxVersion="PHP&#124;7.4" |
166170

167171
---
168172
::: zone-end

0 commit comments

Comments
 (0)