You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/service-connector/how-to-integrate-cosmos-cassandra.md
+15-6Lines changed: 15 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: maud-lv
5
5
ms.author: malev
6
6
ms.service: service-connector
7
7
ms.topic: how-to
8
-
ms.date: 02/02/2024
8
+
ms.date: 03/14/2025
9
9
---
10
10
11
11
# Integrate Azure Cosmos DB for Cassandra with Service Connector
@@ -38,11 +38,14 @@ The table below shows which combinations of client types and authentication meth
38
38
39
39
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 Apache Cassandra using Service Connector.
40
40
41
-
## Default environment variable names or application properties and Sample code
41
+
> [!NOTE]
42
+
> Cosmos DB does not natively support authentication via managed identity. Therefore, Service Connector uses the managed identity to retrieve the connection string, and the connection is subsequently established using that connection string.
43
+
44
+
## Default environment variable names or application properties and sample code
42
45
43
46
Reference the connection details and sample code in the following tables, according to your connection's authentication type and client type, to connect your compute services to Azure Cosmos DB for Apache Cassandra. For more information about naming conventions, check the [Service Connector internals](concept-service-connector-internals.md#configuration-naming-convention) article.
44
47
45
-
### System-assigned Managed Identity
48
+
### System-assigned managed identity
46
49
47
50
| Default environment variable name | Description | Example value |
@@ -57,9 +60,12 @@ Reference the connection details and sample code in the following tables, accord
57
60
#### Sample code
58
61
59
62
Refer to the steps and code below to connect to Azure Cosmos DB for Cassandra using a system-assigned managed identity.
63
+
64
+
Since Cosmos DB doesn't natively support authentication via managed identity, in the following code sample, we use the managed identity to retrieve the connection string, and the connection is then established using that connection string.
65
+
60
66
[!INCLUDE [code sample for cassandra](./includes/code-cosmoscassandra-me-id.md)]
61
67
62
-
### User-assigned Managed Identity
68
+
### User-assigned managed identity
63
69
64
70
| Default environment variable name | Description | Example value |
@@ -75,14 +81,17 @@ Refer to the steps and code below to connect to Azure Cosmos DB for Cassandra us
75
81
#### Sample code
76
82
77
83
Refer to the steps and code below to connect to Azure Cosmos DB for Cassandra using a user-assigned managed identity.
84
+
85
+
Since Cosmos DB doesn't natively support authentication via managed identity, in the following code sample, we use the managed identity to retrieve the connection string, and the connection is then established using that connection string.
86
+
78
87
[!INCLUDE [code sample for cassandra](./includes/code-cosmoscassandra-me-id.md)]
79
88
80
-
### Connection String
89
+
### Connection string
81
90
82
91
> [!WARNING]
83
92
> Microsoft recommends that you use the most secure authentication flow available. The authentication flow described in this procedure requires a very high degree of trust in the application, and carries risks that are not present in other flows. You should only use this flow when other more secure flows, such as managed identities, aren't viable.
84
93
85
-
#### SpringBoot client type
94
+
#### Spring Boot client type
86
95
87
96
| Default environment variable name | Description | Example value |
Copy file name to clipboardExpand all lines: articles/service-connector/how-to-integrate-cosmos-db.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: maud-lv
5
5
ms.author: malev
6
6
ms.service: service-connector
7
7
ms.topic: how-to
8
-
ms.date: 02/02/2024
8
+
ms.date: 03/14/2025
9
9
---
10
10
11
11
# Integrate Azure Cosmos DB for MongoDB with Service Connector
@@ -38,6 +38,9 @@ The table below shows which combinations of client types and authentication meth
38
38
39
39
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.
40
40
41
+
> [!NOTE]
42
+
> Cosmos DB does not natively support authentication via managed identity. Therefore, Service Connector uses the managed identity to retrieve the connection string, and the connection is subsequently established using that connection string.
43
+
41
44
## Default environment variable names or application properties and sample code
42
45
43
46
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,8 @@ Use the connection details below to connect compute services to Azure Cosmos DB.
53
56
#### Sample code
54
57
55
58
Refer to the steps and code below to connect to Azure Cosmos DB for MongoDB using a system-assigned managed identity.
59
+
60
+
Since Cosmos DB doesn't natively support authentication via managed identity, in the following code sample, we use the managed identity to retrieve the connection string, and the connection is then established using that connection string.
56
61
[!INCLUDE [code sample for mongo](./includes/code-cosmosmongo-me-id.md)]
57
62
58
63
### User-assigned managed identity
@@ -67,14 +72,16 @@ Refer to the steps and code below to connect to Azure Cosmos DB for MongoDB usin
67
72
#### Sample code
68
73
69
74
Refer to the steps and code below to connect to Azure Cosmos DB for MongoDB using a user-assigned managed identity.
75
+
76
+
Since Cosmos DB doesn't natively support authentication via managed identity, in the following code sample, we use the managed identity to retrieve the connection string, and the connection is then established using that connection string.
70
77
[!INCLUDE [code sample for mongo](./includes/code-cosmosmongo-me-id.md)]
71
78
72
79
### Connection string
73
80
74
81
> [!WARNING]
75
82
> Microsoft recommends that you use the most secure authentication flow available. The authentication flow described in this procedure requires a very high degree of trust in the application, and carries risks that are not present in other flows. You should only use this flow when other more secure flows, such as managed identities, aren't viable.
76
83
77
-
#### SpringBoot client type
84
+
#### Spring Boot client type
78
85
79
86
| Default environment variable name | Description | Example value |
Copy file name to clipboardExpand all lines: articles/service-connector/how-to-integrate-cosmos-gremlin.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: maud-lv
5
5
ms.author: malev
6
6
ms.service: service-connector
7
7
ms.topic: how-to
8
-
ms.date: 02/02/2024
8
+
ms.date: 03/14/2025
9
9
---
10
10
11
11
# Integrate the Azure Cosmos DB for Gremlin with Service Connector
@@ -38,6 +38,9 @@ The table below shows which combinations of client types and authentication meth
38
38
39
39
This table indicates that all combinations of client types and authentication methods in the table are supported. All client types can use any of the authentication methods to connect to Azure Cosmos DB for Apache Gremlin using Service Connector.
40
40
41
+
> [!NOTE]
42
+
> Cosmos DB does not natively support authentication via managed identity. Therefore, Service Connector uses the managed identity to retrieve the connection string, and the connection is subsequently established using that connection string.
43
+
41
44
## Default environment variable names or application properties and sample code
42
45
43
46
Use the connection details below to connect your compute services to Azure Cosmos DB for Apache Gremlin. For each example below, replace the placeholder texts `<Azure-Cosmos-DB-account>`, `<database>`, `<collection or graphs>`, `<username>`, `<password>`, `<resource-group-name>`, `<subscription-ID>`, `<client-ID>`,`<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.
@@ -57,6 +60,9 @@ Use the connection details below to connect your compute services to Azure Cosmo
57
60
#### Sample code
58
61
59
62
Refer to the steps and code below to connect to Azure Cosmos DB for Gremlin using a system-assigned managed identity.
63
+
64
+
Since Cosmos DB doesn't natively support authentication via managed identity, in the following code sample, we use the managed identity to retrieve the connection string, and the connection is then established using that connection string.
65
+
60
66
[!INCLUDE [code sample for gremlin](./includes/code-cosmosgremlin-me-id.md)]
61
67
62
68
### User-assigned managed identity
@@ -70,9 +76,13 @@ Refer to the steps and code below to connect to Azure Cosmos DB for Gremlin usin
70
76
| AZURE_COSMOS_PORT | Connection port | 443 |
71
77
| AZURE_COSMOS_USERNAME | Your username |`/dbs/<database>/colls/<collection or graphs>`|
72
78
| AZURE_CLIENTID | Your client ID |`<client_ID>`|
79
+
73
80
#### Sample code
74
81
75
82
Refer to the steps and code below to connect to Azure Cosmos DB for Gremlin using a user-assigned managed identity.
83
+
84
+
Since Cosmos DB doesn't natively support authentication via managed identity, in the following code sample, we use the managed identity to retrieve the connection string, and the connection is then established using that connection string.
85
+
76
86
[!INCLUDE [code sample for gremlin](./includes/code-cosmosgremlin-me-id.md)]
Copy file name to clipboardExpand all lines: articles/service-connector/how-to-integrate-cosmos-sql.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: maud-lv
5
5
ms.author: malev
6
6
ms.service: service-connector
7
7
ms.topic: how-to
8
-
ms.date: 02/02/2024
8
+
ms.date: 03/14/2025
9
9
---
10
10
11
11
# Integrate the Azure Cosmos DB for NoSQL with Service Connector
@@ -38,13 +38,18 @@ The table below shows which combinations of client types and authentication meth
38
38
39
39
This table indicates that all combinations of client types and authentication methods in the table are supported. All client types can use any of the authentication methods to connect to Azure Cosmos DB for NoSQL using Service Connector.
40
40
41
-
## Default environment variable names or application properties and Sample code
41
+
> [!NOTE]
42
+
> Cosmos DB does not natively support authentication via managed identity. Therefore, Service Connector uses the managed identity to retrieve the connection string, and the connection is subsequently established using that connection string.
43
+
44
+
## Default environment variable names or application properties and sample code
42
45
43
46
Use the connection details below to connect your compute services to the Azure Cosmos DB for NoSQL. For each example below, replace the placeholder texts `<database-server>`, `<database-name>`,`<account-key>`, `<resource-group-name>`, `<subscription-ID>`, `<client-ID>`, `<SQL-server>`, `<client-secret>`, `<tenant-id>`, and `<access-key>` with your own information. For more information about naming conventions, check the [Service Connector internals](concept-service-connector-internals.md#configuration-naming-convention) article.
44
47
45
48
### System-assigned managed identity
46
49
47
-
#### SpringBoot client type
50
+
Since Cosmos DB doesn't natively support authentication via managed identity, in the following code sample, we use the managed identity to retrieve the connection string, and the connection is then established using that connection string.
51
+
52
+
#### Spring Boot client type
48
53
49
54
Using a system-assigned managed identity as the authentication type is only available for Spring Cloud Azure version 4.0 or higher.
50
55
@@ -69,6 +74,8 @@ Refer to the steps and code below to connect to Azure Cosmos DB for NoSQL using
69
74
70
75
### User-assigned managed identity
71
76
77
+
Since Cosmos DB doesn't natively support authentication via managed identity, in the following code sample, we use the managed identity to retrieve the connection string, and the connection is then established using that connection string.
78
+
72
79
#### SpringBoot client type
73
80
74
81
Using a user-assigned managed identity as the authentication type is only available for Spring Cloud Azure version 4.0 or higher.
Copy file name to clipboardExpand all lines: articles/service-connector/how-to-integrate-cosmos-table.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: maud-lv
5
5
ms.author: malev
6
6
ms.service: service-connector
7
7
ms.topic: how-to
8
-
ms.date: 02/02/2024
8
+
ms.date: 03/14/2025
9
9
---
10
10
11
11
# Integrate the Azure Cosmos DB for Table with Service Connector
@@ -37,6 +37,9 @@ The table below shows which combinations of client types and authentication meth
37
37
38
38
This table indicates that all combinations of client types and authentication methods in the table are supported. All client types can use any of the authentication methods to connect to Azure Cosmos DB for Table using Service Connector.
39
39
40
+
> [!NOTE]
41
+
> Cosmos DB does not natively support authentication via managed identity. Therefore, Service Connector uses the managed identity to retrieve the connection string, and the connection is subsequently established using that connection string.
42
+
40
43
## Default environment variable names or application properties and sample code
41
44
42
45
Use the connection details below to connect your compute services to Azure Cosmos DB for Table. For each example below, replace the placeholder texts `<account-name>`, `<table-name>`, `<account-key>`, `<resource-group-name>`, `<subscription-ID>`, `<client-ID>`, `<client-secret>`, `<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.
@@ -66,6 +69,9 @@ Refer to the steps and code below to connect to Azure Cosmos DB for Table using
66
69
#### Sample code
67
70
68
71
Refer to the steps and code below to connect to Azure Cosmos DB for Table using a user-assigned managed identity.
72
+
73
+
Since Cosmos DB doesn't natively support authentication via managed identity, in the following code sample, we use the managed identity to retrieve the connection string, and the connection is then established using that connection string.
74
+
69
75
[!INCLUDE [code sample for cosmos table](./includes/code-cosmostable-me-id.md)]
70
76
71
77
#### Connection string
@@ -80,6 +86,9 @@ Refer to the steps and code below to connect to Azure Cosmos DB for Table using
80
86
#### Sample code
81
87
82
88
Refer to the steps and code below to connect to Azure Cosmos DB for Table using a connection string.
89
+
90
+
Since Cosmos DB doesn't natively support authentication via managed identity, in the following code sample, we use the managed identity to retrieve the connection string, and the connection is then established using that connection string.
91
+
83
92
[!INCLUDE [code sample for cosmos table](./includes/code-cosmostable-secret.md)]
0 commit comments