We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff35156 + 846a5a2 commit db30614Copy full SHA for db30614
articles/cosmos-db/mongodb/how-to-setup-rbac.md
@@ -116,6 +116,11 @@ MongoClientURI uri = new MongoClientURI(connectionString);
116
MongoClient client = new MongoClient(uri);
117
```
118
119
+## Authenticate using Mongosh
120
+```powershell
121
+mongosh --authenticationDatabase <YOUR_DB> --authenticationMechanism SCRAM-SHA-256 "mongodb://<YOUR_USERNAME>:<YOUR_PASSWORD>@<YOUR_HOST>:10255/?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000"
122
+```
123
+
124
## Azure CLI RBAC Commands
125
The RBAC management commands will only work with newer versions of the Azure CLI installed. See the Quickstart above on how to get started.
126
0 commit comments