Azure Data Explorer in Fabric Data Factory - When to Use the Kusto Connector
A lot of Australian organisations have Azure Data Explorer clusters they didn't really plan for. Someone in the platform team set one up three years ago to hold application telemetry or IoT readings, it worked well, and now it holds billions of rows that the business suddenly wants in their reporting. Mining companies with sensor data from haul trucks. Logistics firms with GPS pings. Software companies with product usage logs.
Then the organisation moves to Microsoft Fabric, and the question comes up: how do we get the Kusto data into Fabric, or do we even need to?
The Azure Data Explorer connector in Fabric Data Factory is one answer. Microsoft's Azure Data Explorer (Kusto) connector overview lists what it supports. I'll cover what it does, when we'd use it, and when we'd steer clients towards something else.
What the connector does
The connector lets Fabric Data Factory read from (and in some cases write to) an Azure Data Explorer cluster. It shows up in two places:
- Dataflow Gen2, where you can pull data from a Kusto database using Power Query, shape it, and land it in a lakehouse, warehouse or other destination.
- Data pipelines, mainly through the Copy activity (Kusto as a source, and as a destination) and the Lookup activity.
For authentication, organisational accounts are supported across the board, and pipelines also support service principal. Check the current docs for the exact matrix, because Microsoft has been adding options like workspace identity across Fabric connectors over the past year. For anything scheduled and running in production, we strongly prefer a service principal or workspace identity over someone's personal account. When that person leaves, your pipeline shouldn't leave with them.
You connect using the cluster URI, which looks like https://yourcluster.australiaeast.kusto.windows.net, then pick a database. From there you can either select a table or write a KQL query.
Use a query, not a table, most of the time
This is the first thing I tell people. If you point the connector at a raw Kusto table holding two years of telemetry and hit run, you're going to have a bad time.
Kusto is great at filtering and aggregating huge volumes quickly. It's less great at shipping all of those rows over the wire to somewhere else. So push the work into KQL. Filter by time range. Summarise to the grain you actually need. Project only the columns you use.
A typical example from a client project: a fleet operator had vehicle telemetry at one-second intervals. The reporting need was hourly averages per vehicle. Pulling the raw table would have meant moving around 2.5 billion rows a month. A KQL query with summarize avg(...) by bin(Timestamp, 1h), VehicleId brought that down to under a million. Same answer, a fraction of the time and capacity.
The query limits that catch people out
Azure Data Explorer has default query result limits to protect the cluster. By default, a query result is truncated at around 500,000 rows or 64 MB, whichever comes first. If your Copy activity or dataflow quietly returns exactly 500,000 rows, that's not a coincidence. You've hit the limit.
You have a few options:
- Aggregate harder so the result is smaller. Usually the right answer.
- Set
notruncationin the query's client request properties (set notruncation;at the top of the query). This lifts the limit but puts more load on the cluster and can still time out on very large results. - Partition the copy by time range, running multiple smaller queries rather than one giant one. Pipelines handle this nicely with a ForEach over date ranges.
- Use Kusto's own export to write to storage, then pick the files up from there. For one-off bulk moves of very large tables, this is often faster than going through the connector at all.
We've seen a team build a whole set of reports on a dataflow that was silently truncated for weeks. Nobody noticed because the numbers looked plausible. Check your row counts against the source when you first build anything on this connector.
When we'd use something other than the connector
Here's my honest opinion. The connector is useful, but in Fabric it's often not the first thing I'd reach for. Fabric has its own Kusto engine built in, which changes the picture.
Eventhouse and KQL databases. Fabric's Real-Time Intelligence workload includes Eventhouse, which is essentially Azure Data Explorer running inside Fabric. If you're starting fresh with streaming or telemetry data, land it in an Eventhouse rather than a standalone ADX cluster. Same KQL, same performance characteristics, and it's already in your Fabric capacity and governance. We covered the broader Real-Time Intelligence story in Fabric real-time analytics - what works.
Shortcuts and database shortcuts. If your data stays in an existing ADX cluster, you can create a database shortcut in a Fabric Eventhouse that points at it, and query it from Fabric without copying anything. For many reporting scenarios that's simpler than a pipeline. No copy, no schedule, no stale data.
OneLake availability. You can turn on OneLake availability for KQL databases in Fabric so tables are exposed as Delta in OneLake. Then lakehouses, notebooks and Direct Lake semantic models can read them. This is a nice way to share Kusto data with people who don't know or want to learn KQL.
Power BI direct to Kusto. For dashboards that need near real-time data, Power BI can query Kusto directly in DirectQuery mode. You don't need Data Factory in the middle at all.
So when does the Data Factory connector make sense? In our experience:
- You need to combine Kusto data with other sources in a lakehouse or warehouse, and you want a scheduled, governed copy.
- You need to reshape or aggregate the data heavily before it lands, and Power Query or a pipeline is the team's comfort zone.
- You're writing to Kusto from other sources, for example loading reference data into ADX so it can be joined with telemetry in KQL.
- You're running a migration from a standalone ADX cluster into Fabric and want a repeatable, logged process.
If none of those apply, look at shortcuts or OneLake availability first.
What's still rough
A few things I'd flag for anyone planning to rely on this.
Error messages from Kusto failures aren't always clear once they've passed through the pipeline layer. A KQL syntax error or a permissions problem on the cluster can surface as a generic failure. Test your query in the ADX web UI or a KQL queryset first, with the same identity the pipeline will use.
Permissions live in two places. The Fabric connection needs access to the Fabric items, and the identity needs at least viewer rights on the Kusto database (ingestor or admin rights if you're writing). We regularly see a working dataflow in development fail in production because the service principal was never added to the production cluster's database roles.
Data type mapping is mostly fine, with exceptions. Kusto's dynamic type (used for JSON-ish data) doesn't map neatly into tabular destinations. Flatten it in KQL using parse_json and explicit columns before it reaches the connector. Timespans can also need conversion depending on the destination.
Costs show up in two bills. The Data Factory work consumes Fabric capacity, and the queries consume compute on your ADX cluster. If the ADX cluster is small and already busy with live workloads, a big nightly copy can slow things down for whoever else uses it. Schedule heavy jobs for quiet hours and talk to the cluster owner.
A sensible way to approach it
If you've got existing ADX clusters and you're moving into Fabric, here's how I'd think about it:
- Work out what the Kusto data is actually used for. Live operational dashboards? Monthly reporting? Data science?
- For live dashboards, leave them querying Kusto directly, or move the data into an Eventhouse over time.
- For reporting that needs Kusto data joined with ERP or CRM data, use a shortcut or OneLake availability if you can, and the Data Factory connector if you need to reshape or aggregate along the way.
- For long-term strategy, decide whether the standalone ADX cluster still earns its keep, or whether Eventhouse in Fabric can take over.
Most of the clients we work with end up with a mix. That's fine. The mistake is picking the connector by default because it's in the Data Factory menu, when a shortcut would have done the job with no moving parts.
If you're working out how ADX, Eventhouse and the rest of your data estate should fit together in Fabric, our Microsoft Fabric consultants and Data Factory consultants can help design it. And if the end goal is getting AI to answer questions over that telemetry, have a look at what we do in AI for business intelligence.