With organizations rapidly moving analytics and AI workloads to Azure Databricks, the security conversation has shifted from perimeter-based to identity-driven and network-isolated architectures. Traditional public endpoint access is no longer acceptable for regulated industries. Customers today are asking: “How do I expose Databricks securely without exposing it to the internet while keeping the default configuration as Privately Accessible?”
The first idea that usually comes up is to configure an IP Access List while keeping Azure Databricks in hybrid connectivity. This is technically doable, but it is not the best fit for organizations that follow a Zero Trust Architecture framework.
This is where a design that follows Cloud Adoption Framework (CAF) principles and enforces Zero Trust becomes essential. Azure Application Gateway with Web Application Firewall (WAF), combined with Private Endpoints (Azure Private Link) and a Point-to-Site (P2S) VPN for external connectivity, delivers exactly that: private-only access with full inspection and control.
In this blog, I’ll walk through:
- Why Zero Trust is essential for Databricks
- Traffic Flow For Securing Databricks
- Architecture Components
- Key Considerations
- Conclusion
Why Zero Trust for Azure Databricks?
Azure Databricks is a SaaS-managed service—but in many enterprise environments, data sensitivity demands full network isolation.
Azure Private Link enables organizations to:
- Eliminate public internet exposure
- Ensure traffic remains within private networks
- Reduce risk of data exfiltration
Additionally, organizations prefer:
- Controlled access via corporate network (VPN/ExpressRoute)
- Full audit and inspection of inbound traffic
- Strong compliance alignment (RBI, SEBI, PCI-DSS, etc.)
This drives the need for private-only access models, where public access is completely disabled.
Traffic Flow For Securing Databricks –
Organizations following Zero Trust Architecture often have concerns about providing access securely. While most access happens over the intranet, there are scenarios where a subset of users, partners, or vendors sits outside the organization network, cannot be onboarded into it, and still needs access over the internet.
Securing that flow end to end is where a native design fails. Databricks completes sign-in with an OAuth redirect, and with front-end Private Link enabled that OAuth URL resolves to the workspace's Private Endpoint. An external user coming straight off the public internet through the WAF cannot resolve or route to that private URL, so authentication breaks even though the first page loads. The fix is to bring external users onto a Point-to-Site VPN first, inspect and validate them at the WAF (Anyone without allowed IP Range will be rejected), and only then route them privately to the endpoint. Private DNS must be set up as a prerequisite, so that P2S-connected clients can resolve the workspace FQDN and its OAuth return URL to the Private Endpoint. The chart below shows how traffic flows for Databricks in each scenario and how every hop is secured.
- External User Access (via Point-to-Site VPN)
- The external user first establishes a Point-to-Site VPN connection to the Azure VPN Gateway.
- With the tunnel established, the request is routed to the Application Gateway (WAF), where it is inspected and validated against the configured WAF policy and custom rules (for example, source-IP validation).
- Only once the request passes that validation does private DNS resolve the Databricks workspace FQDN and its OAuth return URL to the Private Endpoint, so traffic is routed privately and sign-in completes:
- If the source IP is allowed, traffic is routed to the Databricks Private Endpoint and on to the Databricks Workspace.
- If the source IP is unknown, the request is rejected at the WAF.
- Direct Access via P2S Ip Range should be blocked at Firewall Level to Databricks Endpoint.
- Only requests that clear every check ever reach the workspace.
This ensures all external traffic is authenticated over the VPN, inspected and validated by the WAF, and only then routed privately to Databricks.
- Internal User Access (Green Flow)
- Internal users are already part of the corporate network and connected to Azure Network in one form or another.
- Traffic enters Hub VNet
- Routed directly to:
- The Databricks Private Endpoint in the Spoke VNet — reached directly, with no WAF or Point-to-Site VPN needed, since the user is already inside the network.
Ensures private, low-latency, secure access without internet exposure
Architecture Components –
In this section of the blog, I’ll go through the architecture and the components that are required for design considerations.
As we are focused on Zero Trust Architecture, we use a secured Hub & Spoke networking model. The Hub VNet hosts the shared connectivity and security services (the VPN Gateway in the GatewaySubnet and the Application Gateway with WAF in the ApplicationGatewaySubnet), while the Spoke VNet hosts the Databricks workspace and its Private Endpoint. The two are joined by VNet peering, and NSGs plus firewall controls segment traffic throughout.
Key Services & Considerations –
- Application Gateway with WAF
- WAF with Custom Rules
- Point-to-Site VPN & Secured Network Connectivity
- NSGs & Firewall Controls for Granular Access
- Databricks Workspace – Public Access Disabled & Private Endpoint Enabled
- Application Gateway with WAF
Acts as the single entry point to Databricks, deployed in the Hub VNet (ApplicationGatewaySubnet). It provides SSL termination, routing, and traffic inspection, so all access is centralized and backend services are never exposed directly.
- WAF with Custom Rules
Protects against OWASP Top 10 threats and runs in Prevention mode. Custom rules restrict access based on IP, geo-location, or request patterns. In this design, IP validation lets approved networks reach the private endpoint and rejects everything else.
- Point-to-Site VPN & Secured Network Connectivity
- External users → connect through the Point-to-Site VPN to the VPN Gateway, then reach the WAF for inspection (external, inspected traffic). Direct access to Databricks without WAF is blocked at Hub Firewall.
- Internal users → route directly to the Databricks Private Endpoint over VPN/ExpressRoute (already inside the network)
The VPN Gateway terminates Point-to-Site connections for external users, while VNet peering links the Hub and Spoke VNets. Together with NSGs and firewall controls, this keeps the external and internal paths separate, private, and fully routed within Azure.
- NSGs & Firewall Controls (Granular Segmentation)
NSGs are applied on the Hub and Spoke subnets to permit only the required flows — for example, the Application Gateway subnet reaching the Databricks Private Endpoint — and firewall controls enforce segmentation. This gives granular, least-privilege control over exactly what can reach the workspace.
- Databricks Workspace – Public Disabled & Private Endpoint Enabled
Public access to the workspace is fully disabled, so it is never exposed to the internet. It is reached only through the Private Endpoint in the Spoke VNet, which maps to a private IP with DNS integration and keeps all traffic on the Azure backbone.
Key Considerations
- Application Gateway Listener should be configured with FQDN with which external users will be accessing the Databricks.
- Listener FQDN (Example - databricks.example.com) will be resolving to Public Ip of Application Gateway (Frontend Ip).
- SSL Certificate & Public DNS Configurations has to be considered for the configuration to work.
- Backend Pool for Application Gateway should be configured with FQDN of Databricks Workspace. Note – If you add Private Ip of workspace it will be shown as health backend, but web request will fail
- Ensure DNS resolution for the Private Endpoint is configured appropriately, including for Point-to-Site clients, so the workspace FQDN and its OAuth return URL resolve to the Private Endpoint rather than a public address.
- In the Application Gateway HTTP settings, enable “Pick host name from backend target” so the Databricks workspace FQDN (the backend hostname) is preserved, and ensure the Application Gateway can resolve that FQDN to the Private Endpoint.
- End-to-End SSL Configuration at Application Gateway Level.
- Custom Rules for WAF should be configured to allow only the approved Point-to-Site and corporate network ranges while blocking all others.
Conclusion
As organizations continue adopting Azure Databricks for critical analytics and AI workloads, securing access becomes non-negotiable. A traditional hybrid model with an IP Access List is no longer sufficient, and simply fronting a private workspace with a WAF over the public internet breaks at sign-in because the Databricks OAuth URL resolves to the private endpoint.
By having external users connect over a Point-to-Site VPN first, and then combining Application Gateway (WAF) with Private Endpoints on a Hub-and-Spoke architecture, reinforced by NSGs and firewall controls, we achieve a true Zero Trust design. Every request is authenticated over the VPN, validated and inspected by the WAF, filtered by policy, and routed privately, without exposing backend services.
This architecture reduces the attack surface, keeps the solution compliant with strict regulatory standards, and, importantly, works end to end for both internal and external users.
Useful Links -
Azure WAF Custom Rules - https://learn.microsoft.com/en-us/azure/web-application-firewall/ag/custom-waf-rules-overview
Azure Databricks Private Link - https://learn.microsoft.com/en-us/azure/databricks/security/network/concepts/private-link#choose-the-right-private-link-implementation
Azure Databricks Architecture - https://learn.microsoft.com/en-us/azure/databricks/security/network/concepts/architecture
Azure Databricks VNet - https://learn.microsoft.com/en-us/azure/databricks/security/network/classic/vnet-inject#overview
Azure Hub & Spoke Model - https://learn.microsoft.com/en-us/azure/architecture/networking/architecture/hub-spoke
Azure Point-to-Site VPN - https://learn.microsoft.com/en-us/azure/vpn-gateway/point-to-site-about
Updated Sep 14, 2026
Version 4.0FaizaanMerchant
Microsoft
Joined March 31, 2026
Azure Architecture Blog
Follow this blog board to get notified when there's new activity