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
@@ -55,29 +59,27 @@ Supported authentication and clients for App Service, Container Apps and Azure S
55
59
Use the connection details below to connect compute services to Azure App Configuration stores instances. For each example below, replace the placeholder texts
56
60
`<App-Configuration-name>`, `<ID>`, `<secret>`, `<client-ID>`, `<client-secret>`, and `<tenant-ID>` with your App Configuration store name, ID, secret, client ID, client secret and tenant ID.
57
61
58
-
### .NET, Java, Node.JS, Python
59
-
60
-
#### Secret / connection string
62
+
### Secret / connection string
61
63
62
64
> [!div class="mx-tdBreakAll"]
63
65
> | Default environment variable name | Description | Sample value |
| Java - Spring Boot |||||
58
-
59
-
---
60
-
61
35
## Default environment variable names or application properties
62
36
63
37
Use the connection details below to connect compute services to Kafka. For each example below, replace the placeholder texts `<server-name>`, `<Bootstrap-server-key>`, `<Bootstrap-server-secret>`, `<schema-registry-key>`, and `<schema-registry-secret>` with your server name, Bootstrap server key, Bootstrap server secret, schema registry key, and schema registry secret.
64
38
65
-
### .NET, Java, Node.JS and Python
39
+
### Azure App Service and Azure Container Apps
66
40
67
41
| Default environment variable name | Description | Example value |
Copy file name to clipboardExpand all lines: articles/service-connector/how-to-integrate-cosmos-db.md
+21-9Lines changed: 21 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Integrate the Azure Cosmos DB Mongo API with Service Connector
3
-
description: Integrate the Azure Cosmos DB Mongo API into your application with Service Connector
2
+
title: Integrate the Azure Cosmos DB MongoDB API with Service Connector
3
+
description: Integrate the Azure Cosmos DB MongoDB API into your application with Service Connector
4
4
author: maud-lv
5
5
ms.author: malev
6
6
ms.service: service-connector
@@ -9,9 +9,9 @@ ms.date: 08/11/2022
9
9
ms.custom: event-tier1-build-2022
10
10
---
11
11
12
-
# Integrate the Azure Cosmos DB Mondo API with Service Connector
12
+
# Integrate the Azure Cosmos DB API for MongoDB with Service Connector
13
13
14
-
This page shows the supported authentication types and client types for the Azure Cosmos DB Mongo API using Service Connector. You might still be able to connect to Azure Cosmos DB in other programming languages without using Service Connector. This page also shows default environment variable names and values (or Spring Boot configuration) you get when you create the service connection. You can learn more about [Service Connector environment variable naming convention](concept-service-connector-internals.md).
14
+
This page shows the supported authentication types and client types for the Azure Cosmos DB Mongo API using Service Connector. You might still be able to connect to the Azure Cosmos DB API for MongoDB in other programming languages without using Service Connector. This page also shows default environment variable names and values (or Spring Boot configuration) you get when you create the service connection. You can learn more about [Service Connector environment variable naming convention](concept-service-connector-internals.md).
15
15
16
16
## Supported compute services
17
17
@@ -47,30 +47,35 @@ Supported authentication and clients for App Service, Container Apps and Azure S
47
47
48
48
| Client type | System-assigned managed identity | User-assigned managed identity | Secret / connection string | Service principal |
| Go |||||
52
55
53
56
---
54
57
55
58
## Default environment variable names or application properties
56
59
57
60
Use the connection details below to connect compute services to Cosmos DB. For each example below, replace the placeholder texts `<mongo-db-admin-user>`, `<password>`, `<mongo-db-server>`, `<subscription-ID>`, `<resource-group-name>`, `<database-server>`, `<client-secret>`, and `<tenant-id>` with your Mongo DB Admin username, password, Mongo DB server, subscription ID, resource group name, database server, client secret and tenant ID.
58
61
59
-
### Secret / Connection string
62
+
### Azure App Service and Azure Container Apps
63
+
64
+
#### Secret / Connection string
60
65
61
66
| Default environment variable name | Description | Example value |
| AZURE_COSMOS_CONNECTIONSTRING |Mongo DB in Cosmos DB connection string |`mongodb://<mongo-db-admin-user>:<password>@<mongo-db-server>.mongo.cosmos.azure.com:10255/?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000&appName=@<mongo-db-server>@`|
68
+
| AZURE_COSMOS_CONNECTIONSTRING |Cosmos DB MongoDB API connection string |`mongodb://<mongo-db-admin-user>:<password>@<mongo-db-server>.mongo.cosmos.azure.com:10255/?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000&appName=@<mongo-db-server>@`|
64
69
65
-
### System-assigned managed identity
70
+
####System-assigned managed identity
66
71
67
72
| Default environment variable name | Description | Example value |
| AZURE_COSMOS_LISTCONNECTIONSTRINGURL | The URL to get the connection string |`https://management.azure.com/subscriptions/<subscription-ID>/resourceGroups/<resource-group-name>/providers/Microsoft.DocumentDB/databaseAccounts/<database-server>/listConnectionStrings?api-version=2021-04-15`|
70
75
| AZURE_COSMOS_SCOPE | Your managed identity scope |`https://management.azure.com/.default`|
71
76
| AZURE_COSMOS_RESOURCEENDPOINT | Your resource endpoint |`https://<database-server>.documents.azure.com:443/`|
72
77
73
-
### User-assigned managed identity
78
+
####User-assigned managed identity
74
79
75
80
| Default environment variable name | Description | Example value |
| spring.data.mongodb.database | Your database |`<database-name>`|
105
+
| spring.data.mongodb.uri | Your database URI |`mongodb://<mongo-db-admin-user>:<password>@<mongo-db-server>.mongo.cosmos.azure.com:10255/?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000&appName=@<mongo-db-server>@`|
106
+
95
107
## Next steps
96
108
97
109
Follow the tutorials listed below to learn more about Service Connector.
0 commit comments