Skip to content

Commit 090a7ad

Browse files
authored
Merge pull request #108368 from timsander1/master
update connecting to mongodb api doc
2 parents 8bad730 + 4204297 commit 090a7ad

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

articles/cosmos-db/connect-mongodb-account.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,49 @@
11
---
22
title: Connect a MongoDB application to Azure Cosmos DB
33
description: Learn how to connect a MongoDB app to Azure Cosmos DB by getting the connection string from Azure portal
4-
author: markjbrown
5-
ms.author: mjbrown
4+
author: timsander1
5+
ms.author: tisande
66
ms.service: cosmos-db
77
ms.subservice: cosmosdb-mongo
88
ms.topic: conceptual
9-
ms.date: 12/02/2019
9+
ms.date: 03/19/2020
1010
ms.reviewer: sngun
11-
1211
---
13-
1412
# Connect a MongoDB application to Azure Cosmos DB
15-
Learn how to connect your MongoDB app to an Azure Cosmos DB by using a MongoDB connection string. You can then use an Azure Cosmos database as the data store for your MongoDB app.
13+
14+
Learn how to connect your MongoDB app to an Azure Cosmos DB by using a MongoDB connection string. You can then use an Azure Cosmos database as the data store for your MongoDB app.
1615

1716
This tutorial provides two ways to retrieve connection string information:
1817

19-
- [The quickstart method](#QuickstartConnection), for use with .NET, Node.js, MongoDB Shell, Java, and Python drivers
20-
- [The custom connection string method](#GetCustomConnection), for use with other drivers
18+
- [The quickstart method](#get-the-mongodb-connection-string-by-using-the-quick-start), for use with .NET, Node.js, MongoDB Shell, Java, and Python drivers
19+
- [The custom connection string method](#get-the-mongodb-connection-string-to-customize), for use with other drivers
2120

2221
## Prerequisites
2322

24-
- An Azure account. If you don't have an Azure account, create a [free Azure account](https://azure.microsoft.com/free/) now.
23+
- An Azure account. If you don't have an Azure account, create a [free Azure account](https://azure.microsoft.com/free/) now.
2524
- A Cosmos account. For instructions, see [Build a web app using Azure Cosmos DB's API for MongoDB and .NET SDK](create-mongodb-dotnet.md).
2625

27-
## <a id="QuickstartConnection"></a>Get the MongoDB connection string by using the quick start
26+
## Get the MongoDB connection string by using the quick start
27+
2828
1. In an Internet browser, sign in to the [Azure portal](https://portal.azure.com).
29-
2. In the **Azure Cosmos DB** blade, select the API.
30-
3. In the left pane of the account blade, click **Quick start**.
31-
4. Choose your platform (**.NET**, **Node.js**, **MongoDB Shell**, **Java**, **Python**). If you don't see your driver or tool listed, don't worry--we continuously document more connection code snippets. Please comment below on what you'd like to see. To learn how to craft your own connection, read [Get the account's connection string information](#GetCustomConnection).
29+
2. In the **Azure Cosmos DB** blade, select the API.
30+
3. In the left pane of the account blade, click **Quick start**.
31+
4. Choose your platform (**.NET**, **Node.js**, **MongoDB Shell**, **Java**, **Python**). If you don't see your driver or tool listed, don't worry--we continuously document more connection code snippets. Please comment below on what you'd like to see. To learn how to craft your own connection, read [Get the account's connection string information](#get-the-mongodb-connection-string-to-customize).
3232
5. Copy and paste the code snippet into your MongoDB app.
3333

3434
![Quick start blade](./media/connect-mongodb-account/QuickStartBlade.png)
3535

36-
## <a id="GetCustomConnection"></a> Get the MongoDB connection string to customize
36+
## Get the MongoDB connection string to customize
37+
3738
1. In an Internet browser, sign in to the [Azure portal](https://portal.azure.com).
38-
2. In the **Azure Cosmos DB** blade, select the API.
39-
3. In the left pane of the account blade, click **Connection String**.
39+
2. In the **Azure Cosmos DB** blade, select the API.
40+
3. In the left pane of the account blade, click **Connection String**.
4041
4. The **Connection String** blade opens. It has all the information necessary to connect to the account by using a driver for MongoDB, including a preconstructed connection string.
4142

42-
![Connection String blade](./media/connect-mongodb-account/ConnectionStringBlade.png)
43+
[ ![Connection String blade](./media/connect-mongodb-account/ConnectionStringBlade.png) ](./media/connect-mongodb-account/ConnectionStringBlade.png#lightbox)
4344

4445
## Connection string requirements
46+
4547
> [!Important]
4648
> Azure Cosmos DB has strict security requirements and standards. Azure Cosmos DB accounts require authentication and secure communication via *SSL*.
4749
>
-1.64 KB
Loading

0 commit comments

Comments
 (0)