Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

How can I connect to existing Azure CosmosDB #4

@HoLue

Description

@HoLue

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Question

From Azure CosmosDB I have the connection string. I don't know what I have to write as values for the different arguments in these lines

client = MongoClient("mongodb://127.0.0.1:10250/?ssl=true") #host uri
db = client.test    #Select the database
db.authenticate(name="localhost",password='C2y6yDjf5' + r'/R' + '+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw' + r'/Jw==')

For example, I have the connecteion string 'abc...'. Where must I write it? What shall I use for/as

  • argument for MongoClient?
  • name in db.authenticate?
  • password in db.authenticate?

Please help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions