Variables and Parameters in Azure Data Factory?

Ruben Maldonado picture Ruben Maldonado · Nov 13, 2018 · Viewed 10k times · Source

Im just learning ADF, can you explain to me the difference between Variables and Parameters? I cant find a good explanation about it.

Answer

Nicolas Zhang picture Nicolas Zhang · Nov 14, 2018

Parameters are something that can be set to model (dataset, pipeline, etc) at runtime. Without parameters, you model is fixed, for example, without parameters you can only write query like "select * from order where timestamp > '11/01/2018'" in dataset, with parameter 'TS' you can write query like "select * from order where timestamp > '@dataset.TS'" so that your activity run will query and copy data in different time window.

Variables are something that contain real value at runtime and can be assigned to those parameters in app model(dataset, pipeline, etc) to get real things done.

Here are some examples:

https://docs.microsoft.com/en-us/azure/data-factory/control-flow-expression-language-functions#examples