How the pieces fit together
Trigger
When: schedule, tumbling window, file event, or manual
Pipeline
A group of activities with parameters and variables
Copy activity
Moves data
Control activities
ForEach, If, Until, Set Variable...
Transform activities
Data flow, Databricks, stored procedure
Datasets
Which data, in which format
Linked services
How to connect, and with what identity
Integration runtime
The compute that does the work
Linked services: how to connect
A linked service holds connection information, like a connection string. This one connects to ShopKart's app database. Notice there's no password: the factory signs in with its own managed identity (lesson 3).
{
"name": "LS_AzureSql_ShopKart",
"properties": {
"description": "ShopKart app database. Signs in with the factory's managed identity: no password stored.",
"type": "AzureSqlDatabase",
"typeProperties": {
"connectionString": "Integrated Security=False;Encrypt=True;Connection Timeout=30;Data Source=sql-shopkart-dev.database.windows.net;Initial Catalog=shopkart"
}
}
}When a secret is unavoidable, it stays in Azure Key Vault and the linked service only names it:
{
"name": "LS_Blob_Supplier",
"properties": {
"description": "The supplier's blob container. The connection string lives in Key Vault.",
"type": "AzureBlobStorage",
"typeProperties": {
"connectionString": {
"type": "AzureKeyVaultSecret",
"store": {
"referenceName": "LS_KeyVault",
"type": "LinkedServiceReference"
},
"secretName": "supplier-blob-connection"
}
}
}
}Datasets: which data, in which format
A dataset points at data inside a linked service and says how to read it. This one is “a CSV file with a header in the incoming folder of the supplier-drop container”. The file name is a parameter, so one dataset works for every daily file:
{
"name": "DS_Blob_SupplierCsv",
"properties": {
"linkedServiceName": {
"referenceName": "LS_Blob_Supplier",
"type": "LinkedServiceReference"
},
"parameters": {
"fileName": {
"type": "string"
}
},
"type": "DelimitedText",
"typeProperties": {
"location": {
"type": "AzureBlobStorageLocation",
"fileName": {
"value": "@dataset().fileName",
"type": "Expression"
},
"folderPath": "incoming",
"container": "supplier-drop"
},
"columnDelimiter": ",",
"escapeChar": "\\",
"firstRowAsHeader": true,
"quoteChar": "\""
},
"schema": []
}
}Pipelines and activities
A pipeline groups activities. Here's the smallest one in our factory: copy one supplier file into the lake.
{
"name": "PL_Copy_Supplier_File",
"properties": {
"description": "Copy one supplier CSV file into the lake as Parquet.",
"parameters": {
"fileName": {
"type": "string",
"defaultValue": "orders_2026-11-22.csv"
}
},
"activities": [
{
"name": "Copy CSV to Lake",
"type": "Copy",
"policy": {
"timeout": "0.01:00:00",
"retry": 2,
"retryIntervalInSeconds": 60
},
"typeProperties": {
"source": {
"type": "DelimitedTextSource",
"storeSettings": {
"type": "AzureBlobStorageReadSettings"
},
"formatSettings": {
"type": "DelimitedTextReadSettings"
}
},
"sink": {
"type": "ParquetSink",
"storeSettings": {
"type": "AzureBlobFSWriteSettings"
}
},
"enableStaging": false
},
"inputs": [
{
"referenceName": "DS_Blob_SupplierCsv",
"type": "DatasetReference",
"parameters": {
"fileName": {
"value": "@pipeline().parameters.fileName",
"type": "Expression"
}
}
}
],
"outputs": [
{
"referenceName": "DS_ADLS_Parquet",
"type": "DatasetReference",
"parameters": {
"folderPath": {
"value": "@concat('raw/supplier_orders/', replace(substring(pipeline().parameters.fileName, 7, 10), '-', '/'))",
"type": "Expression"
},
"fileName": {
"value": "@replace(pipeline().parameters.fileName, '.csv', '.parquet')",
"type": "Expression"
}
}
}
]
}
]
}
}Read it top to bottom: a parameter fileName, one Copy activity with a retry policy, an input dataset (the CSV) and an output dataset (Parquet in the lake), with expressions computing the paths. You'll run it in lesson 4.
| Activity group | Examples | Purpose |
|---|---|---|
| Data movement | Copy | Move data between stores, converting formats |
| Data transformation | Data flow, Databricks Notebook/Job, Stored Procedure, Script, HDInsight | Change data (in ADF or by calling other compute) |
| Control flow | ForEach, If Condition, Switch, Until, Set/Append Variable, Execute Pipeline, Wait, Fail, Filter | Decide, loop, branch, stop |
| Lookup & metadata | Lookup, Get Metadata, Validation, Delete | Read small results; check files and folders |
| External calls | Web, Webhook, Azure Function, Azure Batch | Call APIs and other services |
Activities connect with dependencies: “run B after A succeeded” (green arrow), or after A failed (red), completed (blue) or was skipped (grey). Lesson 10 uses them for error handling. Activities without dependencies run in parallel.
Integration runtimes: where the work happens
| Integration runtime | Runs where | Use it for |
|---|---|---|
| Azure IR (AutoResolveIntegrationRuntime by default) | Microsoft-managed, in Azure | Cloud sources: Azure SQL, Blob, ADLS, Snowflake, SaaS |
| Azure IR with managed virtual network | Microsoft-managed, private | Reaching sources through private endpoints, no public internet |
| Self-hosted IR | Your server or VM (Windows), inside your network | On-premises databases, file shares, private networks |
| Azure-SSIS IR | Microsoft-managed cluster | Running existing SSIS packages (lift and shift) |
A self-hosted IR only makes outbound connections to Azure, so you don't open inbound firewall ports. For high availability, install it on 2–4 machines (nodes). Interviewers love this topic.
Triggers: when pipelines run
| Trigger | Fires | Lesson |
|---|---|---|
| Schedule | On a calendar: every day at 6 a.m., every Monday... | 9 |
| Tumbling window | Fixed, back-to-back time windows (each hour), with backfill and retries | 9 |
| Storage event | When a blob is created or deleted | 9 |
| Custom event | When an Event Grid topic gets a matching event | 9 |
| Manual (Trigger now / debug) | When you click it, or via REST API / SDK | 4 |
Parameters and variables at every level
| Kind | Scope | Example |
|---|---|---|
| Global parameter | Whole factory | env = dev / prod |
| Pipeline parameter | Passed in when a run starts; read-only | fileName, runDate |
| Pipeline variable | Changed during a run (Set/Append Variable) | flagFound = true |
| Dataset parameter | Makes a dataset reusable | @dataset().fileName |
| Linked service parameter | Makes a connection reusable | Database name per environment |
| System variables | Set by ADF | @pipeline().RunId, @pipeline().TriggerTime |
ADF Studio in two minutes
| Hub | What you do there |
|---|---|
| Author | Build pipelines, datasets and data flows on a drag-and-drop canvas; Debug runs |
| Monitor | See every pipeline, activity and trigger run; rerun from failure; alerts |
| Manage | Linked services, integration runtimes, triggers, Git configuration, global parameters |
🎯 Interview questions on this topic
Try to answer out loud first, then tap to check.
Q1Linked service vs dataset?Fresher
Q2What types of integration runtime are there?Fresher
Q3How would you connect ADF to an on-premises SQL Server?1–3 yrs
Q4What are the activity dependency conditions?1–3 yrs
Q5How do you keep the number of datasets and linked services manageable in a large factory?3+ yrs
Key takeaways
- Six blocks, one chain: trigger → pipeline → activities → datasets → linked services → runtime.
- Keep secrets out: managed identity first, Key Vault when you must.
- Parameterize datasets so a few serve hundreds of files and tables.
- Know your integration runtimes: interviews always ask.
Frequently asked questions
What's the difference between a linked service and a dataset?
A linked service is how to connect (server, account, authentication), like a connection string. A dataset is which data inside that connection and in what format (a table, a folder, a CSV file with a header). Many datasets can share one linked service.
What is an integration runtime?
The compute ADF uses to run activities. The Azure integration runtime is managed by Microsoft and reaches cloud sources. A self-hosted integration runtime is software you install on a machine in your network to reach on-premises or private sources. The Azure-SSIS runtime runs old SSIS packages.
Are datasets required for every activity?
No. Copy, Lookup and Get Metadata use datasets. Activities like Set Variable, ForEach, If Condition, Wait or Web don't. Data flows use datasets (or inline sources).
What is ADF Studio?
The browser app (adf.azure.com) where you build and monitor factories. Its hubs: Home, Author (pipelines, datasets, data flows), Monitor (runs, triggers, alerts) and Manage (linked services, integration runtimes, triggers, Git, global parameters).
🧠 Quick check: ADF concepts
1. Where do you put the server name and authentication for a database?
2. You must copy from a SQL Server in ShopKart's office (no public access). Which integration runtime?
3. Which is a control activity?
4. One linked service can be used by...