Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create and set a variable in azure data factory v2

How do I set an variable of type array of strings in ADF v2 so that I can iterate over each element? Each element represents a database name?

The 'Set Variable' activity has a dropdown but displays 'no results found'?

screen shot Many thanks,

like image 506
James Avatar asked Nov 18 '19 22:11

James


People also ask

How do you use parameters in Azure data Factory V2?

To add parameters to your data flow, click on the blank portion of the data flow canvas to see the general properties. In the settings pane, you will see a tab called Parameter. Select New to generate a new parameter. For each parameter, you must assign a name, select a type, and optionally set a default value.

What is difference between Azure data Factory v1 and V2?

Let's compare Azure Data Factory Version 1 and Version 2 at a high level. ADFv1 – is a service designed for the batch data processing of time series data. ADFv2 – is a very general-purpose hybrid data integration service with very flexible execution patterns.


1 Answers

from the official doc:

Use the Set Variable activity to set the value of an existing variable of type String, Bool, or Array defined in a Data Factory pipeline.

https://learn.microsoft.com/en-us/azure/data-factory/control-flow-set-variable-activity

You'll need to use the pipelines Variable first:

enter image description here

You can also find a good tutorial in here: https://www.mssqltips.com/sqlservertip/6136/azure-data-factory-pipeline-variables/

like image 96
Thiago Custodio Avatar answered Oct 23 '22 21:10

Thiago Custodio