An Azure NoSQL database service for app development.
Thank you for reaching out.
My understanding is that you are facing an issue while connecting your Azure cosmos db Mongo db Python SDK.
The sample you linked is only for Azure Cosmos DB for NoSQL accounts and isn’t compatible with the API for MongoDB. All of the SDKs developed and owned by our team are only for the NoSQL API, and you can use the native SDKs themselves to connect to the OSS APIs (MongoDB, Cassandra etc).
There’s a tutorial on how to connect to an Azure Cosmos DB for MongoDB account using python here: Get started with Azure Cosmos DB for MongoDB and Python | Microsoft Learn
Regards,
Oury