Reputation: 468
I would like to chain 2 Azure Data Factory pipelines A -> B so that the pipeline B consumes the output of the Pipe line A. So, basically A is a authorization pipeline that has few activities, the last of which produces the authentication token. Now that token I want use in the Pipeline B (and C, and D.. etc...). So, basically I want to reuse pipe line A. I used Execute Pipleline activity but, its output is NOT what I expect .. How can use the actual output of A in B ?
Upvotes: 1
Views: 182
Reputation: 468
So, I figured out how to solve this, for my case at least. Since, I am dealing with (in the particular case) with the authentication token, I made use of the Azure Key Vault. Where, in the last activity of a pipe line A I POST the acquired token to the Azure key vault as a named secret. In the pipeline B - what I do is I call 'execute Pipeline' activity - executing pipe line A. After that on completion, calling the web activity to read the token acquired in 'A'. And as a next activity in "B" I am using that token in API.
Upvotes: 1
Reputation: 83
Create Pipeline B
Click on Parameters Add a parameter value ->inputfromA and give Default value as blank Create a variable fromA and in the value,click on add dynamic content->@pipeline().parameters.inputfromA
Create Pipeline A
Store the value of authorization token in some variable Add a execute pipeline and on InvokedPipeline->add pipelineB Then it will ask to input the value of inputfromA ->click add dynamic content and then you can add the token value there.
Upvotes: 1