Python in ADF: How to choose the best approach?

ellishar 10 Reputation points
2023-03-03T11:26:37.73+00:00

I have a simple python script that does some data processing that I want to run from within an ADF pipeline. I can see that there are multiple ways to do this:

  • Azure Function
  • Azure Batch Pool
  • Databricks
  • Python runbook

I am starting from scratch as we do not currently have any batch pools or Azure functions set up, and are not using Databricks. I am struggling to determine which is the best approach for my usecase. Is there somewhere I can find a list of pros and cons for each method to help decide?

(Current usecase is simple data manipulation using Pandas; will be reading/writing to Azure SQL databases; doesn't require a large compute resource; will only be run intermittently; needs to be called from an ADF pipeline).

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,323 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,185 questions
Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
307 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,640 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,431 Reputation points
    2023-03-06T14:02:06.6433333+00:00

    @ellishar

    Thanks for reaching out to Q&A.

    All four services can be called from Azure ADF pipeline and they have the ability to run python script. I would suggest that you choose between Azure functions and python runbook as they are cost effective when compared to Databricks and Batch. Azure functions serverless tier can scale automatically and doesnt cost much for the load you will experience, moreover SQL integration would be simple with Functions and python runbook.

    So you can choose between Azure Functions and runbook.

    0 comments No comments