Skip to content

Commit

Permalink
minor fix on commands (#155)
Browse files Browse the repository at this point in the history
## Purpose

## Does this introduce a breaking change?
<!-- Mark one with an "x". -->
```
[ ] Yes
[x] No
```

## Pull Request Type
What kind of change does this Pull Request introduce?

<!-- Please check the one that applies to this PR using "x". -->
```
[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[x] Documentation content changes
[ ] Other... Please describe:
```
  • Loading branch information
sonwan2020 authored Dec 17, 2024
1 parent 16af485 commit a257fca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/04_lab_secrets/0403.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ The following three apps of your application use the database hosted by the Azur
--target-id $DB_ID \
--client-type SpringBoot \
--user-identity client-id=$APPS_IDENTITY_CLIENT_ID subs-id=$SUBID mysql-identity-id=$ADMIN_IDENTITY_RESOURCE_ID user-object-id=$AAD_USER_ID \
--container $APP_NAME
--container $APP_NAME \
--yes
```

1. You can test the validity of this new connection with the `validate` command:
Expand All @@ -61,7 +62,8 @@ The following three apps of your application use the database hosted by the Azur
az containerapp connection validate \
--resource-group $RESOURCE_GROUP \
--name $APP_NAME \
--connection mysql_conn
--connection mysql_conn \
-o table
```

The output of this command should show that the connection was made successful.
Expand Down
3 changes: 2 additions & 1 deletion tools/update-apps-passwordless.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ update_app_passwordless() {
--target-id $DB_ID \
--client-type SpringBoot \
--user-identity client-id=$APPS_IDENTITY_CLIENT_ID subs-id=$SUBID mysql-identity-id=$ADMIN_IDENTITY_RESOURCE_ID user-object-id=$AAD_USER_ID \
--container $APP_NAME > $DIR/$APP_NAME.connection.log 2>&1
--container $APP_NAME \
--yes > $DIR/$APP_NAME.connection.log 2>&1
if [[ $? -ne 0 ]]; then
echo "Create service connection for $APP_NAME failed, check $DIR/$APP_NAME.connection.log for more details"
return 1
Expand Down

0 comments on commit a257fca

Please sign in to comment.