Skip to content

Commit b1eefe8

Browse files
authored
Add managed identity note
1 parent 1ed6173 commit b1eefe8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

articles/service-connector/how-to-integrate-cosmos-db.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ The table below shows which combinations of client types and authentication meth
3838

3939
This table indicates that all combinations of client types and authentication methods in the table are supported, except for the Java - Spring Boot client type, which only supports the Secret / connection string method. All other client types can use any of the authentication methods to connect to Azure Cosmos DB for MongoDB using Service Connector.
4040

41+
> [!NOTE]
42+
> Managed identities are used to list connection strings and connect to Cosmos DB. However, Cosmos DB doesn't natively support authentication via managed identity.
43+
4144
## Default environment variable names or application properties and sample code
4245

4346
Use the connection details below to connect compute services to Azure Cosmos DB. This page also shows default environment variable names and values (or Spring Boot configuration) you get when you create the service connection, as well as sample code. For each example below, replace the placeholder texts `<mongo-db-admin-user>`, `<password>`, `<Azure-Cosmos-DB-API-for-MongoDB-account>`, `<subscription-ID>`, `<resource-group-name>`, `<client-secret>`, and `<tenant-id>` with your own information. For more information about naming conventions, check the [Service Connector internals](concept-service-connector-internals.md#configuration-naming-convention) article.
@@ -53,6 +56,9 @@ Use the connection details below to connect compute services to Azure Cosmos DB.
5356
#### Sample code
5457

5558
Refer to the steps and code below to connect to Azure Cosmos DB for MongoDB using a system-assigned managed identity.
59+
60+
The managed identity code sample uses the system-assigned managed identity to list the connection string and connect to Cosmos DB. However, Cosmos DB doesn't natively support authentication via system-assigned managed identity.
61+
5662
[!INCLUDE [code sample for mongo](./includes/code-cosmosmongo-me-id.md)]
5763

5864
### User-assigned managed identity
@@ -67,6 +73,9 @@ Refer to the steps and code below to connect to Azure Cosmos DB for MongoDB usin
6773
#### Sample code
6874

6975
Refer to the steps and code below to connect to Azure Cosmos DB for MongoDB using a user-assigned managed identity.
76+
77+
The user-assigned managed identity code sample uses the system-assigned managed identity to list the connection string and connect to Cosmos DB. However, Cosmos DB doesn't natively support authentication via system-assigned managed identity.
78+
7079
[!INCLUDE [code sample for mongo](./includes/code-cosmosmongo-me-id.md)]
7180

7281
### Connection string

0 commit comments

Comments
 (0)