Can Azure Databricks Go Fully Serverless? Solving Private Network Connectivity

Portrait of a smiling Telefónica Tech employee against a blue gradient background. The individual is wearing a dark quarter-zip top featuring the Telefónica Tech logo. The composition places the subject on the right-hand side with open space on the left, making it suitable for speaker profiles, event pages, leadership bios, or promotional content.
Head of DevOps & Automation
4 December 2026
     

At the time of writing, the Private Network Gateway for Azure Databricks is still in Public Preview, but after plenty of hands-on testing, I’m impressed. It looks set to remove the need for workarounds like Data Factory or Classic Compute just to connect Databricks to private networks. In this article I’ll cover what it is, how it works, how to set it up, and when it’s worth using. 

Why is private connectivity a challenge for Azure Databricks serverless?

Whenever we wanted to ingest data from on-premises systems, or from networked resources like SQL Server running on a VM, we had to rely on dedicated compute. That meant either a self-hosted integration runtime or Classic Compute in Azure Databricks. If you needed to bring in data from one of these sources, you could never be “fully serverless”. 

There were workarounds, such as fronting the Azure VMs with a Load Balancer and using Private Link Service to connect serverless compute to them. In practice, though, 9 times out of 10 this wasn’t workable. The clients I’ve worked with only want you to ingest data from their systems. They don’t want you making changes to those systems to suit your platform’s needs. 

How did Azure Databricks connect to private networks before?

The diagram below shows a standard Enterprise Scale style environment, which is where a Databricks deployment would typically land. 

On the left we have the Hub VNet, which holds the shared platform resources. That includes our hybrid connectivity through an ExpressRoute gateway, the firewall, Azure Bastion and a DNS resolver.

To the right of that is the spoke network, peered to the hub so it can use the connectivity and services the platform already provides. This is where Databricks and its supporting services live.

Within the spoke we also have Data Factory, along with a virtual machine acting as the Self-Hosted Integration Runtime. This VM connects to the on-premises source, which in this case is SQL Server, and ingests the data into the Data Lake storage account.

From there, Databricks picks it up and carries on processing it through the different layers of the medallion architecture.

The next diagram below represents the network flows and shows the paths the traffic has to take in order to achieve the outcome of ingesting the Data into the Azure Storage Account.

This approach was tried and tested, and it worked. The catch is that putting a virtual machine in the middle of the data platform adds overhead. You have to think about patching, security hardening, updates and all the usual things that come with looking after a VM.

How does Azure Databricks Private Network Gateway solve the problem?

With the introduction of the Private Network Gateway, we no longer need to deploy IaaS into our environment just to reach on-premises sources. Instead, we can connect serverless compute to our virtual networks and let it use our private networks and existing connectivity, as if it were just another device on the network. 

As the diagram above shows, we can now remove Data Factory from the picture completely.

From a network flow perspective, the diagram below shows a similar path to the one Data Factory would have taken to ingest data from the on-premises SQL Server.

 

How do I set up and configure the Private Network Gateway?

To set up the Private Network Gateway, you need to be an Account Admin, and you’ll also need to enable the feature first, as it’s currently in Public Preview. 

If you’re deploying it via Terraform through CI/CD, the identity carrying out the deployment needs Account Admin permissions instead.

If you’ve worked with Managed Private Endpoints in Azure Databricks before, you’ll be familiar with the Network Connectivity Configuration (NCC). You’ll need one of these to create your Private Network Gateway.

As shown in the screenshot above, once you’re in the Account Admin portal, go to Security, then Network connectivity configuration. Either create a new NCC or use an existing one that’s associated with the workspace you want to ingest data from using serverless.

If you’re click-opsing the configuration (which I don’t recommend), the portal clearly lays out the prerequisites you need in place to enable the Private Network Gateway:

1. An unused subnet of at least /28 in size.

2. The subnet delegated to Databricks, as you would for VNet injection with classic compute.

3. The DNS server specified, which in the scenario above is the inbound endpoint of my Private DNS Resolver. If you don’t specify a DNS Server it will use Azure Provided DNS.

Once you hit continue, you will be presented with the following properties to complete.

1. Name: give the gateway a name.

2. Subnet resource ID: the subnet you want to connect serverless compute to. It’s important to note that this can’t be changed once it’s set.

3. DNS server IP address: the private IP address of your DNS resolver. As mentioned earlier, this is the inbound endpoint of the Private DNS Resolver.

4. Bandwidth: align this with the throughput limit of the provisioned gateway SKU. The slowest link on the path sets the real ceiling, so oversizing wastes spend and undersizing creates an avoidable bottleneck.

5. Traffic mode: this one is important. You can route all of your serverless traffic through the gateway, which means all outbound traffic is subject to your NVA and any security rules you have in place. Or you can specify only the destinations you want routed through the gateway. For example, you might route just the private FQDNs that serverless needs to reach.

And that’s it. That’s everything you need to set up.

I’ve tested this myself by connecting serverless compute to a virtual machine running SQL Server, and I was able to ingest data using Lakeflow Connect. See below a test script run from a Databricks notebook as evidence Serverless can resolve and connect to my sql server hosted on a virtual machine.

Gotchas

One important thing to note is that, in my experience, connecting by IP address doesn’t work. Everything has to be resolvable by name, so I had to configure a private DNS zone to resolve my SQL Server. Once that was in place, the connection worked.

How do I deploy Azure Databricks Private Network Gateway with Terraform?

As I mentioned, I don’t recommend click-opsing the configuration. That said, I know it’s helpful when you’re getting to grips with something new, because it shows you which properties need to be configured.

Below is my Terraform module for deploying the gateway. As you can see, it takes the same properties as the UI.

See below also the code calling the module:

How much does Azure Databricks Private Network Gateway cost?

Costing isn’t very clear in the official documentation. The Azure Databricks page on serverless networking costs lists private connectivity, public connectivity and data transfer charges, but doesn’t mention the Private Network Gateway, and the launch announcement doesn’t cover pricing either.

What I do know is that Databricks starts charging for the Private Network Gateway from 1st December, so it is no longer free to use during the preview. I’d check the billable usage system table and Azure Cost Management to see what it costs in your environment, and confirm with your Databricks account team before scaling it out.

So, can Azure Databricks now go fully serverless?

As I’ve described above, Databricks serverless can now connect into your private network to reach your on-premises resources, or your private resources within Azure.

One thing I should call out: if you’re using Databricks to connect to resources that have private endpoints, such as Storage Accounts, you should keep using Managed Private Endpoints for that scenario.

The official documentation also sets out the order in which traffic is prioritised, which I’ve summarised below.

 

Priority Path Applies to
1

 

Private endpoint rules (Private Link)

 

Traffic to a specific cloud-managed resource that has a private endpoint rule.

 

2

 

Service endpoints

 

Traffic that matches those endpoints, which stays on the Azure backbone and can’t be overridden by the gateway.

 

3

 

Private network gateway

 

The destinations you configure in SPECIFIC_DESTINATIONS mode, or all remaining egress in ALL_TRAFFIC mode.

 

4 Default Azure Databricks serverless egress All other outbound traffic.

 

I also think the Data Factory SHIR will still have a place for specific niche use cases, such as when certain drivers or software need to be installed on the compute to ingest from a particular source. For the most part, though, serverless can be used for ingestion going forward.

I hope you enjoyed this blog, and feel free to reach out to me for any questions / comments or thoughts.

 

Further reading

Telefónica Tech UK