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
MongoDB Shell (Mongosh), is a JavaScript and Node.js REPL environment for interacting with MongoDB deployments. It's a popular community tool to test queries and interact with the data in your Azure Cosmos DB for MongoDB database.
19
+
MongoDB Shell (Mongosh), is a JavaScript and Node.js environment for interacting with MongoDB deployments. It's a popular community tool to test queries and interact with the data in your Azure Cosmos DB for MongoDB database.
20
20
21
21
## Prerequisites
22
-
22
+
Here are some pre-requisites
23
23
- An existing Azure Cosmos DB for MongoDB vCore cluster.
24
-
-Install the MongoShell from the community site.
25
-
-Ensure you are setting up the necessary environment variables post installation for your operating system
26
-
-Ensure you have set the firewall settings to allow the machine to connect. Follow the guidelines for [configuring the firewall for Azure CosmosDB](../../../cosmos-db/how-to-configure-firewall.md)
24
+
-An installed version of the MongoShell from the community site.
25
+
-Please ensure you're setting up the necessary environment variables post installation for your operating system
26
+
-Please ensure you have set the firewall settings to allow the machine to connect. Follow the guidelines for [configuring the firewall for Azure CosmosDB](../../../cosmos-db/how-to-configure-firewall.md)
27
27
- You can choose to allow requests from your current IP, requests from cloud services or requests from virtual machines - specific IP Ranges
28
28
29
29

30
30
31
-
If you accidentally open all the ports you will be warned before saving the changes.
31
+
If you accidentally open all the ports, you'll be warned before saving the changes.
32
32
33
33
## Connect using Mongo Shell (Mongosh)
34
34
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
-
Once you have the connection string you can either
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
@@ -50,23 +50,23 @@ Your connection string would look like this:

58
58
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
-
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.
59
+
Once you provide the password and are successfully authenticated, you'll notice some warning stating *"This server or service appears to be an emulation of MongoDB"*
60
+
The warning can be ignored. It's the shell's way of notifying that you aren't connection to an emulation of MongoDB. When it's an Azure as a platform as a service offering this is expected.
61
61
62
62
**B. By providing the password as a part of the connection string**
63
63
64
-
Alternately you can also use a connection string with the password in which case the format looks something like this
64
+
Alternately you can also use a connection string with the password in which case the format looks something like this.
0 commit comments