Back to Blog

Connecting Azure SQL Managed Instance to Microsoft Fabric Data Factory - A Practical Guide

December 3, 2026•7 min read•Michael Ridland

A lot of Australian organisations ended up on Azure SQL Managed Instance for the same reason. They had a big on-premises SQL Server estate, they wanted out of the data centre, and Managed Instance was the option that let them lift and shift without rewriting SQL Agent jobs, cross-database queries and CLR assemblies. Insurance, healthcare, local government, a fair chunk of the logistics sector. Plenty of them are still running core line-of-business systems on it.

Now those same organisations are moving their analytics into Microsoft Fabric, and the first practical question is always: how do we get data out of Managed Instance and into OneLake reliably?

The answer is the Azure SQL Managed Instance connector in Fabric Data Factory. Microsoft's connector overview lists what it supports. This post covers what that means in practice, and the bits that tend to trip people up.

What the connector supports

The connector is available in the two main Fabric Data Factory experiences:

  • Dataflow Gen2 - the Power Query based, low-code option. Good for analysts and for moderate data volumes where you want transformation logic in the same place as the load.
  • Data pipelines - the orchestration side, with the Copy activity for moving data in bulk, plus Lookup and Script activities for reading control values or running SQL against the instance.

Authentication options cover the usual suspects: SQL authentication (username and password), organisational account (Microsoft Entra ID), and service principal, with workspace identity also worth looking at where your setup supports it. Check the current docs for the exact matrix per experience, because Microsoft has been adding options steadily and the lists for Dataflow Gen2 and pipelines haven't always matched.

On the copy side you get the features you'd expect from the Azure Data Factory heritage: copying full tables or the results of a query, parallel reads through partition options, and writing back to Managed Instance as a destination with insert or upsert behaviour. If your team has used ADF against Managed Instance before, very little here will be unfamiliar.

Networking is where the real work is

The connector itself is the easy part. Getting Fabric to actually reach your Managed Instance is where most of the project time goes.

Managed Instance lives inside a virtual network. By default it has no public access. That's good for security and a headache for a cloud service like Fabric, which runs outside your VNet. You've got three realistic options.

Option 1 - Public endpoint

Managed Instance can expose a public endpoint on port 3342 (not the usual 1433). Turn it on, lock down the network security group to allow only the traffic you need, and Fabric can connect directly.

This is the fastest way to a working connection. It's also the one your security team is least likely to approve, and for many regulated organisations it's a non-starter. If you go this route, use Entra ID authentication rather than SQL logins, and be strict with the NSG rules.

Option 2 - On-premises data gateway

Install the on-premises data gateway on a VM inside (or peered with) the Managed Instance VNet. Fabric talks to the gateway, the gateway talks to Managed Instance over the private network.

This works well and it's what most of our clients end up with. The catch is that you now own a VM. It needs patching, monitoring, sizing and ideally a second node for high availability. We've seen gateway VMs undersized at two cores that became the bottleneck for every nightly load. Give it more headroom than you think you need, and put it in a cluster.

Option 3 - Virtual network data gateway

The VNet data gateway is the managed option. Microsoft runs it, injected into a subnet you delegate. No VM to look after.

When it fits, it's the nicest option. But check support carefully before you plan around it. VNet data gateway support has historically been stronger for Dataflow Gen2 and semantic models than for pipelines, it needs Fabric capacity, and there are regional and licensing considerations. I've had a project plan reshuffled late because an assumption about pipeline support didn't hold at the time. Test it early with a real query before committing.

Private endpoints and managed private endpoints

Fabric also supports managed private endpoints for some workloads, which is the direction Microsoft is heading for private connectivity. Support has been expanding but it's been uneven across item types. If your security architecture depends on private endpoints everywhere, map out exactly which Fabric items need to reach Managed Instance and confirm each one.

Patterns that work well

Incremental loads with a watermark

Most line-of-business tables on Managed Instance are big and mostly unchanging. Copying them in full every night wastes time and capacity units. The standard pattern is:

  1. A Lookup activity reads the last loaded watermark (a modified date or rowversion column) from a control table.
  2. The Copy activity pulls only rows changed since then, using a query.
  3. A Script or Stored procedure activity updates the watermark.

Rowversion is my preference where it exists, because modified-date columns maintained by application code are often unreliable. We've found tables where the "LastModified" column was only updated by one of the three apps that wrote to them.

Change data capture

Managed Instance supports CDC, and for higher-volume or near-real-time needs it's a better fit than watermarks. It picks up deletes too, which watermarks miss. It adds some overhead on the source and needs someone who understands the cleanup jobs, so don't turn it on casually on a busy OLTP system without talking to the DBA.

Also worth looking at is Fabric mirroring. Mirroring for Azure SQL Managed Instance replicates data into OneLake in near real time without you building pipelines at all. For a lot of reporting use cases, it's the simpler answer, and I'd evaluate it before building a large set of copy pipelines. Pipelines still make sense when you need transformation during load, selective queries, or you're writing back to Managed Instance.

Land raw, then transform

Copy into a lakehouse as close to the source shape as possible, then do the transformation in notebooks or warehouse SQL. Doing heavy transformation inside the Copy activity or a dataflow pulling from Managed Instance puts load on the source and makes problems harder to debug. Keep the extraction simple.

Things to watch out for

Source load. Your Managed Instance is probably running a production application. A badly partitioned parallel copy at 9am can make the app slow for users. Schedule big loads off-hours, and use a readable secondary if you're on the Business Critical tier, since it gives you a read-only replica to pull from.

Data types. Most types map cleanly. Watch for datetimeoffset, sql_variant, very large varchar(max) columns and spatial types. Test with real data, not a sample of five rows.

Time zones. A classic Australian gotcha. Lots of older systems store local time without an offset, and lots of those systems sit in Sydney, Brisbane and Perth at the same time. Get this sorted at the extract stage, before it ends up in a report where Queensland numbers look an hour off for half the year.

Credential sprawl. It's very easy for every developer to create their own connection with their own credentials. Six months later nobody knows which pipelines break when someone leaves. Use a service principal or workspace identity for production connections and manage connections centrally.

Gateway as a single point of failure. If you go the on-premises gateway route, the gateway is now on the critical path for all your analytics. Monitor it like production infrastructure, because it is.

My take

The connector is solid. It's the same mature engine ADF users have relied on for years, and for straightforward extraction it just works. The difficulty isn't the connector, it's the networking and the operational decisions around it: gateway or no gateway, pipelines or mirroring, watermark or CDC.

My general advice for a team starting today:

  1. Look at mirroring first for reporting-only use cases.
  2. Use pipelines with the Copy activity where you need control, transformation or write-back.
  3. Pick your connectivity approach with your security team in week one, not week six.
  4. Use service principals or workspace identity for anything that runs on a schedule.

If you're planning a move from Managed Instance into Fabric and want help working through those decisions, our Microsoft Data Factory consultants and Microsoft Fabric consultants do this work regularly. And if your end goal is putting AI on top of that data, the Azure AI consulting side of the team can help plan that too.

Reference - Azure SQL Managed Instance connector overview (Microsoft Learn)