How to get the source/sink output stream name / dataset name in a data flow in data factory from programetic way ( JAVA/Python/Powershell/Cli)

Sateesh Battu 41 Reputation points
2022-04-26T15:19:04.62+00:00

In a pipeline, data flow has source and sink.

My requirement is to get the data set that is used in source and sink . I need this in JAVA SDK but python/powershell/az cli is also fine.

The box highlighted in blue details need to fetch from command line. Either of the pipeline-run by factory on pipeline show commands are not helpful to get the data flow source and sink details .

196626-mssupport.png

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,602 questions
0 comments No comments
{count} votes

Accepted answer
  1. MartinJaffer-MSFT 26,031 Reputation points
    2022-04-27T19:45:19.443+00:00

    Hello @Sateesh Battu and welcome to Microsoft Q&A.

    It sounds like you want to retrieve the output stream/dataset from a given run or definition?
    Since the stream is defined in the Data Flow definition, and the Dataset defined in the pipeline definition, these are not dynamic values. This confuses me as to what your end goal is. By knowing which Data Flow or Pipeline was used, you know which Dataset was used. Also, knowing the stream name doesn't yield any actionable details. It isn't like you could hook up another service to the output stream.

    But if you really wanted to, I suppose first you would take the pipeline run id, and get the run details. From that you get the pipeline name. With the pipeline name you fetch the pipeline definition. Inside the pipeline definition find the relevant copy activity. Under that it is outputs[0].referenceName

    For the dataflow, once located in the pipeline definition, get the Data flow name under typeProperties.dataflow.referenceName. With this name fetch the data flow definition. There look under properties.typeProperties.sinks[x].name

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful