azure databricks
146 TopicsAzure Databricks: Genie Migrate for Serverless, an Agent That Accepts Rejection
Title: Genie Migrate for Serverless: an Agent That Proposes Changes and Accepts Rejection Migrating a workload from classic compute to serverless is, in theory, a configuration swap. In practice, it is a sequence of trial and error: a library that existed on the classic cluster does not exist in the serverless environment, a Spark configuration that used to make sense simply does not apply anymore, an incompatible access mode only shows up once the job is already running. Each individual migration consumes time disproportionate to the size of the actual problem, and that is exactly why so many classic compute fleets simply never migrate, even when everyone agrees they should. Genie Migrate for Serverless, now in Beta, attacks this friction in a specific way: instead of documentation promising that "migration is simple," an agent does the discovery, proposes every change individually, and applies all of it to a clone that can be discarded with zero consequence if something goes wrong. The problem that manual migration exposes Documentation lists three recurring sources of failure in manual migration: access mode incompatibility, Spark configuration that does not apply in the serverless environment, and a library installed on the classic cluster that simply does not exist on the other side. Each individual migration takes too long precisely because these problems only surface at execution time, not at configuration time, so the common practice ends up being try, fail, adjust, try again, repeatedly, per job. The mechanism: three stages The agent's design follows three stated principles: no production breakage, full control over every proposed change, and a clean rollback if anything goes wrong. In practice, that translates into three phases. First, assessment: the agent scans notebooks and jobs and classifies each one as ready now, needing admin action, or not ready yet (a workload whose source of truth lives outside the workspace, such as a Databricks Asset Bundles job or a notebook in a Git folder, cannot be migrated through this path yet). Second, translation: every proposed change shows up as a labeled, side-by-side diff, and nothing is written until you accept it. The agent maps classic cluster configuration to a serverless compute selection, resolves the library list against the serverless runtime, carries forward Spark configuration that still applies and flags the uncertain ones for your decision instead of simply removing them, and rewrites incompatible code using Spark Connect, also as a diff. Third, reversible application: the validated translation is applied to a clone of the job, without touching the running original. You run the clone on demand and, if satisfied, promote the clone to replace the original, keeping the same job ID, schedule, and permissions. If you do not promote it, the original stays untouched. Worth noting: today's validation is static (consistency, library resolution, clean configuration application); an isolated sandbox validation that compares the migrated job's output against the classic baseline is still planned and is not current behavior. Hands-on: bulk migration via the CLI For anyone who needs to migrate many jobs at once, instead of one at a time inside Genie Code, the compute-migrations command group in the Databricks CLI exposes the same agent as a script, with an explicit state flow worth understanding before automating it: # Starts a migration for a specific job # (requires Databricks CLI 1.24.0 or above and the "Compute Agent" preview enabled) databricks compute-migrations create -o json --request-id "$(uuidgen)" --json '{ "asset_type": "JOB", "asset_uri": "jobs/482910", "auto_approve": false, "run_validation": false }' # Tracks state until it reaches TRANSLATION_READY databricks compute-migrations get <migration-id> -o json # After reviewing the diff manually, approve the translation databricks compute-migrations approve-migration-translation <migration-id> --etag <etag> # Track until MIGRATION_REVIEW and approve the final execution, # which effectively replaces the original job with the migrated clone databricks compute-migrations approve-migration-execution <migration-id> --etag <etag> Every rejection requires a specific reason (reject-migration-translation followed by the migration id, a reason string, and an etag), and the agent revises the clone again from that feedback. Using an etag on every command is not empty bureaucracy: it prevents approving a version of the plan that has already gone stale because someone, or the agent itself, changed the migration's state between your last read and your decision. In practice: the point that deserves extra attention here is that the validation run (run_validation set to true) is not isolated. The clone runs against the same table, volume, checkpoint, and external system the original job uses. If the job writes to a production table or fires a notification, the validation run does that too, for real. Reserve that option only for jobs where an extra run is genuinely harmless, because this setting cannot be changed after the migration is created. What this does not solve The agent proposes and applies accepted changes, but it does not verify that the result is correct. Validation today is structural, not semantic: it confirms that configuration resolves and that libraries exist, not that the migrated job's data output is identical to the classic job's. This needs to be verified manually before trusting it in production, especially for workloads writing to a critical table. There is also a real blocklist: custom images, ML Runtime variants, Databricks Runtime versions earlier than 13, JAR or Maven dependencies, and Scala or R code all stop by default and require an explicit decision to proceed anyway, accepting the risk that the unmigrated functionality breaks later. A job with more than ten migratable tasks cannot be migrated, and through the CLI only jobs are supported (standalone notebooks are not yet), and a job whose source is a remote Git repository fails migration. A workload whose source of truth is an Asset Bundle requires manually reconciling the change the agent applied back into the bundle, or the next deploy overwrites the migration. Is it worth adopting? Yes, especially for anyone with a large fleet of classic jobs stalled purely for lack of time to review each one manually. The real gain is not the migration itself, Spark has documented that manually for years, the gain is turning the work of "figuring out what will break" from manual investigation into reviewing an already-prepared diff. Even so, treat promoting the clone like a normal production deploy: review it, validate the data output yourself, and only then discard the original classic job. References Databricks Blog, "Introducing Genie Migrate for Serverless" (https://www.databricks.com/blog/introducing-genie-migrate-serverless) Microsoft Learn, "Migrate from classic compute to serverless compute - Azure Databricks" (https://learn.microsoft.com/en-us/azure/databricks/compute/serverless/migration) Microsoft Learn, "Connect to serverless compute - Azure Databricks" (https://learn.microsoft.com/en-us/azure/databricks/compute/serverless/)101Views0likes2CommentsIntroducing the new Azure Databricks on Microsoft Azure Government, now in Beta
Closing the gap between innovation and compliance For years, public sector leaders have faced a difficult choice: adopt the latest data and AI capabilities or meet the strict security and compliance requirements of their mission. As a result, many agencies and their partners have not had access to the full set of Azure Databricks capabilities available in the global Azure cloud. On Azure Databricks, we believe the public sector should not have to make that trade-off. Today, we're announcing the Beta release of Azure Databricks on Microsoft Azure Government. Agencies and the organizations that serve them can now build on the same modern data foundation available in global Azure, including Unity Catalog, Databricks SQL, and serverless compute. For details on Azure Databricks release types, see Azure Databricks preview releases - Azure Databricks | Microsoft Learn. One platform across global Azure and Azure Government On global Azure, Azure Databricks has already achieved FedRAMP Class D authorization. With this Beta, the same modern platform arrives in Microsoft Azure Government, giving U.S. public sector customers a modern Azure Databricks option in both Azure clouds. Azure Government is Microsoft's dedicated Azure cloud for U.S. government agencies and their partners. It is physically isolated from the global Azure cloud, and screened U.S. persons operate it to meet the compliance requirements of federal, state, local and tribal governments. Choosing between the two comes down to the workload. Azure Databricks is available today for federal civilian agencies, state and local governments, and partners whose workloads fit FedRAMP Class D in global Azure regions. The new Azure Government environment, now open in Beta, is for organizations that need a dedicated government cloud. In both clouds, Azure Databricks is a first-party Azure service. Agencies manage it in the Azure portal, rely on its native integration with Microsoft Entra ID and apply usage toward their existing Azure commitments, so adoption happens within the cloud, contracts and identity systems they already trust. Under the hood, the new environment shares the architecture of Azure Databricks in global Azure and is built to take in the full Databricks platform, with every feature released in global Azure reaching Azure Government through the same ongoing releases. Authorization path FedRAMP Class D (formerly FedRAMP High) and DoD Impact Level 5 (IL5) authorizations for the new Azure Databricks on Azure Government environment are pending. Once they are in place, agencies and defense partners will be able to bring Controlled Unclassified Information (CUI) and mission-critical workloads to the modern Azure Databricks platform. Until then, the Beta environment must not be used to process CUI or any other data regulated by these standards, and General Availability depends on completing the applicable government authorization process. What's available in Beta Beta is the first step toward the full platform, and it already delivers the core capabilities that data teams depend on. It is intended for non-production workloads, and feature availability might differ from the generally available Azure Databricks service. Unified governance across data and AI: Unity Catalog comes to Azure Government for the first time. Teams can control access, trace lineage and audit usage for every data and AI asset from one place: write a policy once, enforce it everywhere and answer who accessed what, when and why. Analytics that scale without the overhead: Databricks SQL provides fast analytics at high concurrency. For each workload, engineers and data scientists pick classic clusters or serverless compute, spending less time sizing and patching infrastructure and more time on the mission. Security controls on from day one: The Compliance Security Profile is enabled by default in every workspace. It adds enhanced security monitoring, automatic cluster updates and a hardened compute image, and it enforces VM instance types that support Azure Virtual Network encryption for hardware-implemented encryption between cluster nodes. Front-end and back-end connections both require Azure Private Link, which keeps all traffic on the Microsoft backbone network. Visibility into usage and cost: Administrators can query system tables for audit logs, billing, compute, jobs and pipelines, ML experiments, query history and storage in one place, so responding to audit requests and managing spend uses tools they already know. Data that stays in government regions: Data residency is always enforced: customer content is stored and processed only in the U.S. government Azure regions US Gov Virginia and US Gov Arizona. Cross-Geo processing does not apply to Azure Government workspaces and cannot be used to process data outside those regions. Take the next step Starting fresh in the new environment During Beta, access is enabled per subscription. Register a dedicated Azure Government subscription that has never been used to create an Azure Databricks workspace. In the Azure Government portal, open that subscription's Preview features, find the Azure Databricks new GovCloud environment feature and register it (this requires permission to register subscription features). Once the status reads Registered, each new workspace created in that subscription lands in the new environment. Plan Beta workloads for non-production and non-CUI scenarios. Moving from the existing Azure Government environment Because the new environment is separate, registering for Beta leaves your existing workspaces, notebooks, data and configurations untouched, and you can evaluate the new environment alongside them. Use a different subscription from the one that hosts your existing workspaces, since a subscription cannot be registered for both environments at the same time. Four areas deserve early attention: Unity Catalog: Begin now so your teams have time to design and roll out unified governance. Serverless compute: Serverless is new to government environments, so open your internal security and compliance review early. Network encryption: Because the Compliance Security Profile is enabled on every workspace, clusters need instance types that support Azure Virtual Network encryption. Align your cluster configurations and Terraform/ARM templates accordingly. Your ATO: Engage your security and authorizing officials now about adding Azure Databricks on Azure Government to your system's Authorization to Operate (ATO). Updating system security plans, data flows and boundary documentation during Beta positions you to run CUI production workloads at General Availability. Getting started To get started, visit Azure Databricks on Microsoft Azure Government. For questions or feedback during Beta, contact your Microsoft account team. Learn More Azure Databricks on Microsoft Azure Government The new Azure Databricks on Azure Government is now in Beta | Databricks Blog Databricks Partners with Microsoft to bring our Data + AI Platform to Azure Government | Databricks Blog416Views0likes0CommentsAzure Databricks delivers new integrations for enterprise intelligence to use, build, and govern AI
At Microsoft Ignite 2026, we are announcing new integrations that bring Azure Databricks intelligence into Microsoft 365 Copilot and Copilot Cowork, connect business meaning through Genie Ontology alongside Microsoft IQ, and bring Genie agents into enterprise agent oversight. The goal is to help customers put enterprise data to work through AI, with the business context and governance that data requires. For business users, that means asking questions in familiar Microsoft tools. For data teams, it means extending the reach of the data and business definitions they manage. For agent builders and IT teams, it means connecting those experiences to enterprise intelligence and oversight. These updates build on Azure Databricks, the jointly engineered Microsoft and Databricks service that brings data engineering, analytics, and AI together. They extend that foundation across a Microsoft ecosystem that includes Foundry, Fabric, and Copilot. Bring enterprise data into the task at hand A business question rarely ends with a query result. A sales leader investigating a change in performance needs an answer they can use in a review, a discussion, or a decision. The Genie One plugin, built on Model Context Protocol (MCP), lets Microsoft 365 Copilot and Copilot Cowork call Genie for Databricks data questions as part of a broader task. Copilot plans the work, selects tools, and composes the final response. Genie contributes the intelligence needed for the data question. Copilot sends Genie a scoped question, not the entire user prompt. The user can keep working in Copilot while Genie handles the relevant part of the request. For people who want to explore their data directly, the Genie app in Teams and Microsoft 365 Copilot provides a conversational experience with Genie. Whether the starting point is a direct data question or a larger Copilot task, Azure Databricks intelligence becomes accessible within the tools people already use. Put business meaning to work beyond the Lakehouse Data teams invest in more than pipelines and tables. They establish what a metric means, which sources are authoritative, and who can access the underlying information. Those decisions need to remain relevant when AI becomes another consumer of enterprise data. Genie Ontology contributes the business meaning of Azure Databricks data, including metrics, semantics, and usage, with access gated by Unity Catalog permissions. That intelligence complements Microsoft IQ. Work IQ, Fabric IQ, Foundry IQ, and Web IQ provide shared context about how people work, how the business runs, what the organization knows, and what is happening on the web. Genie Ontology adds the meaning of the organization's Databricks data. For a question about revenue, the intended metric matters as much as the result. Connecting work context with business meaning helps bring the data team's definitions into the AI experience, while Unity Catalog permissions continue to gate access to Azure Databricks data. The benefit is a wider role for the governed data foundation: the work data teams do can support conversations and tasks beyond a traditional analytics interface. Connect agents to governed Databricks intelligence An agent that coordinates work needs a way to ask the right system the right question. The Genie One MCP integration gives Copilot a defined path to Genie for Databricks data questions, rather than treating every request as a generic prompt. For teams building custom agents, these updates build on the previously announced workspace-wide MCP endpoint for Copilot Studio. That endpoint lets an agent work across connected Genie spaces and Unity Catalog datasets through one workspace connection, preserving the curated context in Genie spaces and enforcing data permissions at query time. The distinction matters: the Genie One plugin brings Databricks intelligence into Copilot-coordinated work, while the Copilot Studio integration supports teams authoring their own agents. Both extend the usefulness of the governed Azure Databricks foundation. Microsoft and Databricks are also working to extend agent registry integration to Agent Bricks agents and tools. That is a direction for the joint work, distinct from the Genie agent registry synchronization described below. Bring Genie agents into enterprise IT observability and security As agents become part of everyday work, IT teams need visibility into the agent estate as well as controls over the data those agents use. Genie agents sync into the Microsoft 365 agent registry, helping bring them into the organization's agent inventory. Agent 365 provides capabilities to register, observe, and govern agents across platforms, working with Microsoft Entra, Microsoft Purview, and Microsoft Defender. Enterprise agent oversight complements Databricks governance in Unity Catalog and Unity Gateway. These layers address different responsibilities: understanding and managing agents across platforms, and governing data and AI assets within Databricks. Microsoft Entra provides a shared identity foundation for the Azure Databricks experience. Together, these capabilities connect the user-facing AI experience with the identity, data permissions, and oversight that enterprise teams need to manage. A shared foundation, useful across roles Consider a business review supported by Copilot. A business user asks about performance. The data team's metric definitions give the question meaning. Copilot calls Genie for the relevant Databricks answer. Data permissions govern what can be accessed, while agent inventory and oversight help IT manage the agents involved. That is the unified Azure Databricks story behind these announcements: make governed enterprise intelligence useful to more people, through the Microsoft experiences where their work happens. Learn more at Microsoft Ignite Databricks joins Ignite as a Visionary Sponsor, with six featured sessions, a sponsor booth, expert meet-ups, and dedicated customer conversations. To explore the integrations and their technical context, start with these key sessions: Session Title BRK364 Powering AI with Azure Databricks, Foundry, Fabric, and Copilot THRSP1130 Build governed AI that understands your business context BRKSP617 Scale agentic AI and turn data into autonomous action The broader program also includes BRK453: What's new and what's next in Azure Storage THR909: Seismic shift: Turning subsurface data into decisions LTG1303: Azure Databricks for government cloud: Modern data and AI, delivered Find times, locations, and attendance options in the Microsoft Ignite session catalog. Visit Databricks at booth 5271R and connect with the team through the Azure Expert Meet-Up programming for demos and technical conversations. Dedicated meeting space at The Social at the Hilton Canopy Hotel is available November 17-19. Explore the Databricks Ignite program and meeting options or visit the Azure Databricks documentation to learn more about the platform. Stay in the know with all things Azure Databricks https://aka.ms/adbreleasenotes462Views0likes0CommentsStolen credential detection in Azure Databricks starts in Microsoft Entra ID, not the workspace
An attacker holding a valid stolen credential doesn't trigger a single alarm looking at any one event. Token login, a listing call, reading a secret, creating a function, all of that happens constantly in any healthy workspace, done by legitimate people. What gives the attack away isn't any single event in isolation, it's the sequence happening out of normal order, coming from an identity that had never done any of it before. Security research recently published by Databricks documents exactly this reasoning, organized around a six-stage attack model, without relying on a machine learning model or a complex anomaly score. The six-stage model behind the attack The documented sequence follows a well-defined progression: gain access with an already-valid credential, map the available environment, harvest additional credentials scattered across the workspace, find an execution path that takes advantage of those credentials, establish persistence to survive revocation of the original access, and finally exfiltrate data and attempt to clean up tracks. Each stage has its own signature in the audit log, but it only makes sense as an attack when read together with the neighboring stages, not in isolation. Why sequence correlation beats isolated signature detection The central point of the material is that no single event, looked at alone, separates legitimate use from an attack. What works is cross-referencing three things: the non-linear order of events (a token login followed by discovery, followed by reading a secret, followed by creating a function), the deviation from that identity's own history (the first time it lists a secret, the first time it creates a function, the first access denial from a given IP), and a simple volume threshold within a short window, like five different discovery API calls within a minute. A denial correlated with a later success on the same credential, and an identity switching compute right after a failure, also count as signal. Hands-on: correlating a denied secret read with a successful one A high-signal pattern cited in the research is a specific secret read being denied, followed shortly after by success on a related key, within the same session. A query that approximates this pattern directly against system.access.audit: WITH secret_attempts AS ( SELECT user_identity.email AS identity, request_params.scope AS scope, request_params.key AS key_name, response.status_code AS status, event_time FROM system.access.audit WHERE action_name = 'getSecret' AND event_time >= current_timestamp() - INTERVAL 1 HOUR ) SELECT denied.identity, denied.scope, denied.event_time AS denied_at, granted.key_name AS granted_key, granted.event_time AS granted_at FROM secret_attempts denied JOIN secret_attempts granted ON denied.identity = granted.identity AND denied.scope = granted.scope AND granted.event_time BETWEEN denied.event_time AND denied.event_time + INTERVAL 10 MINUTES WHERE denied.status = 403 AND granted.status = 200 ORDER BY denied.event_time DESC; The logic behind this query is the same one underpinning the whole model: an isolated denial means nothing, but a denial followed by a related success, within the same short time window, is exactly the kind of pattern someone testing an access boundary would leave behind. Diagram showing the six stages of the stolen-credential attack and where each prevention control breaks the chain, including the two points where the attacker can return as a new identity. In Azure Databricks, the signal can arrive before the workspace Much of the first stage, logging in with an already-valid credential, happens through federated authentication with Microsoft Entra ID before any event ever shows up in the workspace's system.access.audit. That means Entra ID Protection may already have flagged risk on the login session itself, before the attacker ever touches an Azure Databricks resource. Two Entra ID Protection detectors matter specifically for the first stage: leaked credentials (leakedCredentials, an asynchronous calculation, available from Entra ID Free or P1, always classified as high risk) and impossible travel (unlikelyTravel, real-time detection, requires Entra ID P2). Neither depends on anything specific to Azure Databricks, but both cover exactly the moment the six-stage model treats as the entry point. Entra ID Protection's risk detection API, via Microsoft Graph (GET /identityProtection/riskDetections, requiring the IdentityRiskEvent.Read.All permission and an Entra ID P1 or P2 license), returns, among other fields, riskEventType, riskLevel, userPrincipalName, and activityDateTime. Ingesting that result into your own table through a scheduled job lets you correlate login session risk with what happened afterward inside the workspace: WITH token_logins AS ( SELECT user_identity.email AS identity, event_time AS login_at FROM system.access.audit WHERE action_name = 'tokenLogin' AND event_time >= current_timestamp() - INTERVAL 24 HOURS ), entra_id_risk AS ( SELECT user_principal_name AS identity, risk_event_type, risk_level, activity_date_time FROM security.entra_id.risk_detections WHERE risk_level IN ('high', 'medium') ) SELECT token_logins.identity, token_logins.login_at, entra_id_risk.risk_event_type, entra_id_risk.risk_level FROM token_logins JOIN entra_id_risk ON token_logins.identity = entra_id_risk.identity AND entra_id_risk.activity_date_time BETWEEN token_logins.login_at - INTERVAL 1 HOUR AND token_logins.login_at + INTERVAL 1 HOUR ORDER BY token_logins.login_at DESC; The security.entra_id.risk_detections table doesn't come from any ready-made connector, it's something the security team itself builds, calling the Microsoft Graph API periodically through a Lakeflow Job and writing the result as just another governed table. The payoff of cross-referencing both sources is seeing the window between "the login already came in risky" and "the credential is actually being used inside the workspace", which is exactly the interval where revoking access still prevents stage two onward. Worth a note too on the credential-harvesting stage specifically on Azure: a secret read from a Unity Catalog schema backed by Azure Key Vault, a feature still in Beta, generates a Unity Catalog audit record with the identity of the Azure Databricks principal that did the read, so it lands inside the same system.access.audit already being monitored. The older secret scope model backed by Key Vault, where the entire vault is exposed to the workspace at once, doesn't have that coverage officially documented, worth testing directly before assuming anything, and turning on Key Vault's own diagnostic logging as an extra layer while that remains unconfirmed. My take: the most honest detail in this material is acknowledging its own data limitation, function_info comes masked by default for anyone who isn't an account admin, and much of the command history only shows up with verbose logging turned on, which isn't enabled by default. That means the real effectiveness of this detection model depends on a configuration decision made before the attack happens, not just the right query written afterward. Worth auditing right now whether your workspace is already collecting the data you'll need when it's time to investigate. What this doesn't solve on its own The research doesn't report precision, recall, or false-positive rate metrics, the numbers given are just example thresholds and a ready detection count, over thirty, in the companion open-source app. An empty result on a detection query also doesn't prove the absence of an attack, it might just mean the time window is wrong or that verbose logging was off during that period. And the whole model is rule- and threshold-based, not statistical learning, which makes it easier to audit and explain, but also makes it easier for an attacker who knows the pattern to adjust their own pace to stay below the configured threshold. On Azure Databricks specifically, it's worth confirming which log path your team actually monitors. The documentation is explicit that Azure Monitor diagnostic settings on the workspace don't cover account-level events, nor a few specific services, including Groups, cluster policy, Artifact Registry, and the Unity Gateway MCP, available only through the system table. A team that only shipped diagnostic logs to Log Analytics or Microsoft Sentinel, without ever querying system.access.audit directly, has a real coverage gap, not a hypothetical one, in exactly the services that underpin part of the six-stage model. Is this pattern worth adopting? The real value here isn't the specific list of APIs cited, it's the design principle, treating sequence and baseline deviation as the primary signal, not the isolated event. That's replicable on any platform that exposes structured audit logs, not just Azure Databricks. Before trusting this in production, confirm verbose logging is on where it matters, that notebook and job history is being retained long enough, and simulate at least one of the documented patterns against your own environment to see whether the query actually fires. References Databricks Blog, "Detecting credential-driven attacks on Databricks": https://www.databricks.com/blog/detecting-credential-driven-attacks-databricks (https://www.databricks.com/blog/detecting-credential-driven-attacks-databricks) Databricks Docs, audit log system table: https://docs.databricks.com/aws/en/admin/system-tables/audit-logs (https://docs.databricks.com/aws/en/admin/system-tables/audit-logs) Microsoft Learn, "Audit log system table reference": https://learn.microsoft.com/en-us/azure/databricks/admin/system-tables/audit-logs (https://learn.microsoft.com/en-us/azure/databricks/admin/system-tables/audit-logs) Microsoft Learn, "Enable verbose audit logs": https://learn.microsoft.com/en-us/azure/databricks/admin/account-settings/verbose-logs (https://learn.microsoft.com/en-us/azure/databricks/admin/account-settings/verbose-logs) Microsoft Learn, "Context-based ingress control": https://learn.microsoft.com/en-us/azure/databricks/security/network/front-end/context-based-ingress (https://learn.microsoft.com/en-us/azure/databricks/security/network/front-end/context-based-ingress) Microsoft Learn, "Diagnostic log reference": https://learn.microsoft.com/en-us/azure/databricks/admin/account-settings/audit-logs (https://learn.microsoft.com/en-us/azure/databricks/admin/account-settings/audit-logs) Microsoft Learn, "Azure Key Vault secrets in Unity Catalog" (Beta): https://learn.microsoft.com/en-us/azure/databricks/security/secrets/external-secrets (https://learn.microsoft.com/en-us/azure/databricks/security/secrets/external-secrets) Microsoft Learn, "Workspace secret scopes" (legacy model): https://learn.microsoft.com/en-us/azure/databricks/security/secrets/workspace-secret-scopes (https://learn.microsoft.com/en-us/azure/databricks/security/secrets/workspace-secret-scopes) Microsoft Learn, "What are risk detections?" (Microsoft Entra ID Protection): https://learn.microsoft.com/en-us/entra/id-protection/concept-identity-protection-risks (https://learn.microsoft.com/en-us/entra/id-protection/concept-identity-protection-risks) Microsoft Graph, risk detection API (riskDetections): https://learn.microsoft.com/en-us/graph/api/riskdetection-list (https://learn.microsoft.com/en-us/graph/api/riskdetection-list) Open-source detection app repository: https://github.com/databricks-solutions/cybersec-workspace-detection-app (https://github.com/databricks-solutions/cybersec-workspace-detection-app)176Views0likes2CommentsEnabling the Compliance Security Profile (CSP) for HIPAA on Azure Databricks
Microsoft Architect's: Aladdin Alchalabi AladdinAlchalabi, Kiran Raja KiranRaja, Peter Lenges PeterLenges, Jessica Reece jareece, Benjamin Coughtry bcoughtry, Anishek Kamal anishekkamal, Tayo Akigbogun takigbogun, Eric Kwashie ekwashie, Peter Lo PeterLo and Rafia Aqil Rafia_Aqil Peer Reviewed: Ted Kim tedkim and Arvind Periyasamy ArvindPeriyasamy Purpose and WHY Azure Databricks has put in place controls to meet the unique compliance needs of highly regulated industries. The requirement for the compliance security profile (CSP) is a joint effort between Microsoft and Databricks for Azure-Databricks workspaces. The value proposition of the compliance security profile is that it provides Customers significantly more hardening and security features. Mandatory Deadline: The Compliance Security Profile (CSP) becomes mandatory for processing HIPAA, HITRUST, and IRAP regulated data on Azure-Databricks by September 1, 2026. Key Dates: Enable the Compliance Security Profile and select HIPAA by September 1, 2026. Prepare for Azure Virtual Network encryption enforcement beginning June 1, 2027. Compliance Responsibility: Enabling CSP supports applicable technical controls but does not, by itself, establish HIPAA compliance. Compliance is a shared responsibility among the customer, Microsoft, and Databricks. Customers must evaluate their administrative, physical, and technical safeguards and confirm that an applicable Microsoft Business Associate Agreement is in place. Enabling CSP on Workspaces These requirements are checked and enforced on new workspaces today, with enforcement on existing workspaces expected in the future; where prerequisites are missing, clusters may fail to start. Prerequisite Requirement Costs There is a 10% cost of the Azure Databricks product spend within each workspace where CSP is enabled. **Review with your account team for any grace period during which the Enhanced Security & Compliance (ESC) add-on is available at no charge. After the grace period ends, a 10% DBU upcharge applies. Enhanced Security & Compliance add-on For existing workspaces: From Azure portal, click the Settings > Security & compliance on an existing Azure Databricks workspace: **Review Note #2 below Azure VNet encryption Azure Virtual Network encryption must be enabled on the Azure Databricks workspace VNet. Infrastructure as code: Update the encryption block on your VNet resource. In Terraform, that's azurerm_virtual_network. Azure portal: Toggle encryption on the VNet (Overview → Properties → Encryption). Command line: Enable it with the Azure CLI or PowerShell. **Review Note #4 below Supported VM instance types Use a VM series that supports VNet encryption and verify compatibility before enabling the profile. **This does not apply to serverless compute. NOTE: Confirm your workspace is using Premium Pricing tier. The profile can be enabled when a workspace is created or on an existing workspace, through the Azure portal, the Azure CLI, PowerShell, an ARM template, or Terraform. Only the Public Preview, Private Preview, and Beta features listed in this section are supported for workspaces with the compliance security profile enabled: Compliance security profile - Azure Databricks | Microsoft Learn Currently, the compliance security profile checks and enforces only the use of specific VM instance types, not the enablement of Azure Virtual Network encryption. Enforcement of the Azure Virtual Network encryption requirement begins on June 1, 2027, including on workspaces that already have the compliance security profile enabled. This flexibility shall allow customers more time to set up VNET encryption. This has been updated in documentation today (See ‘Important’ box). Regarding rollback, CSP can be reversed via a support ticket, if no regulated data has been processed on a particular workspace. Plan for possible effects on cluster startup, networking, feature availability, maintenance operations, and cost. A closer look at VNet encryption CSP is enabled per Databricks workspace, but VNet encryption is applied at the VNet level. Enabling it for a Databricks workload therefore affects every resource within that VNet, not just the workspace. A common approach in a hub-and-spoke design is to leave the hub VNet unencrypted and encrypt only the spoke VNet. The hub typically holds shared services such as the DNS resolver, while the spoke hosts the Databricks workspaces that require CSP. What does it mean for a VNet to be encrypted? An encrypted VNet is a security measure that protects VM-to-VM traffic. Data is encrypted in transit through a DTLS tunnel. This is platform-level encryption, applied automatically to traffic within your VNet and across peered VNets. It requires no changes to your operating system or applications. What happens to my VM-to-VM traffic? Qualifying VM-to-VM traffic is encrypted. Traffic involving unqualified instances simply keeps flowing unencrypted. The only enforcement available today is AllowUnencrypted. Important clarifications Encrypting the VNet does not guarantee all traffic within it will be encrypted. The only traffic that gets encrypted is VM-to-VM traffic where both the source and destination VMs are (1) on a supported SKU and (2) have Accelerated Networking enabled on the network interface. Encrypting the VNet does not drop or break traffic from unsupported SKUs. The only supported GA setting today is to allow unencrypted traffic, so non-qualifying traffic is still permitted; it just isn't encrypted. A future DropUnencrypted setting will drop that traffic instead for further hardening. It isn't available yet, and it's currently unknown whether it will become a required setting for CSP. Review the following recommended steps The steps below represent a validated implementation pattern. The exact network design can vary by environment, but the same prerequisite, isolation, and end-to-end validation principles should be applied. Validated implementation step Recommended approach and expected outcome Isolated sandbox workspace Enable CSP first in a representative non-production workspace. This avoids irreversible changes to DEV or production while the network topology, dependencies, VM compatibility, and operational behavior are validated. Enable CSP and select HIPAA Enable the Compliance Security Profile and select HIPAA under Settings > Security & compliance before processing PHI after September 1, 2026. Enable VNet encryption Enable VNet encryption. **Review Azure Virtual Network encryption limitations: What is Azure Virtual Network encryption? - Azure Virtual Network | Microsoft Learn Start a classic cluster Confirm that a classic cluster starts successfully after CSP and VNet encryption prerequisites are applied. This validates that the selected compute path and VM types remain operational. Validate storage connectivity Confirm storage connectivity continue to work. Confirm rollout readiness Proceed to DEV and production only after the complete private connectivity path, cluster startup, storage access, DNS resolution, data pipelines, and performance have been validated from end to end. Things to Review Enablement is permanent Enabling the compliance security profile, or adding a compliance standard, is intended to be a permanent change. You cannot remove the profile or an individual standard from a workspace that has ever processed regulated data; to revert, you must delete the workspace and create a new one. Validate the configuration in an isolated, representative non-production workspace before enabling DEV or production. Inventory and Assessment Identify Regulated Workspaces: Catalogue all existing Azure-Databricks workspaces. Determine which ones currently process, or are planned to process, data subject to HIPAA, HITRUST, or IRAP. Review Data Pipelines: Map out all data ingress and egress points for these identified workspaces, including connections to on-premises data sources, other cloud services, and external APIs. This helps identify potential network impacts. Verify Prerequisites Before Rollout: Confirm that selected VM instance types support VNet encryption and that every required CSP and networking setting is in place, because missing prerequisites can prevent clusters from starting. Enablement Method: Choose the appropriate tooling for enablement of Azure Portal, Azure CLI, PowerShell, ARM templates, or Terraform to ensure consistency and automation. Keep sensitive data out of customer-defined fields You are solely responsible for ensuring that PHI or other sensitive information is never entered into customer-defined input fields. These include workspace names, compute and resource names, tags, job names, job run names, network names, credential names, storage account names, and Git repository IDs or URLs, all of which may be stored, processed, or accessed outside the compliance boundary. What Changes After Enabling Compliance Security Profile On CSP-enabled workspaces, Partner-powered AI features are disabled by default and some assistive features such as Genie Code are also disabled; a workspace admin can re-enable them if required. In addition, only the specific preview features listed in the compliance security profile documentation are supported. No other Public Preview, Private Preview, or Beta feature may be used to process regulated data. Compliance Security Profile (CSP) enhances the security posture of Azure Databricks by enabling a hardened compute image, enhanced security monitoring, and automatic cluster updates. With automatic cluster updates enabled, classic compute resources are periodically updated and may restart during configured maintenance windows, so production schedules should be planned accordingly. Enhanced security monitoring deploys security monitoring agents on supported compute resources and generates logs that security teams can ingest and analyze. When deploying through ARM templates, CSP, enhancedSecurityMonitoring, and automaticClusterUpdate are configurable security and compliance settings that can be specified as part of the workspace deployment. Why GPU-accelerated compute may be affected Azure Databricks supports several GPU families, but Azure VNet encryption currently documents a narrower GPU list. Please review the list here: What is Azure Virtual Network encryption? - Azure Virtual Network | Microsoft Learn. Note: Please review the important section for any GPU The use of GPU-based VMs that support VNet encryption is required but not yet enforced. What happens if a customer does not enable Azure Databricks CSP? Azure Databricks has implemented additional controls to support the security and compliance requirements of highly regulated industries. CSP should not be characterized solely as a Microsoft initiative; it is part of the Azure Databricks security and compliance offering delivered by Microsoft and Databricks. CSP provides additional platform hardening and security capabilities, including a CIS Level 1 hardened compute image, automatic cluster updates, enhanced security monitoring, and TLS 1.2 or higher for relevant communications. Beginning September 1, 2026, CSP is required for Azure Databricks workspaces processing data subject to applicable standards, including HIPAA, HITRUST, and IRAP. If a customer chooses not to enable CSP while processing data subject to one of these standards, the workspace would not meet the documented Azure Databricks configuration requirements for that regulated workload. This does not, by itself, determine the customer's overall legal or regulatory compliance; customers should assess their obligations with their legal, compliance, and audit teams. References Compliance security profile: https://learn.microsoft.com/en-us/azure/databricks/security/privacy/security-profile Configure enhanced security and compliance settings: https://learn.microsoft.com/en-us/azure/databricks/security/privacy/enhanced-security-compliance HIPAA, Azure Databricks, Microsoft Learn: https://learn.microsoft.com/en-us/azure/databricks/security/privacy/hipaa What is Azure Virtual Network encryption: https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-encryption-overview Create a Virtual Network with encryption: https://learn.microsoft.com/en-us/azure/virtual-network/how-to-create-encryption?tabs Hashicorp azurerm_virtual_network: azurerm_virtual_network | Resources | hashicorp/azurerm | Terraform | Terraform Registry2.2KViews5likes0CommentsOptimize selective analytics reads in Azure Data Lake Storage with ABFS Vectored Read
ABFS Vectored Read helps compatible analytics engines reduce request overhead when reading selected portions of columnar files in Azure Data Lake Storage. By coordinating multiple noncontiguous byte ranges through the Azure Blob File System (ABFS) driver, it can combine nearby ranges into fewer storage requests and execute those requests asynchronously. For data engineers working with selective Parquet queries, this brings the storage read pattern closer to what the query needs: a coordinated set of ranges rather than a collection of independent small reads. When the Parquet reader supports vectored I/O and the runtime includes a compatible ABFS client, Spark workloads that use higher-level APIs can enable this capability through configuration - without rewriting queries, changing application logic, or migrating data. Why selective reads need coordinated I/O Consider a query that selects a few columns from a Parquet dataset and filters out most row groups. The reader can skip much of the data the query doesn't need, but the data it needs may be spread across different parts of the file. Reading each range independently can create many small storage requests. Each request carries network and processing overhead, so selecting less data doesn't necessarily remove the cost of coordinating those reads. Vectored Read lets a compatible reader provide the ranges together, giving the client an opportunity to plan the I/O as a group. How ABFS Vectored Read works A compatible reader submits the file ranges it needs together. ABFS validates and sorts the ranges, combines nearby ranges when appropriate, and divides the resulting work to fit its read buffers. It then queues the storage requests asynchronously and returns the requested bytes to the corresponding range buffers. Illustrative request pattern, not a benchmark. Actual grouping depends on range layout and client configuration; coalesced storage requests can include bytes between the requested ranges. This is a client-side optimization. It does not change the file format or rewrite your stored data. The engine still receives the data for the ranges it requested. What this means for your workloads For compatible selective-read workloads, Vectored Read offers: Less request overhead: Combining nearby ranges can reduce separate storage requests and network round trips. Coordinated I/O: Asynchronous reads allow the client to work on multiple requested ranges without treating every range as an isolated operation. Configuration-based adoption: Compatible Spark workloads using the Hadoop Parquet and ABFS path can use the feature without rewriting their queries. The best starting point is a workload that reads selected portions of Parquet files through abfs:// or abfss://. Full sequential scans may see less benefit, and engines that bypass the Hadoop/ABFS path do not use this capability. Support depends on the Hadoop, hadoop-azure, and parquet-hadoop libraries included in the runtime, not only on the Spark version. See Availability and resources for the minimum versions and verification guidance. The benefit depends on the number, size, and spacing of requested ranges, the coalescing configuration, storage and network latency, concurrency and caching. Combining ranges can reduce requests and round trips, but it can also read additional bytes between noncontiguous requested ranges. Compare query duration, storage transactions, bytes read, and resource utilization against a controlled baseline using representative data and concurrency. Get started First, verify that your runtime contains Apache Hadoop 3.3.5 or later, including the hadoop-azure module, and parquet-hadoop 1.12.3 or later. The presence of an ABFS URI alone does not establish that the optimized implementation is installed. For Spark, enable the Parquet setting before the application starts, using the spark.hadoop. prefix: spark-submit \ --conf spark.hadoop.parquet.hadoop.vectored.io.enabled=true \ <other-options> \ <application> Replace the command placeholders with your normal submission options and application. Set the property explicitly rather than relying on a default, which can vary by packaged Parquet version. For managed services, use the service's supported cluster or session configuration mechanism. Availability and resources Azure Databricks does not currently support ABFS Vectored Read because its runtime ships an ABFS version that does not include this capability. In addition, Photon does not use the ABFS driver for data access, even when a workload uses an abfs:// or abfss:// URI. Therefore, the presence of an ABFS URI alone does not indicate that Vectored Read is available. For other packaged or managed runtimes, verify that the environment includes Apache Hadoop 3.3.5 or later with the hadoop-azure module, and parquet-hadoop 1.12.3 or later. Start with one representative selective-read workload and compare it with your baseline. For background, see the ABFS driver overview.482Views2likes0CommentsEnvironment Variables for Serverless Jobs on Azure Databricks
Anyone who has maintained a production notebook knows the bad pattern: a variable at the top of the notebook deciding whether this run is test or production, switched manually before execution, or worse, an API token pasted directly into the code because "it's just for this one run." That works fine until someone forgets to switch the variable back, or until the notebook with the token leaks into a repository. Environment variables for serverless jobs, still in Beta in Lakeflow Jobs, attack exactly that problem by separating configuration from code. The core idea itself is not new, every mature execution platform has something similar, what is worth understanding is how Azure Databricks specifically designed the scope and precedence of this mechanism. The mechanism: a named entry at the job level, selected explicitly per task An environment variable entry is defined at the job level, not the task level, but each task chooses exactly one entry to use. An entry has a unique key and contains inline variables, a path to a .env file, or both. A task that does not declare an environment_variables_key simply receives no variables at all. The detail that most separates this design from a naive implementation: entries never merge, and one entry does not inherit from another. If two tasks in the same job need nine of the same ten variables plus one that differs, the only option is to duplicate almost the entire entry twice, not compose a base entry with an extension. This is a deliberate choice of simplicity over convenience, likely to avoid the kind of subtle bug that cascading configuration inheritance tends to produce. My take: the lack of inheritance might look like an annoying limitation at first glance, but in practice it avoids an entire class of hard-to-trace bug, "this task is using a value I never explicitly declared for it, where did it come from." In exchange for a bit of repetition in configuration, you get full predictability about exactly what each task actually receives. Hands-on: configuring it through the Jobs API Configuring this through the API makes the link between task and entry explicit. A job with two tasks, each with its own set of variables: { "name": "pipeline-with-environment-variables", "tasks": [ { "task_key": "process_orders", "notebook_task": { "notebook_path": "/Workspace/Shared/process-orders" }, "environment_key": "default", "environment_variables_key": "production" }, { "task_key": "generate_summary", "spark_jar_task": { "main_class_name": "com.company.summary.Main" }, "environment_key": "summary_environment", "environment_variables_key": "summary_vars" } ], "environments": [ { "environment_key": "default", "spec": { "environment_version": "5", "dependencies": [] } }, { "environment_key": "summary_environment", "spec": { "environment_version": "5" } } ], "environment_variables": [ { "environment_variables_key": "production", "spec": { "variables": { "APP_ENV": "production", "REGION": "us-west-2", "SERVICE_TOKEN": "{{secrets/production/service-token}}" }, "files": ["/Volumes/company/default/prod/execution.env"] } }, { "environment_variables_key": "summary_vars", "spec": { "variables": { "APP_ENV": "production", "LOG_LEVEL": "INFO" } } } ] } Notice the SERVICE_TOKEN field: it uses the {{secrets/<scope>/<name>}} syntax to reference a secret that already exists, instead of pasting the value directly into the job configuration. The value is only resolved when the task starts running, using the job's "Run as" identity, and the job configuration stores only the reference, never the resolved value. The .env file has its own format, and it is deliberately strict For variables loaded from a file, the accepted format looks simple on the surface but does not interpret anything beyond the basics: one variable per line in the format KEY=VALUE, no space before the equals sign, no quote interpretation, no escaping, no variable substitution such as ${OTHER_VARIABLE}. If you write APP_ENV="production" with quotes, the quotes become a literal part of the value. # execution.env file APP_ENV=production REGION=us-west-2 GREETING=hello world OPTIONAL_VALUE= When the same variable appears in more than one place, the precedence rule is straightforward: within a single file, the last definition wins; across files, a file listed later overrides an earlier one; and an inline variable always overrides anything coming from a file. This precedence order matters in practice because it is common to have a shared .env file across several jobs, with just one or two job-specific inline variables overriding the default. What this does not solve The list of limitations is short, but each item matters for anyone planning to adopt this at scale. User-defined functions (UDFs) cannot read any environment variable at all, because a UDF runs inside Spark's execution logic, not inside the task process, so configuration that needs to reach a UDF still depends on the older pattern of passing an explicit parameter. Only workspace-level secrets are supported for now, Unity Catalog secrets are still "on the way" with no confirmed date. And the limit of ten environment variable entries per job, twenty inline variables per entry, means a job with very granular configuration needs can hit these ceilings sooner than expected. One caution worth flagging: the documentation is honest about a point that deserves extra attention, secret redaction in logs is "best effort," not a guarantee. If the application code prints the secret value or writes it to a log, the value can appear in plain text in the compute's execution log, even though notebook output shows [REDACTED]. This means replacing a hardcoded credential with an environment variable solves the problem of credentials living in source code, but it does not by itself solve the problem of a credential leaking into logs if the application code is not careful about that separately. Is it worth adopting? Yes, especially for anyone currently maintaining multiple copies of a notebook just to switch one environment setting, or for anyone who has already been caught off guard by a forgotten token sitting inside a notebook cell. The lack of inheritance between entries will feel repetitive at first, but it is a small price for the certainty that every task runs with exactly the configuration you declared for it, nothing more and nothing less. References Microsoft Learn, "Configure environment variables for serverless jobs - Azure Databricks" (https://learn.microsoft.com/en-us/azure/databricks/jobs/environment-variables) Databricks Docs (AWS), "Environment variables" (https://docs.databricks.com/aws/en/jobs/environment-variables) Microsoft Learn, "Secret management - Azure Databricks" (https://learn.microsoft.com/en-us/azure/databricks/security/secrets/)91Views0likes0CommentsSimplify private connectivity for Azure Databricks Serverless with Private Network Gateway
Recently, we announced the public preview of Private Network Gateway (PNG) for Azure Databricks - a simpler way to connect Azure Databricks serverless workloads to resources accessible from your Azure Virtual Network. With a single managed connection into your network, PNG helps reduce connectivity complexity while letting you control which resources serverless workloads can access. In this post, we explain what PNG means for private connectivity and how to get started. PNG brings the serverless experience together with the Azure networking environment and controls organizations already use, helping make serverless practical for a broader set of enterprise workloads. One connection to your network Azure Databricks serverless compute runs in an Azure Databricks managed network. This removes infrastructure management overhead, but private resources still need an explicit network path from serverless compute. Today, connecting serverless compute to resources you manage such as databases, Kafka clusters, and internal APIs could require separate private endpoints, load balancers, and proxy VMs for individual resources. That complexity grows as workloads need to reach more services across virtual networks, peered networks, and on-premises environments. Private Network Gateway introduces a simpler model: one gateway to your network instead of separately creating connectivity infrastructure for each resource. With Private Network Gateway on Azure Databricks, you can: Simplify private data ingestion. Use Lakeflow Connect on serverless compute to ingest from supported databases across your virtual network and connected on-premises environments. Connect AI agents to private services. An agent built on Azure Databricks can call a private MCP server you host. Use private package repositories. Install Python libraries from a private PyPI, Artifactory, or Nexus repository inside your network. Route egress through your existing firewall. Send traffic through your firewall or content inspection service so egress can be filtered and logged using your own tools. Use your own source IP. SaaS applications such as Salesforce can see a source IP belonging to your organization. Getting started is straightforward Private Network Gateway is designed to simplify the setup needed to bring serverless compute into your network. You delegate one subnet in your Azure Virtual Network to Azure Databricks. Private Network Gateway then establishes a managed, encrypted gateway from serverless compute into that subnet. The gateway is configured within a Network Connectivity Configuration (NCC), the account-level object used for Azure Databricks serverless networking. You can attach the NCC to your workspaces, and supported serverless workloads can then reach the private destinations you allow. And because the gateway is managed for you, there are no gateway VMs for you to deploy, patch, or scale in your network. Keep control of your Azure network Simplifying connectivity doesn’t mean giving up control of your network boundary. Private Network Gateway provides a dedicated path into your network rather than a shared appliance carrying other customers’ traffic. The gateway applies workspace-level access controls before traffic leaves, and isolation is enforced through encapsulation and network security rules. Once traffic reaches your subnet, your existing Azure networking controls continue to determine what serverless workloads can reach. This includes your route tables, network security groups, DNS resolvers, and security appliances. You also control how much traffic travels through the gateway: Specific destinations: Send only the fully qualified domain names you specify through Private Network Gateway. Other traffic retains its normal path. All traffic: Route outbound traffic through your network, except traffic matching a more specific Private Link or service-endpoint path. This can be used when you want broader egress inspection through your firewall or want traffic to leave through your own IP addresses. Private Network Gateway is also additive to your existing connectivity architecture. It sits alongside the private connectivity and egress controls you already use and can be enabled or removed without changing the existing setup. Bringing serverless to more of your Azure Databricks workloads Azure Databricks combines Databricks capabilities with native integration across the Azure ecosystem. Private Network Gateway extends that Azure Databricks experience to private networking for serverless workloads. Instead of building connectivity infrastructure for every resource, you can establish one managed gateway from serverless compute to your network and keep using your existing Azure network controls to decide where traffic goes. The result is a simpler approach to connecting serverless workloads to private enterprise resources while keeping the network boundary in your control. Get started today Private network gateway - Azure Databricks | Microsoft Learn Introducing Private Network Gateway | Databricks Blog812Views1like0CommentsACID Transactions on Azure Databricks: What Breaks Without Retry Logic
A warehouse has always guaranteed that updating two tables together either both succeed or both roll back. A lakehouse, historically, has not. Multi-table, multi-statement transactions reaching general availability on Unity Catalog close that gap directly on Delta Lake and Apache Iceberg tables, without a separate transactional system sitting in front of the lake. Transactions on Azure Databricks reached general availability on October 16, 2026. I covered the headline already in a shorter piece. This is the expanded version: both transaction modes in full, the four documented conflict scenarios, a staging-and-validation ETL pattern end to end, JDBC and Python client code with retry logic added on top of what the documentation shows, and the specific limitations worth knowing before a production pipeline leans on this. [INSERT IMAGE HERE using the editor's own Insert Image button, not pasted markup. Upload a diagram showing two tables being updated inside one atomic boundary, with a commit arrow joining both, or a screenshot of a BEGIN ATOMIC block running in the SQL Editor. Suggested alt text: "Two tables updated inside a single atomic transaction boundary on Azure Databricks".] 1. Why this used to need two separate systems Moving money between two accounts and writing an audit row look like three small operations, but a lakehouse without native transactions only gave you ACID guarantees per statement, per table. If the audit insert failed after both balance updates had already landed, nothing rolled the first two back automatically. Teams built custom reconciliation jobs to detect and repair that drift, or they ran the whole workflow on a separate warehouse system and synced results back into the lake afterward, duplicating both the data and the governance policy that protected it. Multi-statement, multi-table transactions remove that second system. The requirement is narrow but firm: every table written to must be a Unity Catalog managed table, Delta Lake or Iceberg, with catalog commits enabled. ALTER TABLE main.default.accounts SET TBLPROPERTIES ('delta.feature.catalogManaged' = 'supported'); My take: that single table property is doing more work than its one line suggests. It is the same catalog commits feature that cross-engine ABAC depends on for external reads, which means a table you enable for transactions is, incidentally, already a step closer to being safely readable from outside Azure Databricks too. Worth enabling deliberately on tables you expect to matter for governance later, not only the ones with an immediate transactional need. 2. Two modes, and two different conflict-detection granularities Non-interactive transactions use a `BEGIN ATOMIC ... END;` block. Azure Databricks commits automatically if every statement succeeds, and rolls back automatically if any statement fails. This mode runs on any SQL warehouse, serverless compute, or a cluster on Databricks Runtime 18.0 and above, and it accepts SQL, PySpark `spark.sql()` calls, and Scala `spark.sql()` calls alike: BEGIN ATOMIC UPDATE accounts SET balance = balance - 100 WHERE id = 1; UPDATE accounts SET balance = balance + 100 WHERE id = 2; INSERT INTO audit_log VALUES (1, 2, 100, current_timestamp()); END; Interactive transactions use `BEGIN TRANSACTION`, followed by an explicit `COMMIT` or `ROLLBACK`, and they only run on a SQL warehouse: BEGIN TRANSACTION; UPDATE accounts SET balance = balance - 100 WHERE id = 1; UPDATE accounts SET balance = balance + 100 WHERE id = 2; INSERT INTO audit_log VALUES (1, 2, 100, current_timestamp()); COMMIT; The two modes are not interchangeable conveniences, they detect conflict at a different granularity. Non-interactive transactions detect conflict at the row level: two transactions touching different rows in the same table do not conflict with each other. Interactive transactions detect conflict at the table level, except for unconditional appends. If your workload has many small transactions running concurrently against a shared table, that difference alone decides whether most of them succeed or most of them fail and retry. 3. Optimistic concurrency, consistent snapshots, and four ways to conflict Neither mode locks a row while a transaction is open. Both use optimistic concurrency: the transaction runs freely, and Azure Databricks checks for conflicting changes only at commit time. If another transaction modified the same data after yours began, your commit fails and the transaction needs to be retried against fresh data. The first read of a table inside a transaction fixes a snapshot, and every later read of that same table inside the same transaction uses that same snapshot, even if another session commits a change to it in between: BEGIN TRANSACTION; SELECT * FROM products WHERE product_id = 1001; -- another session now runs, and commits: -- UPDATE products SET price = 29.99 WHERE product_id = 1001; SELECT * FROM products WHERE product_id = 1001; -- still returns the original price, the snapshot was fixed -- at the first read, not re-taken on the second one COMMIT; Four distinct scenarios can cause a commit to fail: Write-write conflicts: two transactions update or delete the same rows. Write-read conflicts: another transaction modified rows that yours read, on a table your transaction also wrote to. This applies only under Serializable isolation. Phantom read conflicts: another transaction inserted new rows matching a predicate your transaction read. This applies under both WriteSerializable and Serializable isolation. Metadata conflicts: another transaction changed the table's schema or properties mid-transaction. Uncommitted changes inside an interactive transaction are visible only to your own session. A second session querying the same table sees nothing until you run `COMMIT`, which is the isolation guarantee that keeps one session from reading data another session might still roll back. 4. Hands-on: a staging, validate, and merge pattern The pattern that benefits most from this feature is the one almost every ETL pipeline already has informally: land data in staging, check it, then merge it into production only if it passes. Written as one atomic unit, a failed check rolls back the staging load too, instead of leaving half-validated rows sitting in a staging table for the next run to trip over: BEGIN ATOMIC -- Stage today's incoming rows INSERT INTO staging_customers SELECT * FROM external_customers WHERE ingest_date = current_date(); -- Fail the whole batch if any row looks malformed IF (SELECT COUNT(*) FROM staging_customers WHERE ingest_date = current_date() AND email NOT LIKE '%@%') > 0 THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'Malformed email addresses in today''s batch'; END IF; -- Only reached if validation passed MERGE INTO customers AS target USING staging_customers AS source ON target.customer_id = source.customer_id WHEN MATCHED THEN UPDATE SET * WHEN NOT MATCHED THEN INSERT *; END; `SIGNAL` is what makes this work as a hard stop rather than a warning: raising it inside a `BEGIN ATOMIC` block triggers the same automatic rollback as any other statement failure, which means the staging insert from the first step also gets undone, not just the merge that never ran. 5. Error handling you control: SIGNAL, ROLLBACK, and GET DIAGNOSTICS Interactive transactions give you the same decision point without forcing it into a single block. You can insert, inspect the result with an ordinary query, and only then decide whether to commit or discard: BEGIN TRANSACTION; UPDATE inventory SET quantity = quantity - 50 WHERE product_id = 2001; -- inspect before deciding SELECT quantity FROM inventory WHERE product_id = 2001; -- if the number above is negative, discard everything: ROLLBACK; -- otherwise: -- COMMIT; For non-interactive transactions driven by business logic rather than manual inspection, combine `SIGNAL` with `GET DIAGNOSTICS` to retrieve how many rows the most recent statement actually touched, which is useful for asserting that an update affected exactly the rows you expected before letting the transaction proceed: BEGIN ATOMIC DECLARE rows_touched INT; UPDATE inventory SET quantity = quantity - 50 WHERE product_id = 2001; GET DIAGNOSTICS rows_touched = ROW_COUNT; IF rows_touched = 0 THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'Product 2001 not found, nothing to deduct'; END IF; END; 6. Transactions from an external client, with retry logic the docs leave to you JDBC clients opt into interactive transactions by turning off autocommit explicitly: Connection conn = DriverManager.getConnection(jdbcUrl, properties); try { conn.setAutoCommit(false); Statement stmt = conn.createStatement(); stmt.executeUpdate("INSERT INTO orders (order_id, total) VALUES (1001, 500.00)"); stmt.executeUpdate("UPDATE customers SET last_order = CURRENT_DATE() WHERE customer_id = 5001"); conn.commit(); } catch (SQLException e) { conn.rollback(); throw e; } finally { conn.close(); } The Databricks SQL Connector for Python follows the same pattern with `autocommit=False` on the connection: from databricks import sql with sql.connect( server_hostname="dbc-a1b2345c-d6e7.cloud.databricks.com", http_path="sql/1.0/warehouses/abc123def456", access_token="your-access-token", autocommit=False ) as connection: with connection.cursor() as cursor: cursor.execute("INSERT INTO orders (order_id, total) VALUES (1001, 500.00)") cursor.execute("UPDATE customers SET last_order = CURRENT_DATE() WHERE customer_id = 5001") connection.commit() Neither example above retries on conflict, and under optimistic concurrency, a commit failing because another transaction got there first is not an edge case, it is the expected cost of allowing concurrency without locks. A client built on this feature needs retry logic as a first-class concern, not an afterthought: from databricks import sql import time def run_with_retry(connection_factory, statements, max_attempts=3): for attempt in range(1, max_attempts + 1): with connection_factory() as connection: with connection.cursor() as cursor: try: for statement in statements: cursor.execute(statement) connection.commit() return except Exception as exc: connection.rollback() if attempt == max_attempts: raise # Back off before retrying against fresh data, # the conflict was detected at commit time, so the # transaction must be re-run from the start, not resumed. time.sleep(0.5 * attempt) My take: treat that retry wrapper as mandatory infrastructure, not optional polish, for any application code that writes through an interactive transaction under real concurrency. A transaction that silently never retries will look correct in every single-user test and then fail intermittently the day two users actually collide, which is exactly the kind of bug that is hard to reproduce on demand and easy to misdiagnose as something else. 7. What this doesn't solve The scope has real edges that matter before redesigning a pipeline around this feature: DDL operations, `CREATE TABLE`, `ALTER TABLE`, `DROP TABLE`, must run outside any transaction. Metadata operations that enumerate objects, `SHOW TABLES`, `SHOW DATABASES`, `DatabaseMetaData` calls over JDBC, ODBC catalog functions, and queries against system tables, are not supported inside a transaction on any protocol. Time travel cannot be used inside a transaction. A single transaction can read from or write to up to 100 tables combined, and read from up to 100 views, with up to 100 intermediate commits per table. Every transaction rolls back automatically after 48 hours total duration. Interactive transactions additionally roll back after 10 minutes of inactivity, and still require an explicit `ROLLBACK` afterward to clear the session's transaction state if the session itself is still connected. Row-level concurrency for `MERGE` is not available on AWS GovCloud or on single-user clusters, where `MERGE` falls back to table-level concurrency regardless of which transaction mode you use. Reading a non-transactional external source, Parquet, Avro, CSV, JSON, or a federated JDBC table, inside a transaction requires the explicit `allow_nontransactional_read` hint, and that read is not repeatable: concurrent changes to the source during the transaction can produce an inconsistent read. That last point deserves its own code, because the failure mode if you skip the hint is a hard error, not a silent gap: BEGIN TRANSACTION; INSERT INTO transactional_table SELECT col1, col2 FROM external_json_table WITH (allow_nontransactional_read = true); COMMIT; 8. My perspective on this The detail I keep coming back to is that non-interactive and interactive transactions are not two ways to write the same thing, they are two different concurrency models wearing similar syntax. Row-level conflict detection under `BEGIN ATOMIC` and table-level detection under `BEGIN TRANSACTION` will behave identically in a demo with one writer and completely differently under real concurrent load. Picking between them by which syntax feels more familiar, rather than by which conflict granularity the workload actually needs, is the single most likely way to end up confused about why a transaction "randomly" fails in production when it never failed in testing. I would also flag the metadata-conflict scenario as the one most teams forget to test for. Write-write and phantom-read conflicts are intuitive, two things touching the same data. A schema change landing mid-transaction and invalidating an in-flight commit is a rarer trigger, but it is exactly the kind of event a migration or a parallel DDL job can cause without anyone connecting it to a transaction failing somewhere else at the same time. And the 10-minute idle timeout on interactive transactions is worth building defensively around rather than discovering in an incident: any interactive session that pauses for user input, a manual approval step, a human reading a validation result before deciding whether to commit, needs either a much shorter human-review window than 10 minutes or a design that does not leave a transaction open while waiting on that human at all. Conclusion Multi-table, multi-statement transactions do not make Azure Databricks a warehouse, they remove the specific reason a workload needed a separate warehouse system just to get atomicity across two related writes. The two modes, the four conflict scenarios, and the retry logic a real client needs to add on top of the SDK examples are the parts most likely to matter the first time this runs under genuine concurrency rather than in an isolated test. Build the retry path in from the start, choose the transaction mode based on the conflict granularity your workload actually needs, and treat the limitations list as a design constraint, not fine print to revisit only after something breaks. Official references Microsoft Learn, "Transactions - Azure Databricks" (learn.microsoft.com/en-us/azure/databricks/transactions/) Microsoft Learn, "Transaction modes - Azure Databricks" (learn.microsoft.com/en-us/azure/databricks/transactions/transaction-modes) Microsoft Learn, "Tutorial: Coordinate transactions across tables - Azure Databricks" (learn.microsoft.com/en-us/azure/databricks/transactions/tutorial) Microsoft Learn, "Catalog commits - Azure Databricks" (learn.microsoft.com/en-us/azure/databricks/tables/features/catalog-commits) Microsoft Learn, "Isolation levels and write conflicts - Azure Databricks" (learn.microsoft.com/en-us/azure/databricks/optimizations/isolation/) Microsoft Learn, "Row-level concurrency - Azure Databricks" (learn.microsoft.com/en-us/azure/databricks/optimizations/isolation/row-level-concurrency)148Views0likes0CommentsCross-Engine ABAC on Azure Databricks: Governing External Spark Reads
Unity Catalog's row filters, column masks, and ABAC policies have always assumed the query comes from inside Azure Databricks. Cross-engine ABAC removes that assumption, and it does it by routing the external engine's read through a Databricks-managed enforcement layer rather than by trusting the external engine to respect the policy on its own. On October 1, 2026, cross-engine attribute-based access controls (ABAC) reached general availability on Azure Databricks. I covered the headline in a shorter post already. This article goes a layer deeper: the exact requirements, the Spark configuration for both Delta and Iceberg, the one concurrency caveat worth testing before you trust this in production, and how to watch what it costs. [INSERT IMAGE HERE using the editor's own Insert Image button, not pasted markup. Upload a screenshot of the Unity Catalog metastore Details tab with the "External data access" toggle visible, or a diagram showing an external Spark client, the Azure Databricks serverless enforcement layer, and the underlying Delta/Iceberg table. Suggested alt text: "External Spark client querying a Unity Catalog managed table through the Azure Databricks serverless ABAC enforcement layer".] 1. Why ABAC used to stop at the Databricks engine door Every previous expansion of Unity Catalog's ABAC surface, metastore-wide policies, identity attributes from Microsoft Entra ID, context attributes that distinguish an agent from a person, explicit DENY, policies on views, shared one assumption: the engine reading the data is Azure Databricks itself. That assumption holds for most workspaces, but it breaks down the moment a genuinely multi-engine estate has an external Apache Spark job, a Flink pipeline, or a BI tool reading the same Unity Catalog managed table directly. Before cross-engine ABAC, the only way to protect that external read was to duplicate the policy logic inside the external engine itself, or to accept that the external path saw unfiltered data. Neither option scales once the policy changes on one side and someone forgets to mirror it on the other. 2. The mechanism: a serverless layer sits between the external engine and the table Cross-engine ABAC does not ask the external engine to evaluate the policy. Instead, when an external engine queries a table with an ABAC policy, a row filter, or a column mask attached, Azure Databricks routes the read through a specialized serverless compute layer. That layer evaluates the policy, filters and masks the data server-side, and only then returns the sanitized result to the external engine. The external engine never sees the unfiltered rows, and it does not need to know the policy exists. This is deliberately narrow in scope today: the only supported external engine is Apache Spark, reading either Delta tables through the Unity REST API or Iceberg tables through the Unity Catalog Iceberg REST endpoint. 3. Turning it on: metastore access, grants, and catalog commits Four things have to be true before an external Spark job can read a single filtered row. Enable external data access on the metastore This is disabled by default, on purpose, to prevent unauthorized external access. A metastore admin has to turn it on explicitly, and the option only appears for sufficiently privileged users: In a workspace attached to the metastore, open Catalog. Click the gear icon at the top of the Catalog pane and select Metastore. On the Details tab, enable External data access. Grant EXTERNAL USE SCHEMA explicitly This privilege is intentionally excluded from ALL PRIVILEGES, and a schema owner does not have it by default, both specifically to prevent accidental data exfiltration through an external path nobody was watching. Only the parent catalog owner can grant it, and it must always be granted explicitly: GRANT EXTERNAL USE SCHEMA ON SCHEMA catalog_name.schema_name TO `email address removed for privacy reasons` The querying principal also needs the ordinary SELECT on the table, USE CATALOG on its parent catalog, and USE SCHEMA on its parent schema, exactly as it would for an internal read. If the workload creates external tables rather than only reading managed ones, it additionally needs CREATE TABLE on the schema and both CREATE EXTERNAL TABLE and EXTERNAL USE LOCATION on the target external location, and EXTERNAL USE LOCATION carries the same explicit-grant-only rule as EXTERNAL USE SCHEMA: GRANT EXTERNAL USE LOCATION ON EXTERNAL LOCATION external_location_name TO `email address removed for privacy reasons` Enable catalog commits on the table Fine-grained enforcement for external reads only works against a managed table with catalog commits enabled, which requires Databricks Runtime 16.4 or above for a brand-new table, or Databricks Runtime 18.0 or above to turn it on for a table that already exists. Creating a new table with catalog commits enabled from the start: CREATE TABLE catalog_name.schema_name.table_name (id INT, name STRING) USING delta TBLPROPERTIES ('delta.feature.catalogManaged' = 'supported'); Upgrading a table that already exists: ALTER TABLE catalog_name.schema_name.table_name SET TBLPROPERTIES ('delta.feature.catalogManaged' = 'supported'); Only after this step can you attach an ABAC policy, a row filter, or a column mask to the table and expect an external Spark read to respect it. 4. Connecting Apache Spark: Delta and Iceberg take different configuration The two paths share the same authorization model but need different Spark packages and session configuration, so keep them separate rather than guessing at a hybrid. Delta tables, via the Unity REST API This path needs Delta-Spark 4.1 or above and Unity Catalog Spark connector 0.4 or above. Using OAuth machine-to-machine authentication, which handles credential and token renewal automatically and is the right choice for a long-running job: "spark.sql.extensions": "io.delta.sql.DeltaSparkSessionExtension", "spark.sql.catalog.spark_catalog": "org.apache.spark.sql.delta.catalog.DeltaCatalog", "spark.sql.catalog.uc_catalog": "io.unitycatalog.spark.UCSingleCatalog", "spark.sql.catalog.uc_catalog.uri": "https://adb-1234567890123456.12.azuredatabricks.net", "spark.sql.catalog.uc_catalog.auth.type": "oauth", "spark.sql.catalog.uc_catalog.auth.oauth.uri": "https://adb-1234567890123456.12.azuredatabricks.net/oidc/v1/token", "spark.sql.catalog.uc_catalog.auth.oauth.clientId": "<oauth-client-id>", "spark.sql.catalog.uc_catalog.auth.oauth.clientSecret": "<oauth-client-secret>", "spark.sql.catalog.uc_catalog.ServerSidePlanning.enabled": "true", "spark.sql.defaultCatalog": "uc_catalog", "spark.jars.packages": "io.delta:delta-spark_2.13:4.1.0,io.delta:delta-iceberg_2.13:4.1.0,io.unitycatalog:unitycatalog-spark_2.13:0.4.0,org.apache.hadoop:hadoop-azure:3.4.2" Setting ServerSidePlanning.enabled to true is not optional decoration, it is the specific switch that routes the read through the enforcement layer instead of letting Spark plan the scan on its own. Miss that one line and the external job will read the table, just without any of the row filters or column masks applied. Iceberg tables, via the Unity Catalog Iceberg REST endpoint This path needs Iceberg-Spark 1.11 or above and Apache Spark 4.0 or above: "spark.sql.extensions": "org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions", "spark.sql.catalog.uc_catalog": "org.apache.iceberg.spark.SparkCatalog", "spark.sql.catalog.uc_catalog.type": "rest", "spark.sql.catalog.uc_catalog.uri": "https://adb-1234567890123456.12.azuredatabricks.net/api/2.1/unity-catalog/iceberg-rest/", "spark.sql.catalog.uc_catalog.credential": "<oauth-client-id>:<oauth-client-secret>", "spark.sql.catalog.uc_catalog.oauth2-server-uri": "https://adb-1234567890123456.12.azuredatabricks.net/oidc/v1/token", "spark.sql.catalog.uc_catalog.warehouse": "uc_catalog", "spark.sql.catalog.uc_catalog.cache-enabled": "false", "spark.sql.defaultCatalog": "uc_catalog" Once either configuration is in place, the query itself is ordinary Spark SQL, the enforcement is invisible from the client side: SELECT * FROM uc_catalog.schema_name.table_name; 5. What actually gets enforced, and where the hard edges are ABAC policies, standalone row filters, and column masks are all enforced on the external read, dynamically, the same way they would be for a query running inside Azure Databricks. That is the entire value proposition. But the current scope has real edges, not just minor rough patches: Only reads are supported from an external engine under fine-grained access control. To write, the writing principal must be exempted from the ABAC policy entirely, there is no write-path enforcement yet. Dynamic views are not supported. Projecting a VARIANT column is not supported. Filtering on a BINARY column is not supported. A column-masking function whose return type differs from the original column's type is not supported. Large aggregations can see real performance degradation, since every row still passes through the serverless enforcement layer before it reaches the external engine. And one warning from the documentation is worth repeating verbatim rather than paraphrasing away its force: concurrent writes during query planning can cause the same table to be read from different table snapshots within a single self-join or multi-scan query, which can produce incorrect results. If your external workload runs a self-join or anything that scans the same table more than once inside one query, and the table sees concurrent writes, test that specific pattern under write load before trusting its output in production. This is not a theoretical edge case, it is a named, documented failure mode. 6. Watching what it costs The enforcement layer is serverless compute, and Azure Databricks charges for it under its own billing line, separate from ordinary warehouse or job compute. Anyone with access to the billing system table can see exactly how much a given user's external reads are costing, broken down by SKU and by the identity that ran the query: SELECT usage_date, sku_name, identity_metadata.run_as, SUM(usage_quantity) AS dbus_consumed_by_cross_engine_abac FROM system.billing.usage WHERE usage_date BETWEEN '2026-06-01' AND '2026-07-01' AND billing_origin_product = 'EXTERNAL_COMPATIBILITY' GROUP BY 1, 2, 3 ORDER BY 1; If an external Spark job reading a heavily policy-protected table runs more often than its consumers actually need fresh data, that EXTERNAL_COMPATIBILITY line is where the cost of that habit shows up first, not in the external engine's own compute bill. 7. My perspective on this Every ABAC expansion I have covered before this one assumed the reader was inside the platform. This is the first one that assumes the opposite, and the caution in the scope reflects that: read-only, one external engine, a documented snapshot-consistency warning stated plainly rather than buried. That restraint is the right call for a first general-availability release of a capability whose entire failure mode is "the external engine saw data it should not have seen." The detail I would not skip past is ServerSidePlanning.enabled. It is one line in a long configuration block, easy to leave out by copying an older Delta-Spark config that predates this feature, and leaving it out does not produce an error, it produces an unfiltered read that looks identical to a correctly filtered one until someone notices the wrong person saw the wrong row. Treat that flag as a required field, not an optional tuning parameter, and verify it is present in code review for any external Spark job that touches a governed table. I would also budget real test time for the concurrency warning before this goes anywhere near a production pipeline that both writes to and externally reads from the same table. A silent correctness bug that only appears under concurrent writes during self-joins is exactly the kind of failure that passes every test run in a quiet environment and then shows up the first time two jobs actually overlap in production. Conclusion Cross-engine ABAC does not ask external Spark to respect your governance policy, it makes respecting that policy the external engine's only option, by interposing a serverless enforcement layer it cannot see around. The setup cost is real: a metastore-level toggle only an admin can flip, an explicit grant that intentionally does not come bundled with broader privileges, and a table property that most existing managed tables do not have yet. For a genuinely multi-engine estate, that cost is still far lower than the alternative, which was duplicating policy logic in every external engine and hoping nobody let the two copies drift apart. Official references Microsoft Learn, "Cross-engine attribute-based access controls (ABAC) - Azure Databricks" (learn.microsoft.com/en-us/azure/databricks/external-access/cross-engine-abac) Microsoft Learn, "Access Databricks tables from Delta clients - Azure Databricks" (learn.microsoft.com/en-us/azure/databricks/external-access/unity-rest) Microsoft Learn, "Enable external data access to Unity Catalog - Azure Databricks" (learn.microsoft.com/en-us/azure/databricks/external-access/admin) Microsoft Learn, "Catalog commits - Azure Databricks" (learn.microsoft.com/en-us/azure/databricks/tables/features/catalog-commits) Microsoft Learn, "Row filters and column masks - Azure Databricks" (learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/filters-and-masks/) Microsoft Learn, "Authorize service principal access to Azure Databricks with OAuth" (learn.microsoft.com/en-us/azure/databricks/dev-tools/auth/oauth-m2m)246Views0likes0Comments