How to run Python Scripts on ADF with input from Storage account.

RaiArveen 46 Reputation points
2021-12-21T01:38:18.9+00:00

Is it possible to run python script in ADF where input is text files from storage account and output to Azure SQL Database?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,623 questions
0 comments No comments
{count} vote

Accepted answer
  1. ShaikMaheer-MSFT 38,546 Reputation points Microsoft Employee Moderator
    2021-12-24T17:04:54.553+00:00

    Hi @RaiArveen ,

    If I understand your ask correctly, you want run a python code which takes file from storage account loads that data to Azure SQL Database. If yes, below is the answer. If no, please help me with understating of your ask better with detailed example may be.

    Step1: Create a python code locally which copies input file from storage account and loads it to Azure SQL database.
    Step2: Test the python code locally. Save python code as .py file
    Step3: Upload .py file to Azure Storage account.
    Step4: Use Custom activity, which in turn uses Azure batch services to take the python code from .py file on storage and run it.

    Click here to know step by step approach of doing same.

    Hope this will help. Please let us know if any further queries.

    -------------

    Please consider hitting Accept Answer. Accepted answers helps community as well.

    5 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.