Skip to content

Commit 2de88ad

Browse files
Merge pull request #235853 from KarlErickson/brycechen1849-patch-1
edit "Brycechen1849 patch 1 #235333"
2 parents f88e78c + 684d60b commit 2de88ad

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,19 @@ Instead of manually configuring your Spring Boot applications, you can automatic
6565

6666
#### Use the Azure CLI
6767

68-
Use the Azure CLI to configure your Spring app to connect to a Cosmos SQL Database by using the `az spring connection create` command, as shown in the following example:
68+
Use the Azure CLI to configure your Spring app to connect to a Cosmos NoSQL Database by using the `az spring connection create` command, as shown in the following example. Be sure to replace the variables in the example with actual values.
6969

7070
> [!NOTE]
7171
> Updating Azure Cosmos DB database settings can take a few minutes to complete.
7272

73+
> [!NOTE]
74+
> If you're using Cosmos Cassandra, use `--key_space` instead of `--database`. If you're using Cosmos Table, use `--table` instead of `--database`. For more information, see [Quickstart: Create a service connection in Azure Spring Apps with the Azure CLI](../service-connector/quickstart-cli-spring-cloud-connection.md).
75+
7376
```azurecli
7477
az spring connection create cosmos-sql \
7578
--resource-group $AZURE_SPRING_APPS_RESOURCE_GROUP \
7679
--service $AZURE_SPRING_APPS_SERVICE_INSTANCE_NAME \
7780
--app $APP_NAME \
78-
--deployment $DEPLOYMENT_NAME \
7981
--target-resource-group $COSMOSDB_RESOURCE_GROUP \
8082
--account $COSMOSDB_ACCOUNT_NAME \
8183
--database $DATABASE_NAME \
@@ -84,8 +86,6 @@ az spring connection create cosmos-sql \
8486

8587
> [!NOTE]
8688
> If you're using [Service Connector](../service-connector/overview.md) for the first time, start by running the command `az provider register --namespace Microsoft.ServiceLinker` to register the Service Connector resource provider.
87-
>
88-
> If you're using Cosmos Cassandra, use a `--key_space` instead of `--database`.
8989
9090
> [!TIP]
9191
> Run the command `az spring connection list-support-types --output table` to get a list of supported target services and authentication methods for Azure Spring Apps. If the `az spring` command isn't recognized by the system, check that you have installed the required extension by running `az extension add --name spring`.

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

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,27 +49,23 @@ With Azure Spring Apps, you can connect selected Azure services to your applicat
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.
52+
Follow these steps to configure your Spring app to connect to an Azure Database for MySQL Flexible Server with database username and password.
5353

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.
54+
1. Run the `az spring connection create` command, as shown in the following example. Be sure to replace the variables in the example with actual values.
6155

6256
```azurecli
6357
az spring connection create mysql-flexible \
6458
--resource-group $AZURE_SPRING_APPS_RESOURCE_GROUP \
6559
--service $AZURE_SPRING_APPS_SERVICE_INSTANCE_NAME \
6660
--app $APP_NAME \
67-
--deployment $DEPLOYMENT_NAME \
6861
--target-resource-group $MYSQL_RESOURCE_GROUP \
6962
--server $MYSQL_SERVER_NAME \
7063
--database $DATABASE_NAME \
71-
--system-identity mysql-identity-id=$AZ_IDENTITY_RESOURCE_ID
64+
--secret name=$DATABASE_USERNAME secret=$DATABASE_PASSWORD
7265
```
66+
67+
> [!NOTE]
68+
> Alternatively, you can use a system-assigned identity for a passwordless experience. For more information, see [Deploy a Spring application to Azure Spring Apps with a passwordless connection to an Azure database](/azure/developer/java/spring-framework/deploy-passwordless-spring-database-app).
7369
7470
### [Terraform](#tab/Terraform)
7571

0 commit comments

Comments
 (0)