An Azure Data Factory to Databricks migration rarely comes down to moving a few notebook schedules. ADF may also be handling source connections, trigger logic, parameter values, retries and data movement before Databricks ever starts processing anything.That is why the first question should be: what is ADF actually doing today? Once each activity has a purpose attached to it, it becomes much easier to decide what belongs in Lakeflow Jobs and what still needs ADF or another service.

Databricks Workflows vs Azure Data Factory: Key Differences

Azure Data Factory is built around data integration across systems. It can copy data, connect to private sources through integration runtimes and coordinate activities that sit outside Databricks.Lakeflow Jobs, which provides Databricks workflow orchestration, is centered on work running in the Databricks environment. It can sequence notebooks, Python tasks, SQL work, conditionals, retries and dependencies. That difference sounds small until an existing ADF flow reaches beyond Databricks. ADF might pull records from an on-premises SQL Server, land them in Azure storage and only then start a notebook. The notebook can move into Lakeflow Jobs fairly easily. The private connection used for extraction cannot simply follow it. A migration plan therefore needs to separate orchestration from ingestion instead of treating the ADF pipeline as one object.

Common Azure Data Factory to Databricks Migration Challenges

Several ADF migration challenges come from details that are easy to miss on the pipeline canvas. Trigger metadata, linked services, expressions and credentials can influence execution even though they are not part of the notebook code. Those are the areas worth checking first.

ADF Copy Activities and Integration Runtimes During Migration

A Copy activity can look like a simple step between two boxes in ADF, yet the connection behind it may depend on a self-hosted integration runtime. That runtime gives ADF access to systems inside a private network. If a source such as SQL Server sits behind that connection, moving ingestion into Databricks without replacing the network path will break the flow before transformation even starts. Go into Manage > Integration runtimes in ADF Studio and identify which activities depend on each runtime. Then inspect their linked services, authentication method, source endpoint and destination. If Databricks will take over the ingestion step, test that path separately. The workspace must be able to reach the source and authenticate with the required credentials. A notebook succeeding after files have already landed does not prove that Databricks can perform the extraction itself. The same principle applies when reviewing Databricks setup on AWS and Azure: networking and storage access need to be validated independently from notebook logic.

ADF Parameter Mapping in Lakeflow Jobs

Once the data arrives, parameter handling becomes the next place to look. ADF pipelines often pass dates, table names, folders or environment values into Databricks notebooks through base Parameters. Lakeflow Jobs also supports parameters, but ADF expressions do not carry over automatically. Take a daily load that processes yesterday’s partition. The notebook itself might still work after migration, yet a different default value could make it process today’s data instead. Nothing has to crash for the result to be wrong. Check the ADF Parameters tab and any dynamic expressions used in notebook activities. Map those values to job or task parameters in Databricks, then confirm what arrives through dbutils. widgets. get().For values created by an earlier task, Lakeflow Jobs can use task values and dynamic references such as {{tasks.lookup.values.process_date}}. The important part is verifying that the upstream task creates the value expected by the downstream one.

Migrating ADF ForEach Loops to Databricks

Metadata-driven ADF pipelines often use a Lookup activity followed by ForEach. One pipeline can then loop through a list of tables and apply the same processing pattern to each of them. Lakeflow Jobs has a For each task too, so this can appear like a direct replacement at first. The structure is different, though. A For each task runs one nested task per iteration and another For each task cannot sit directly inside it. That becomes relevant when each table needs several dependent steps. Suppose every table must be staged, transformed and validated. Instead of recreating the ADF nesting exactly, the inner task can call another job that contains those steps in sequence. Start with a small input array and follow one item through the full path. Once the parameters and dependencies behave as expected, increase concurrency. This avoids debugging several parallel iterations at the same time.

Migrating ADF Triggers and Scheduling Logic

Scheduling causes a different set of problems because ADF triggers can carry information that downstream activities use. A tumbling-window trigger, for example, exposes values such as windowStartTime and windowEndTime. Incremental loads may rely on those boundaries to decide which records belong in that execution. A normal Lakeflow schedule does not create those ADF values for you. If the old process uses them, pass the required date or timestamp range into the Databricks job explicitly. Historical reprocessing also needs a separate test because backfill behavior is part of the processing logic, not just the schedule. File-arrival triggers deserve the same attention. Databricks can trigger jobs when new files arrive in supported Unity Catalog locations, but replacing an existing file under the same name does not count as a new arrival. A source process that continually overwrites latest.csv would therefore behave differently after the move.

Databricks Run As Permissions After ADF Migration

Permissions are another source of migration surprises because testing often happens under an engineer’s own account. ADF may currently connect to Databricks with configured credentials, while Lakeflow Jobs executes under its Run as identity. That identity controls access to notebooks, Unity Catalog objects and storage. A notebook can work perfectly during interactive testing and still hit an access error when the scheduled job starts. Open the job configuration and look at Run as. Test with the same service principal that will execute the production job. Check its catalog, schema, table, volume, source-code and storage access where relevant. This step should happen before cutover. Otherwise, an Azure Data Factory to Databricks migration can look like a code failure even though the notebook itself is unchanged.

Retry and Concurrency Settings in Lakeflow Jobs

Retry settings deserve more attention than they usually get during migration. ADF has its own retry and dependency controls, while Lakeflow Jobs uses task retries, Run if conditions and job concurrency settings. The risk appears when a task writes data and then stops before finishing the rest of its work. If the retry starts from the beginning, the same records may be written again. The right fix depends on the destination and write pattern. For a suitable Delta use case, an idempotent MERGE based on a stable key may prevent repeated inserts, provided the source itself has been handled correctly. Also inspect concurrent-run settings and queue behavior. Two executions aimed at the same partition can interfere with each other during backfills or delayed schedules. Before enabling automatic retries in production, interrupt a test execution after a write and see what the next attempt does to the target.

Monitoring Databricks Jobs After Leaving ADF Monitor

Operational habits change after orchestration moves as well.ADF users are used to opening Monitor and following pipeline and activity history. In Databricks, the equivalent investigation starts under Jobs & Pipelines > Runs. From there, the execution timeline shows task status and where time was spent. That timeline helps separate waiting from actual processing. A long execution may have spent several minutes waiting for resources or installing libraries before the notebook began. For Spark-heavy work on classic compute, the Spark UI gives another layer of detail. Task duration, shuffle read and write and disk spill can point to processing bottlenecks that have nothing to do with the scheduler. Those measurements are also useful when reviewing Databricks cost optimization. Moving orchestration into Databricks does not automatically reduce cost if startup time or inefficient processing still dominates the execution.

Azure Data Factory to Databricks Migration Example

Consider an illustrative setup where ADF extracts sales data from an on-premises SQL Server through a self-hosted integration runtime. After landing the files in Azure storage, it passes business_date into a Databricks notebook. A second notebook updates reporting tables when the first one finishes. During the Azure Data Factory to Databricks migration, the two notebooks are good candidates for Lakeflow Jobs. They can sit in one job with a dependency between them and business_date can become a job parameter. The extraction step does not have to move at the same time. ADF can keep handling the private connection and start the Databricks job once ingestion finishes. This gives the team a smaller migration boundary to test. They can compare the processing date, row counts, output partitions and reporting tables before changing the ingestion path.

Databricks Migration Best Practices for Migrating ETL Pipelines

When teams migrate ETL pipelines, problems are easier to isolate if they move one responsibility at a time. These Databricks migration best practices keep the cutover focused on observable behavior:

  1. Map the existing ADF flow first. Record triggers, parameters, linked services, retries, destinations and dependencies that sit outside Databricks.
  2. Pick a notebook-heavy pilot. A flow with known inputs and outputs gives you a useful baseline without introducing private-network changes on day one.
  3. Rebuild the execution path deliberately. Match parameter values, task order, conditional logic and recovery behavior to the current process.
  4. Keep deployment configuration in version control. Declarative Automation Bundles can help keep job definitions consistent across environments.
  5. Test bad paths as well as successful ones. Try interrupted writes, retries, delayed data and historical processing before production cutover.
  6. Hand over scheduling once. Do not leave ADF and Databricks starting the same load at the same time.

Conclusion

An Azure Data Factory to Databricks migration goes more smoothly when the existing ADF flow is broken into its actual responsibilities first. Ingestion, parameter handling, scheduling, permissions, retries and monitoring all need separate validation.Once those pieces are understood, moving Databricks-native execution into Lakeflow Jobs becomes a much smaller problem. For environments with private connectivity or a large number of ADF dependencies, Databricks migration services can support dependency assessment, orchestration redesign and cutover testing.