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/cosmos-db/mongodb/vcore/how-to-connect-mongoshell.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,31 +35,31 @@ If you accidentally open all the ports you will be warned before saving the chan
35
35
To add your Azure Cosmos DB cluster to Mongo shell, perform the following steps:
36
36
1. Retrieve the connection information for your Azure Cosmos DB for MongoDB vCore using the instructions [here](quickstart-portal.md#get-cluster-credentials).
37
37
38
-

38
+

39
39
Once you have the connection string you can either
40
40
- Have the shell prompt you to enter the password or
41
41
- Provide the password as a part of the connection string
42
42
43
43
2. Connect using Mongo Shell
44
44
45
-
#### A. By entering the password in the MongoShell Prompt
45
+
**A. By entering the password in the MongoShell Prompt**
46
46
47
-

47
+


58
58
59
59
Once you provide the password and are successfully authenticated you will notice some warning stating *"This server or service appears to be an emulation of MongoDB"*
60
60
This can be ignored. Its just shell way of notifying that you are not connection to an emulation of MongoDB. Since it is an Azure as a platform as a service offering this is expected.
61
61
62
-
#### B. By providing the password as a part of the connection string
62
+
**B. By providing the password as a part of the connection string**
63
63
64
64
Alternately you can also use a connection string with the password in which case the format looks something like this
65
65
```
@@ -70,7 +70,7 @@ Here is an example of how the command looks like :
0 commit comments