Skip to content

Commit 0c3eebe

Browse files
committed
add a step to validate the spring service connector result
1 parent e4d6244 commit 0c3eebe

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

articles/spring-apps/connect-managed-identity-to-azure-sql.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Configure your app deployed to Azure Spring to connect to an SQL Database with a
7272
az extension add --name serviceconnector-passwordless --upgrade
7373
```
7474

75-
1. Run the `az spring connection create` command, as shown in the following example.
75+
2. Run the `az spring connection create` command, as shown in the following example.
7676

7777
```azurecli
7878
az spring connection create sql \
@@ -85,7 +85,21 @@ Configure your app deployed to Azure Spring to connect to an SQL Database with a
8585
--database $DATABASE_NAME \
8686
--system-identity
8787
```
88-
88+
3. Run the `az spring connection list-configuration` command to check the creation result.
89+
```azurecli
90+
CONNECTION_NAME=$(az spring connection list \
91+
--resource-group $SPRING_APP_RESOURCE_GROUP \
92+
--service $SPRING_APP_SERVICE_NAME \
93+
--app $APP_NAME \
94+
--query '[0].name' \
95+
--output tsv)
96+
97+
az spring connection list-configuration \
98+
--resource-group $SPRING_APP_RESOURCE_GROUP \
99+
--service $SPRING_APP_SERVICE_NAME \
100+
--app $APP_NAME \
101+
--connection $CONNECTION_NAME
102+
```
89103
---
90104

91105
## Build and deploy the app to Azure Spring Apps

0 commit comments

Comments
 (0)