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/quickstart-deploy-web-app.md
+17-12Lines changed: 17 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ This quickstart shows how to deploy a Spring Boot web application to Azure Sprin
23
23
24
24
- A frontend bounded [React](https://reactjs.org/) application.
25
25
- A backend Spring web application that uses Spring Data JPA to access a relational database.
26
-
- A relational database. For localhost, the application uses [H2 Database Engine](https://www.h2database.com/html/main.html). For Azure Spring Apps, the application uses Azure Database for PreSql. For more information about Azure Database for PreSql, see [Flexible Server documentation](/azure/postgresql/flexible-server/).
26
+
- A relational database. For localhost, the application uses [H2 Database Engine](https://www.h2database.com/html/main.html). For Azure Spring Apps, the application uses Azure Database for PreSql. For more information about Azure Database for PreSql, see [Flexible Server documentation](../postgresql/flexible-server/overview.md).
27
27
28
28
The following diagram shows the architecture of the system:
29
29
@@ -38,6 +38,8 @@ The following diagram shows the architecture of the system:
38
38
39
39
## Clone and run the sample project locally
40
40
41
+
Use the following steps to clone and run the app locally.
42
+
41
43
1. The sample project is available on GitHub. Use the following command to clone the sample project:
42
44
43
45
```bash
@@ -65,7 +67,7 @@ The following diagram shows the architecture of the system:
65
67
66
68
The main resources required to run this sample are an Azure Spring Apps instance and an Azure Database for PostgreSQL instance. This section provides the steps to create these resources.
67
69
68
-
### Step 1 - Provide names for each resource
70
+
### Provide names for each resource
69
71
70
72
Set the following names for the resources. Make adjustments as needed to avoid conflicts with existing resources.
71
73
@@ -79,7 +81,7 @@ APP_NAME=webapp
79
81
CONNECTION=WebAppConnection
80
82
```
81
83
82
-
### Step 2 - Create a new resource group
84
+
### Create a new resource group
83
85
84
86
Use the following steps to create a new resource group.
85
87
@@ -119,7 +121,7 @@ Use the following steps to create a new resource group.
119
121
az configure --defaults group=${RESOURCE_GROUP}
120
122
```
121
123
122
-
### Step 3 - Create an Azure Spring Apps instance
124
+
### Create an Azure Spring Apps instance
123
125
124
126
Azure Spring Apps is used to host the Spring web app. Create an Azure Spring Apps instance and an application inside it.
125
127
@@ -139,7 +141,7 @@ Azure Spring Apps is used to host the Spring web app. Create an Azure Spring App
139
141
--assign-endpoint true
140
142
```
141
143
142
-
### Step 4 - Prepare the PostgreSQL instance
144
+
### Prepare the PostgreSQL instance
143
145
144
146
The Spring web app uses H2 for the database in localhost, and Azure Database for PostgreSQL for the database in Azure.
145
147
@@ -154,14 +156,14 @@ az postgres flexible-server create \
154
156
155
157
To ensure that the application is accessible only by PostgreSQL in Azure Spring Apps, enter `n` to the prompts to enable access to a specific IP address and to enable access for all IP addresses.
156
158
157
-
```azurecli
159
+
```output
158
160
Do you want to enable access to client xxx.xxx.xxx.xxx (y/n) (y/n): n
159
161
Do you want to enable access for all IPs (y/n): n
160
162
```
161
163
162
-
### Step 5 - Connect app instance to PostgreSQL instance
164
+
### Connect app instance to PostgreSQL instance
163
165
164
-
After the application instance and the PostgreSQL instance are created, the application instance can't access the PostgreSQL instance directly. The following steps use Service Connector to configure the needed network settings and connection information. For more information about Service Connector, see [What is Service Connector?](/azure/service-connector/overview).
166
+
After the application instance and the PostgreSQL instance are created, the application instance can't access the PostgreSQL instance directly. The following steps use Service Connector to configure the needed network settings and connection information. For more information about Service Connector, see [What is Service Connector?](../service-connector/overview.md).
165
167
166
168
1. If you're using Service Connector for the first time, register the Service Connector resource provider.
167
169
@@ -190,7 +192,7 @@ After the application instance and the PostgreSQL instance are created, the appl
190
192
--connection ${CONNECTION}
191
193
```
192
194
193
-
The `--system-identity` parameter is required for the passwrodless connection. For more information, see [Bind an Azure Database for PostgreSQL to your application in Azure Spring Apps](/azure/spring-apps/how-to-bind-postgres?tabs=Passwordlessflex).
195
+
The `--system-identity` parameter is required for the passwrodless connection. For more information, see [Bind an Azure Database for PostgreSQL to your application in Azure Spring Apps](how-to-bind-postgres.md).
194
196
195
197
1. After the connection is created, use the following command to validate the connection:
196
198
@@ -274,8 +276,11 @@ Now that the cloud environment is prepared, the application is ready to deploy.
274
276
275
277
## Next steps
276
278
277
-
[Bind an Azure Database for PostgreSQL to your application in Azure Spring Apps](/azure/spring-apps/how-to-bind-postgres?tabs=Secrets)
279
+
> [!div class="nextstepaction"]
280
+
> [Create a service connection in Azure Spring Apps with the Azure CLI](../service-connector/quickstart-cli-spring-cloud-connection.md)
278
281
279
-
[Create a service connection in Azure Spring Apps with the Azure CLI](/azure/service-connector/quickstart-cli-spring-cloud-connection)
282
+
For more information, see the following articles:
280
283
281
-
[Azure Spring Apps Samples](https://github.com/Azure-Samples/Azure-Spring-Cloud-Samples)
284
+
-[Azure Spring Apps Samples](https://github.com/Azure-Samples/Azure-Spring-Cloud-Samples).
0 commit comments