Skip to content

Commit 2a8f529

Browse files
Merge pull request #254115 from leonard520/leonard520-patch-2
Update quickstart-integrate-azure-database-and-redis-enterprise.md
2 parents 6186af4 + 07028b7 commit 2a8f529

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

articles/spring-apps/quickstart-integrate-azure-database-and-redis-enterprise.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,15 @@ The following steps show how to bind applications running in the Azure Spring Ap
226226
--app cart-service \
227227
--connection cart_service_cache | jq -r '.configurations[0].value')
228228
229+
export GATEWAY_URL=$(az spring gateway show \
230+
--resource-group <resource-group-name> \
231+
--service <Azure-Spring-Apps-service-instance-name> | jq -r '.properties.url')
232+
229233
az spring app update \
230234
--resource-group <resource-group-name> \
231235
--name cart-service \
232236
--service <Azure-Spring-Apps-service-instance-name> \
233-
--env "CART_PORT=8080" "REDIS_CONNECTIONSTRING=${REDIS_CONN_STR}"
237+
--env "CART_PORT=8080" "REDIS_CONNECTIONSTRING=${REDIS_CONN_STR}" "AUTH_URL=https://${GATEWAY_URL}"
234238
```
235239

236240
## Access the application

0 commit comments

Comments
 (0)