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/spring-apps/how-to-built-in-persistent-storage.md
+1-4Lines changed: 1 addition & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,6 @@ By default, Azure Spring Apps provides temporary storage for each application in
27
27
28
28
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*.
29
29
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
-
33
30
## Enable or disable built-in persistent storage
34
31
35
32
You can enable or disable built-in persistent storage using the Azure portal or Azure CLI.
@@ -89,7 +86,7 @@ Other operations:
89
86
---
90
87
91
88
> [!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.
Copy file name to clipboardExpand all lines: articles/spring-apps/how-to-staging-environment.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ az extension add --name spring
44
44
45
45
To build the application, follow these steps:
46
46
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).
48
48
49
49
1. Download the code.
50
50
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:
76
76
1. Create the app in your Azure Spring Apps instance:
77
77
78
78
```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
80
80
```
81
81
82
82
1. Deploy the app to Azure Spring Apps:
83
83
84
84
```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
86
86
```
87
87
88
88
1. Modify the code for your staging deployment:
@@ -114,7 +114,7 @@ To build the application, follow these steps:
114
114
1. Create the green deployment:
115
115
116
116
```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
- 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.
192
192
- 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`
193
193
- 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
219
219
1. Create the two core Spring applications for PetClinic: API gateway and customers-service.
220
220
221
221
```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
224
224
```
225
225
226
226
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*
265
265
To get the PetClinic app functioning with all features like Admin Server, Visits, and Veterinarians, deploy the other apps with following commands:
266
266
267
267
```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"
0 commit comments