Skip to content

Commit 6dffedf

Browse files
author
pensh
committed
Refine spring apps doc for correctness
1 parent 3f2e8bf commit 6dffedf

File tree

3 files changed

+14
-17
lines changed

3 files changed

+14
-17
lines changed

articles/spring-apps/how-to-built-in-persistent-storage.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ By default, Azure Spring Apps provides temporary storage for each application in
2727
2828
Persistent storage is a file-share container managed by Azure and allocated per application. Data stored in persistent storage is shared by all instances of an application. An Azure Spring Apps instance can have a maximum of 10 applications with persistent storage enabled. Each application is allocated 50 GB of persistent storage. The default mount path for persistent storage is */persistent*.
2929

30-
> [!WARNING]
31-
> If you disable an applications's persistent storage, all of that storage is deallocated and all of the stored data is lost.
32-
3330
## Enable or disable built-in persistent storage
3431

3532
You can enable or disable built-in persistent storage using the Azure portal or Azure CLI.
@@ -89,7 +86,7 @@ Other operations:
8986
---
9087
9188
> [!WARNING]
92-
> If you disable an applications's persistent storage, all of that storage is deallocated and all of the stored data is permanently lost.
89+
> If you disable an applications' persistent storage, all of that storage is deallocated and all of the stored data is permanently lost.
9390
9491
## Next steps
9592

articles/spring-apps/how-to-staging-environment.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ az extension add --name spring
4444

4545
To build the application, follow these steps:
4646

47-
1. Generate the code for the sample app by using Spring Initializr with [this configuration](https://start.spring.io/#!type=maven-project&language=java&platformVersion=2.3.4.RELEASE&packaging=jar&jvmVersion=1.8&groupId=com.example&artifactId=hellospring&name=hellospring&description=Demo%20project%20for%20Spring%20Boot&packageName=com.example.hellospring&dependencies=web,cloud-eureka,actuator,cloud-starter-sleuth,cloud-starter-zipkin,cloud-config-client).
47+
1. Generate the code for the sample app by using Spring Initializr with [this configuration](https://start.spring.io/#!type=maven-project&language=java&packaging=jar&groupId=com.example&artifactId=hellospring&name=hellospring&description=Demo%20project%20for%20Spring%20Boot&packageName=com.example.hellospring&dependencies=web,cloud-eureka,actuator,cloud-config-client).
4848

4949
1. Download the code.
5050
1. Add the following *HelloController.java* source file to the folder *\src\main\java\com\example\hellospring\*:
@@ -76,13 +76,13 @@ To build the application, follow these steps:
7676
1. Create the app in your Azure Spring Apps instance:
7777

7878
```azurecli
79-
az spring app create -n demo -g <resourceGroup> -s <Azure Spring Apps instance> --assign-endpoint
79+
az spring app create -n demo -g <resourceGroup> -s <Azure Spring Apps instance> --runtime-version Java_17 --assign-endpoint
8080
```
8181

8282
1. Deploy the app to Azure Spring Apps:
8383

8484
```azurecli
85-
az spring app deploy -n demo -g <resourceGroup> -s <Azure Spring Apps instance> --jar-path target\hellospring-0.0.1-SNAPSHOT.jar
85+
az spring app deploy -n demo -g <resourceGroup> -s <Azure Spring Apps instance> --artifact-path target\hellospring-0.0.1-SNAPSHOT.jar
8686
```
8787

8888
1. Modify the code for your staging deployment:
@@ -114,7 +114,7 @@ To build the application, follow these steps:
114114
1. Create the green deployment:
115115

116116
```azurecli
117-
az spring app deployment create -n green --app demo -g <resourceGroup> -s <Azure Spring Apps instance> --jar-path target\hellospring-0.0.1-SNAPSHOT.jar
117+
az spring app deployment create -n green --app demo -g <resourceGroup> -s <Azure Spring Apps instance> --runtime-version Java_17 --artifact-path target\hellospring-0.0.1-SNAPSHOT.jar
118118
```
119119

120120
## View apps and deployments

articles/spring-apps/quickstart-deploy-apps.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ This article explains how to build and deploy Spring applications to Azure Sprin
187187
- Completion of the previous quickstarts in this series:
188188
- [Provision an Azure Spring Apps service instance](./quickstart-provision-service-instance.md).
189189
- [Set up Azure Spring Apps Config Server](./quickstart-setup-config-server.md).
190-
- [JDK 8 or JDK 11](/azure/developer/java/fundamentals/java-jdk-install)
190+
- [JDK 17](/azure/developer/java/fundamentals/java-jdk-install)
191191
- An Azure subscription. If you don't have a subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
192192
- Optionally, [Azure CLI version 2.0.67 or higher](/cli/azure/install-azure-cli). Install the Azure Spring Apps extension with the following command: `az extension add --name spring`
193193
- Optionally, [the Azure Toolkit for IntelliJ](https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij/).
@@ -219,8 +219,8 @@ Use the following steps to create and deploys apps on Azure Spring Apps using th
219219
1. Create the two core Spring applications for PetClinic: API gateway and customers-service.
220220

221221
```azurecli
222-
az spring app create --name api-gateway --instance-count 1 --memory 2Gi --assign-endpoint
223-
az spring app create --name customers-service --instance-count 1 --memory 2Gi
222+
az spring app create --name api-gateway --runtime-version Java_17 --instance-count 1 --memory 2Gi --assign-endpoint
223+
az spring app create --name customers-service --runtime-version Java_17 --instance-count 1 --memory 2Gi
224224
```
225225

226226
1. Deploy the JAR files built in the previous step.
@@ -265,12 +265,12 @@ Access the app gateway and customers service from browser with the **Public Url*
265265
To get the PetClinic app functioning with all features like Admin Server, Visits, and Veterinarians, deploy the other apps with following commands:
266266

267267
```azurecli
268-
az spring app create --name admin-server --instance-count 1 --memory 2Gi --assign-endpoint
269-
az spring app create --name vets-service --instance-count 1 --memory 2Gi
270-
az spring app create --name visits-service --instance-count 1 --memory 2Gi
271-
az spring app deploy --name admin-server --jar-path spring-petclinic-admin-server/target/spring-petclinic-admin-server-3.0.1.jar --jvm-options="-Xms2048m -Xmx2048m"
272-
az spring app deploy --name vets-service --jar-path spring-petclinic-vets-service/target/spring-petclinic-vets-service-3.0.1.jar --jvm-options="-Xms2048m -Xmx2048m"
273-
az spring app deploy --name visits-service --jar-path spring-petclinic-visits-service/target/spring-petclinic-visits-service-3.0.1.jar --jvm-options="-Xms2048m -Xmx2048m"
268+
az spring app create --name admin-server --runtime-version Java_17 --instance-count 1 --memory 2Gi --assign-endpoint
269+
az spring app create --name vets-service --runtime-version Java_17 --instance-count 1 --memory 2Gi
270+
az spring app create --name visits-service --runtime-version Java_17 --instance-count 1 --memory 2Gi
271+
az spring app deploy --name admin-server --runtime-version Java_17 --jar-path spring-petclinic-admin-server/target/spring-petclinic-admin-server-3.0.1.jar --jvm-options="-Xms1536m -Xmx1536m"
272+
az spring app deploy --name vets-service --runtime-version Java_17 --jar-path spring-petclinic-vets-service/target/spring-petclinic-vets-service-3.0.1.jar --jvm-options="-Xms1536m -Xmx1536m"
273+
az spring app deploy --name visits-service --runtime-version Java_17 --jar-path spring-petclinic-visits-service/target/spring-petclinic-visits-service-3.0.1.jar --jvm-options="-Xms1536m -Xmx1536m"
274274
```
275275

276276
#### [Maven](#tab/Maven)

0 commit comments

Comments
 (0)