Hi Flavio Duarte,
Greetings!!
Azure Cosmos DB for MongoDB vCore using a User Assigned Managed Identity in Python
- Use Cosmos DB for MongoDB vCore, not RU-based.
- Enable Microsoft Entra ID authentication on the cluster.
- Assign dbOwner role to the Managed Identity in Entra ID.
- UseDefaultAzureCredential() in your Python app.
- Implement OIDC callback .
For more information, please refer the documents:
Build a Python console app with Azure Cosmos DB for MongoDB vCore
Microsoft Entra ID authentication with Azure Cosmos DB for MongoDB vCore.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.