Skip to content

Commit db30614

Browse files
Merge pull request #214446 from gahl-levy/patch-35
Update how-to-setup-rbac.md
2 parents ff35156 + 846a5a2 commit db30614

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

articles/cosmos-db/mongodb/how-to-setup-rbac.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ MongoClientURI uri = new MongoClientURI(connectionString);
116116
MongoClient client = new MongoClient(uri);
117117
```
118118

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+
119124
## Azure CLI RBAC Commands
120125
The RBAC management commands will only work with newer versions of the Azure CLI installed. See the Quickstart above on how to get started.
121126

0 commit comments

Comments
 (0)