@cathrinew | cathrinew.net
Session Abstract
@cathrinew
cathrinew.net
You are an
Azure Data Factory
developer
Building Dynamic Data Pipelines in Azure Data Factory (Microsoft Ignite 2019)
This is getting
pretty tedious…
There has to be
a better way!
Dynamic
Solutions
Why would you use dynamic solutions?
How dynamic should the solution be?
How dynamic should the solution be?
What can make a solution dynamic?
Parameters and Variables:
Pass input values and set or update values during runtime
Expressions and Functions:
Modify the content of values during runtime
Loops and Lookups:
Control logic and executions based on external configuration values
Parameters
and Variables
What are Parameters?
How are Parameters passed?
trigger pipeline dataset
user
activity linked service
pipeline
Parameters
@pipeline().parameters.
@dataset().
@linkedService().
ParameterName
ParameterName
ParameterName
Parameters
@pipeline().parameters.
@dataset().
@linkedService().
ParameterName
ParameterName
ParameterName
Parameters
@pipeline().parameters.
@pipeline().DataFactory
@pipeline().TriggerTime
ParameterName
and System Variables
What are Variables?
How are variables controlled?
Set Variable Append Variable
Variables
@variables('VariableName')
@first(variables('VariableName'))
@last(variables('VariableName'))
Variables
@variables('VariableName')
@first(variables('VariableName'))
@last(variables('VariableName'))
Expressions
and Functions
What are Expressions?
the @ symbol
"@toUpper(pipeline().parameters.FileName)"
"COLORS.CSV"
What are Functions?
String:
Date:
Collection:
Logical:
Conversion:
Math:
concat, substring, startswith, endswith …
adddays, addhours, formatDateTime …
co s, f s , s , g h …
f, , o , qu s, ss, g …
createArray, y, jso , xm , …
add, sub, mul, v, m , m x, mo , …
Combining Strings
How to combine strings?
@concat()
@{…}
What is String Concatenation?
@concat(
' TRUNCATE TABLE dbo. ',
pipeline().parameters.TableName
)
What is String Interpolation?
TRUNCATE TABLE dbo.
@{pipeline().parameters.TableName}
DEMO
Let's add some
parameters!
Loops
ForEach Loop Input
@item()
Array Items
Array Items
Array Items
colors
@item()
Array Items
o ch
o ch
o y
o y
o y
o y
o y
o y
@item()
parts
@item()
colors
@item()
sets
Object Items
Object Items
Object Items
{ "Name": "colors", "Extension": "csv" }
@item()
Object Items
{ "Name": "colors", "Extension": "csv" }
@item().Name
Object Items
o ch
o ch
o y
o y
o y
o y
o y
o y
@item().Name
parts
@item().Name
colors
@item().Name
sets
DEMO
Let's add a loop!
Lookups
Lookup
Lookup Output
Lookup Output
Lookup Output: First Row Only
{
"Name" : "colors",
"Extension" : "csv"
}
@{activity('Lookup')
.output.firstRow}
Lookup Output: First Row Only
{
"Name" : "colors",
"Extension" : "csv"
}
@{activity('Lookup')
.output.firstRow
.Name}
Lookup Output: All Rows
@{activity('Lookup')
.output.value}
[
{
"Name" : "parts",
"Extension" : "csv"
},
{
"Name" : "sets",
"Extension" : "csv"
}
]
Lookup Output
First Row Only:
Use to pass single values to another activity
@{activity('Lookup').output.firstRow.ColumnName}
All Rows:
Use to pass entire collection to another activity
@{activity('Lookup').output.value}
DEMO
Let's add a lookup!
How do you make dynamic solutions?
1.
2. with parameters
3. solution in a loop
4. from configuration table
Good luck!
@cathrinew
cathrinew.net
hi@cathrinew.net
thank you!
Building Dynamic Data Pipelines in Azure Data Factory (Microsoft Ignite 2019)

More Related Content

PPTX
Databricks Fundamentals
PDF
Data Engineering Basics
PDF
Building Dynamic Pipelines in Azure Data Factory (SQLSaturday Oslo)
PDF
Building Dynamic Pipelines in Azure Data Factory (Data Saturday Holland)
PDF
Pipelines and Data Flows: Introduction to Data Integration in Azure Synapse A...
PPTX
[DSC Europe 22] Lakehouse architecture with Delta Lake and Databricks - Draga...
PDF
Building Lakehouses on Delta Lake with SQL Analytics Primer
PDF
Azure Data Factory v2
Databricks Fundamentals
Data Engineering Basics
Building Dynamic Pipelines in Azure Data Factory (SQLSaturday Oslo)
Building Dynamic Pipelines in Azure Data Factory (Data Saturday Holland)
Pipelines and Data Flows: Introduction to Data Integration in Azure Synapse A...
[DSC Europe 22] Lakehouse architecture with Delta Lake and Databricks - Draga...
Building Lakehouses on Delta Lake with SQL Analytics Primer
Azure Data Factory v2

What's hot (20)

PPTX
Azure Data Factory ETL Patterns in the Cloud
PDF
Data platform architecture
PDF
DataOps: An Agile Method for Data-Driven Organizations
PDF
Pipelines and Packages: Introduction to Azure Data Factory (DATA:Scotland 2019)
PPTX
DW Migration Webinar-March 2022.pptx
PPTX
Databricks Platform.pptx
PPTX
Building Modern Data Platform with Microsoft Azure
PDF
Modern Data Flow
PPTX
Azure Data Factory for Azure Data Week
PDF
Putting the Ops in DataOps: Orchestrate the Flow of Data Across Data Pipelines
PDF
Creating your Center of Excellence (CoE) for data driven use cases
PDF
Data Warehouse or Data Lake, Which Do I Choose?
PDF
Azure App Modernization
PDF
Pipelines and Data Flows: Introduction to Data Integration in Azure Synapse A...
PPTX
Big data architectures and the data lake
PPTX
The Ideal Approach to Application Modernization; Which Way to the Cloud?
PPTX
Azure data factory
PDF
Moving to Databricks & Delta
PDF
Learn to Use Databricks for Data Science
PDF
Modernizing to a Cloud Data Architecture
Azure Data Factory ETL Patterns in the Cloud
Data platform architecture
DataOps: An Agile Method for Data-Driven Organizations
Pipelines and Packages: Introduction to Azure Data Factory (DATA:Scotland 2019)
DW Migration Webinar-March 2022.pptx
Databricks Platform.pptx
Building Modern Data Platform with Microsoft Azure
Modern Data Flow
Azure Data Factory for Azure Data Week
Putting the Ops in DataOps: Orchestrate the Flow of Data Across Data Pipelines
Creating your Center of Excellence (CoE) for data driven use cases
Data Warehouse or Data Lake, Which Do I Choose?
Azure App Modernization
Pipelines and Data Flows: Introduction to Data Integration in Azure Synapse A...
Big data architectures and the data lake
The Ideal Approach to Application Modernization; Which Way to the Cloud?
Azure data factory
Moving to Databricks & Delta
Learn to Use Databricks for Data Science
Modernizing to a Cloud Data Architecture
Ad

More from Cathrine Wilhelmsen (20)

PDF
Fra utvikler til arkitekt: Skap din egen karrierevei ved å utvikle din person...
PDF
One Year in Fabric: Lessons Learned from Implementing Real-World Projects (PA...
PDF
Data Factory in Microsoft Fabric (MsBIP #82)
PDF
Getting Started: Data Factory in Microsoft Fabric (Microsoft Fabric Community...
PDF
Choosing Between Microsoft Fabric, Azure Synapse Analytics and Azure Data Fac...
PDF
Website Analytics in My Pocket using Microsoft Fabric (SQLBits 2024)
PDF
Data Integration using Data Factory in Microsoft Fabric (ESPC Microsoft Fabri...
PDF
Choosing between Fabric, Synapse and Databricks (Data Left Unattended 2023)
PDF
Data Integration with Data Factory (Microsoft Fabric Day Oslo 2023)
PDF
The Battle of the Data Transformation Tools (PASS Data Community Summit 2023)
PDF
Visually Transform Data in Azure Data Factory or Azure Synapse Analytics (PAS...
PDF
Building an End-to-End Solution in Microsoft Fabric: From Dataverse to Power ...
PDF
Website Analytics in my Pocket using Microsoft Fabric (AdaCon 2023)
PDF
Choosing Between Microsoft Fabric, Azure Synapse Analytics and Azure Data Fac...
PDF
Stressed, Depressed, or Burned Out? The Warning Signs You Shouldn't Ignore (D...
PDF
Stressed, Depressed, or Burned Out? The Warning Signs You Shouldn't Ignore (S...
PDF
"I can't keep up!" - Turning Discomfort into Personal Growth in a Fast-Paced ...
PDF
Lessons Learned: Implementing Azure Synapse Analytics in a Rapidly-Changing S...
PDF
6 Tips for Building Confidence as a Public Speaker (SQLBits 2022)
PDF
Lessons Learned: Understanding Pipeline Pricing in Azure Data Factory and Azu...
Fra utvikler til arkitekt: Skap din egen karrierevei ved å utvikle din person...
One Year in Fabric: Lessons Learned from Implementing Real-World Projects (PA...
Data Factory in Microsoft Fabric (MsBIP #82)
Getting Started: Data Factory in Microsoft Fabric (Microsoft Fabric Community...
Choosing Between Microsoft Fabric, Azure Synapse Analytics and Azure Data Fac...
Website Analytics in My Pocket using Microsoft Fabric (SQLBits 2024)
Data Integration using Data Factory in Microsoft Fabric (ESPC Microsoft Fabri...
Choosing between Fabric, Synapse and Databricks (Data Left Unattended 2023)
Data Integration with Data Factory (Microsoft Fabric Day Oslo 2023)
The Battle of the Data Transformation Tools (PASS Data Community Summit 2023)
Visually Transform Data in Azure Data Factory or Azure Synapse Analytics (PAS...
Building an End-to-End Solution in Microsoft Fabric: From Dataverse to Power ...
Website Analytics in my Pocket using Microsoft Fabric (AdaCon 2023)
Choosing Between Microsoft Fabric, Azure Synapse Analytics and Azure Data Fac...
Stressed, Depressed, or Burned Out? The Warning Signs You Shouldn't Ignore (D...
Stressed, Depressed, or Burned Out? The Warning Signs You Shouldn't Ignore (S...
"I can't keep up!" - Turning Discomfort into Personal Growth in a Fast-Paced ...
Lessons Learned: Implementing Azure Synapse Analytics in a Rapidly-Changing S...
6 Tips for Building Confidence as a Public Speaker (SQLBits 2022)
Lessons Learned: Understanding Pipeline Pricing in Azure Data Factory and Azu...
Ad

Recently uploaded (20)

PDF
The-Physical-Self.pdf college students1-4
PDF
n8n Masterclass.pdfn8n Mastercn8n Masterclass.pdflass.pdf
PDF
GPL License Terms of document persentaion
PDF
toaz.info-grade-11-2nd-quarter-earth-and-life-science-pr_5360bfd5a497b75f7ae4...
PPTX
BDA_Basics of Big data Unit-1.pptx Big data
PPTX
reflex-210317162019.pptxjy5i767i6i67i67i67i76
PDF
Delhi c@ll girl# cute girls in delhi with travel girls in delhi call now
PPTX
UNIT-1 NOTES Data warehousing and data mining.pptx
PPTX
Basic Statistical Analysis for experimental data.pptx
PPTX
Power BI - Microsoft Power BI is an interactive data visualization software p...
PPT
Drug treatment of Malbbbbbhhbbbbhharia.ppt
PPTX
AI-Augmented Business Process Management Systems
PPTX
An Introduction to Lean Six Sigma for Bilginer
PDF
MISO Deep-NARX Forecasting for Energy and Electricity Demand/Price Data
PPTX
DIGITAL DESIGN AND.pptx hhhhhhhhhhhhhhhhh
PDF
American Journal of Multidisciplinary Research and Review
PPTX
ISO 9001-2015 quality management system presentation
PPTX
1.Introduction to orthodonti hhhgghhcs.pptx
PDF
NU-MEP-Standards معايير تصميم جامعية .pdf
PDF
Introduction to Database Systems Lec # 1
The-Physical-Self.pdf college students1-4
n8n Masterclass.pdfn8n Mastercn8n Masterclass.pdflass.pdf
GPL License Terms of document persentaion
toaz.info-grade-11-2nd-quarter-earth-and-life-science-pr_5360bfd5a497b75f7ae4...
BDA_Basics of Big data Unit-1.pptx Big data
reflex-210317162019.pptxjy5i767i6i67i67i67i76
Delhi c@ll girl# cute girls in delhi with travel girls in delhi call now
UNIT-1 NOTES Data warehousing and data mining.pptx
Basic Statistical Analysis for experimental data.pptx
Power BI - Microsoft Power BI is an interactive data visualization software p...
Drug treatment of Malbbbbbhhbbbbhharia.ppt
AI-Augmented Business Process Management Systems
An Introduction to Lean Six Sigma for Bilginer
MISO Deep-NARX Forecasting for Energy and Electricity Demand/Price Data
DIGITAL DESIGN AND.pptx hhhhhhhhhhhhhhhhh
American Journal of Multidisciplinary Research and Review
ISO 9001-2015 quality management system presentation
1.Introduction to orthodonti hhhgghhcs.pptx
NU-MEP-Standards معايير تصميم جامعية .pdf
Introduction to Database Systems Lec # 1

Building Dynamic Data Pipelines in Azure Data Factory (Microsoft Ignite 2019)