Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered
Hi All:
I've started work on a project where the data is in a Cosmos Mongo DB ( RU) account.
I've managed to get connectivity working in synapse but I'd very much like to use Fabric Data pipelines & flows.
I cannot see a native source connection for Cosmos Mongo DB in Fabric and wondeting if there's any work around.
Thanks in advance.
Solved! Go to Solution.
I've just done this however, I had to put it under Synapse as FAbric is not an option.
@Anonymous Thanks but that dosen't answer my question.
The fabric Cosmos connector is for the No-SQL version of Cosmos, not the Mongo version and the native mongo connectors will not connect to a Cosmos Mongo Analytics Store.
I have managed to hack this but properly supported connection (in the same manner as Synapse) would be more benificial.
Here the start of my M query
Blank Query
let
Source = DocumentDB.Contents("https://<cosmosMongoAccountName>.documents.azure.com:443/", "<cosmosMongo DB Name>", "<collection name>"),
#"Expanded Document" = Table.ExpandRecordColumn(Source, "Document",<list out the fileds here>
I am having the same issue where I was able to use the MongoDB API in Data Factory and Synapse but it was not available in Fabric. Could you please post the instructions on what your hack was, or possibly make a video on it? It would be a great help
Hi .
Its already in the above post.
New DataFlow Gen2
Blank Query
Start with this...
let
Source = DocumentDB.Contents("https://<cosmosMongoAccountName>.documents.azure.com:443/", "<cosmosMongo DB Name>", "<collection name>"),
#"Expanded Document" = Table.ExpandRecordColumn(Source, "Document",<list out the fileds here>
how do you use that, I'm getting the error: The data source kind doesn't support the credential type. Data source kind: DocumentDB. Credential type: UsernamePassword.
Thanks @NickA01 . Yesterday, I was playing around with this a bit and it turns out you can use the MongoDB default connector as well in Fabric, in place of the Azure CosmosDB for MongoDB connector that I have been using in Synapse and Data Factory, like you have
could you please suggest how you did this? Did you use https://<cosmosMongoAccountName>.documents.azure.com:443/ or https://<cosmosMongoAccountName>.mongo.cosmos.azure.com:443/ as a server name?
{"server":"<cosmosMongoAccountName>.mongo.cosmos.azure.com:<PortNumber>"}
The <PortNumber> will be in the Connection Strings tab of your CosmosDB workspace on Azure.
Mine was 10255, as you can see below.
works. thank you very much
Hi @NickA01
Currently Mongo DB connectors are not yet available in Fabric.
Appreciate if you could share the feedback on our feedback channel, which would be open for the user community to upvote & comment on. This allows our product teams to effectively prioritize your request against our existing feature backlog and gives insight into the potential impact of implementing the suggested feature.
Feedback Link: https://ideas.fabric.microsoft.com/
I hope this information is helpful. Please let me know if you have any other questions.
Hi @NickA01
We haven’t heard from you on the last response and was just checking back to see if you got a chance to create the idea. Otherwise, will respond back with the more details and we will try to help.
Thanks
I've just done this however, I had to put it under Synapse as FAbric is not an option.
Hi @NickA01
Thanks for using Fabric Community.
Microsoft Fabric supports Azure Cosmos DB for NoSQL connections. You can set up your connection in a data pipeline. However, this might not be directly applicable if you’re specifically using the MongoDB API.
For more information please refer to these links:
https://learn.microsoft.com/en-us/fabric/data-factory/connector-mongodb-overview
Set up your Azure Cosmos DB for NoSQL connection - Microsoft Fabric | Microsoft Learn
Configure Azure Cosmos DB for NoSQL in a copy activity - Microsoft Fabric | Microsoft Learn
Hope this helps. Please let me know if you have any further queries.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.