Skip to content

Commit 4402f8f

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,27 +78,27 @@ If you don't have a deployed Azure Spring Apps instance, follow the steps in the
7878

7979
#### Use the Azure CLI
8080

81-
Use the following command to configure your Spring app to connect to a Cosmos SQL Database with a system-assigned managed identity:
81+
1. Use the Azure CLI to configure your Spring app to connect to a Cosmos NoSQL Database (as an example) with a connection string by using the `az spring connection create` command, as shown in the following example. Please replace the variables in the example with actual values.
8282

8383
> [!NOTE]
8484
> Updating Azure Cosmos DB database settings can take a few minutes to complete.
8585

86+
> [!NOTE]
87+
> If you're using Cosmos Cassandra, use `--key_space` instead of `--database`. If you're using Cosmos Table, use `--table` instead of `--database`. See more details at [Service Connector Azure CLI](../service-connector/quickstart-cli-spring-cloud-connection.md).
88+
8689
```azurecli
8790
az spring connection create cosmos-sql \
8891
--resource-group $AZURE_SPRING_APPS_RESOURCE_GROUP \
8992
--service $AZURE_SPRING_APPS_SERVICE_INSTANCE_NAME \
9093
--app $APP_NAME \
91-
--deployment $DEPLOYMENT_NAME \
9294
--target-resource-group $COSMOSDB_RESOURCE_GROUP \
9395
--account $COSMOSDB_ACCOUNT_NAME \
9496
--database $DATABASE_NAME \
95-
--system-assigned-identity
97+
--secret
9698
```
9799

98100
> [!NOTE]
99101
> 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.
100-
>
101-
> If you're using Cosmos Cassandra, use a `--key_space` instead of `--database`.
102102
103103
> [!TIP]
104104
> 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`.

0 commit comments

Comments
 (0)