Skip to content

Commit a95ccba

Browse files
Update how-to-bind-mysql.md
There's a wrong argument --system-assigned-identity for Service Connector, use --system-identity instead. ServiceConnector doesn't support spring apps with mysql using system identity now, use --secret instead
1 parent 4402f8f commit a95ccba

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

articles/spring-apps/how-to-bind-mysql.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,26 +49,18 @@ With Azure Spring Apps, you can bind select Azure services to your applications
4949

5050
### [Service Connector](#tab/Service-Connector)
5151

52-
Follow these steps to configure your Spring app to connect to an Azure Database for MySQL Flexible Server with a system-assigned managed identity.
53-
54-
1. Install the Service Connector passwordless extension for the Azure CLI.
55-
56-
```azurecli
57-
az extension add --name serviceconnector-passwordless --upgrade
58-
```
59-
60-
1. Run the `az spring connection create` command, as shown in the following example.
52+
Follow these steps to configure your Spring app to connect to an Azure Database for MySQL Flexible Server with database username and password.
6153

54+
1. Run the `az spring connection create` command, as shown in the following example. Please replace the variables in the example with actual values.
6255
```azurecli
6356
az spring connection create mysql-flexible \
6457
--resource-group $AZURE_SPRING_APPS_RESOURCE_GROUP \
6558
--service $AZURE_SPRING_APPS_SERVICE_INSTANCE_NAME \
6659
--app $APP_NAME \
67-
--deployment $DEPLOYMENT_NAME \
6860
--target-resource-group $MYSQL_RESOURCE_GROUP \
6961
--server $MYSQL_SERVER_NAME \
7062
--database $DATABASE_NAME \
71-
--system-assigned-identity
63+
--secret name=$DATABASE_USERNAME secret=$DATABASE_PASSWORD
7264
```
7365

7466
### [Service Binding](#tab/Service-Binding)

0 commit comments

Comments
 (0)