az datafactory show --name <factory-name> --resource-group <resource-group>Data Factory variable
A mutable pipeline-scoped value that Data Factory activities can set and read during a pipeline run.
Source: Microsoft Learn - Pipeline parameters and variables in Azure Data Factory Reviewed 2026-05-13
- Exam trap
- Treating Data Factory variable as a generic concept instead of checking the exact resource, owner, identity, and dependency path.
- Production check
- Verify the active tenant, subscription, resource group, and resource name before interpreting any result.
Article details and learning context
- Aliases
- Data Factory variable, ADF variable, data factory variable
- Difficulty
- Intermediate
- CLI mappings
- 4
- Last verified
- 2026-05-13
Understand the concept
In plain English
Data Factory variable is a mutable pipeline-scoped value that Data Factory activities can set and read during a pipeline run. It helps data engineers, platform teams, security reviewers, and operations teams build reliable cloud data workflows track run-time state such as counters, temporary strings, loop values, or branch decisions within one execution. In practice, teams use it to answer whether the value must change during a run or should instead be a read-only parameter or. Operators should tie the term to one subscription, resource owner, environment, evidence source, and rollback path before changing production. That keeps glossary knowledge connected to.
Why it matters
Data Factory variable matters because run-time workflow state, loop control, dynamic branching, temporary aggregation, troubleshooting evidence, and reduction of duplicated logic become real production responsibilities, not abstract design notes. If teams misunderstand it, they may approve the wrong access, miss a dependency, collect weak evidence, or create avoidable outages. It influences security controls, reliability planning, support ownership, cost review, and change approval. For regulated or high-visibility workloads, unsafe variable use in parallel paths can produce unexpected values and make pipeline behavior difficult to reproduce. A strong definition gives architects, operators, auditors, and application owners a shared operating language that can be tested against live Azure configuration, logs, and business objectives.
Official wording and source
A mutable pipeline-scoped value that Data Factory activities can set and read during a pipeline run. Microsoft Learn places it in Pipeline parameters and variables in Azure Data Factory; operators confirm scope, configuration, dependencies, and production impact. Use the linked source for exact Azure behavior.
Technical context
Technically, Data Factory variable sits in pipeline variables, Set Variable and Append Variable activities, expressions, ForEach loops, activity dependencies, and run output. It is configured through variable names, data types, initial values, Set Variable activities, Append Variable activities, loop settings, and expression and validated by checking evaluated values, debug output, activity run details, branch decisions, loop behavior, failed expressions, and unexpected final. It connects to Data Factory pipelines, variables, parameters, expression language, Set Variable activity, ForEach, If Condition, and pipeline. For production reviews, compare portal state, CLI output, deployment JSON, logs, and runbook notes. Treat it as live configuration that.
Exam context
Compare with
Where it is used
Where you see it
- In the Azure portal, Data Factory variable appears around pipeline Variables tab, Set Variable activity, Append Variable activity, dynamic content editor, debug output, and activity run details. Operators use this signal to confirm scope, ownership.
- In infrastructure or source control, Data Factory variable shows up in pipeline JSON, variable declarations, Set Variable activities, Git files, ARM templates, parameter mappings, and runbook examples. Reviewers compare those files with deployed resources before.
- In monitoring and support evidence, Data Factory variable appears through debug values, final variable state, branch output, loop errors, unexpected concatenated strings, skipped activities, and activity run logs. These signals help teams diagnose failures, drift.
- During incident review, Data Factory variable is visible when teams trace a failed run, blocked dependency, changed identity, or unexpected configuration back to a named owner.
Common situations
- Design a production workload where Data Factory variable must be configured, reviewed, and monitored before customer traffic or regulated data is involved.
- Create audit evidence that shows the owner, resource scope, access path, and live Azure state for Data Factory variable.
- Troubleshoot incidents where Data Factory variable may affect access, dependency behavior, latency, cost, data freshness, or policy compliance.
- Compare portal, CLI, infrastructure-as-code, and monitoring evidence so teams do not approve changes from stale assumptions.
Illustrative Azure scenarios
These examples show how the concept can affect design and operations. They are illustrative scenarios, not customer claims.
Scenario 01 Data Factory variable in action for media Scenario, objectives, solution, measured impact, and takeaway.
Southridge Video, a media organization, needed to track the last processed file inside a metadata-driven ingestion pipeline. The platform team used Data Factory variable to use variables to hold temporary loop state.
- Reduce production risk by thirty percent
- Make ownership and evidence clear
- Improve recovery during incidents
- Keep security and cost controls visible
Architects designed the solution around Data Factory variable by using it to use variables to hold temporary loop state. They connected the design to Data Factory pipelines, variables, parameters, expression language, Set Variable activity, ForEach, If Condition, and pipeline monitoring so data engineers, security reviewers, operators, and business owners worked from the same evidence. The team documented the owner, Azure scope, identities, network path, monitoring signals, cost assumptions, and rollback step before production release. Engineers captured CLI output, portal configuration, deployment references, and baseline metrics, then compared first-week telemetry with the expected business result. Any mutating change required an approved ticket and a named operator so support teams could reproduce the behavior during an incident.
- Incident triage time fell by thirty-two percent because owners could follow one evidence path.
- Failed or delayed production runs dropped by twenty-eight percent during the first quarter after rollout.
- Audit reviewers accepted the captured configuration, access, and monitoring evidence without extra manual sampling.
- Engineering effort for repeat fixes fell by thirty-five percent because the design was documented and reusable.
Data Factory variable is valuable when teams connect the glossary concept to live Azure configuration, measurable outcomes, and accountable operations.
Scenario 02 Data Factory variable in action for healthcare Scenario, objectives, solution, measured impact, and takeaway.
Fabrikam Health, a healthcare organization, needed to branch quality checks based on validation counts collected during a run. The platform team used Data Factory variable to update variables from validation activities.
- Protect regulated data during pipeline execution
- Reduce failed clinical or operational loads by thirty percent
- Preserve evidence for compliance review
- Keep support response within agreed service levels
Architects designed the solution around Data Factory variable by using it to update variables from validation activities. They connected the design to Data Factory pipelines, variables, parameters, expression language, Set Variable activity, ForEach, If Condition, and pipeline monitoring so data engineers, security reviewers, operators, and business owners worked from the same evidence. The team documented the owner, Azure scope, identities, network path, monitoring signals, cost assumptions, and rollback step before production release. Engineers captured CLI output, portal configuration, deployment references, and baseline metrics, then compared first-week telemetry with the expected business result. Any mutating change required an approved ticket and a named operator so support teams could reproduce the behavior during an incident.
- Incident triage time fell by thirty-two percent because owners could follow one evidence path.
- Failed or delayed production runs dropped by twenty-eight percent during the first quarter after rollout.
- Audit reviewers accepted the captured configuration, access, and monitoring evidence without extra manual sampling.
- Engineering effort for repeat fixes fell by thirty-five percent because the design was documented and reusable.
Data Factory variable is valuable when teams connect the glossary concept to live Azure configuration, measurable outcomes, and accountable operations.
Scenario 03 Data Factory variable in action for logistics Scenario, objectives, solution, measured impact, and takeaway.
Contoso Logistics, a logistics organization, needed to avoid hard-coded status messages across a multi-step delivery pipeline. The platform team used Data Factory variable to build run-time messages with variables and expressions.
- Improve route or shipment data freshness
- Reduce missed schedules across regions
- Make reruns safe during operational incidents
- Give support teams one authoritative run history
Architects designed the solution around Data Factory variable by using it to build run-time messages with variables and expressions. They connected the design to Data Factory pipelines, variables, parameters, expression language, Set Variable activity, ForEach, If Condition, and pipeline monitoring so data engineers, security reviewers, operators, and business owners worked from the same evidence. The team documented the owner, Azure scope, identities, network path, monitoring signals, cost assumptions, and rollback step before production release. Engineers captured CLI output, portal configuration, deployment references, and baseline metrics, then compared first-week telemetry with the expected business result. Any mutating change required an approved ticket and a named operator so support teams could reproduce the behavior during an incident.
- Incident triage time fell by thirty-two percent because owners could follow one evidence path.
- Failed or delayed production runs dropped by twenty-eight percent during the first quarter after rollout.
- Audit reviewers accepted the captured configuration, access, and monitoring evidence without extra manual sampling.
- Engineering effort for repeat fixes fell by thirty-five percent because the design was documented and reusable.
Data Factory variable is valuable when teams connect the glossary concept to live Azure configuration, measurable outcomes, and accountable operations.
Azure CLI
Use Azure CLI for Data Factory variable when you need repeatable evidence from live Azure resources instead of a one-off portal screenshot. Start with read-only checks, compare output with source-controlled intent, and attach the result to the change, incident, or audit record.
Useful for
- Confirm the active subscription, resource group, owner, and current configuration before approving a change involving Data Factory variable.
- Export read-only evidence for audits, incidents, migrations, or architecture reviews where Data Factory variable affects production behavior.
- Compare CLI output with infrastructure templates and monitoring dashboards to find drift, missing dependencies, or unsafe assumptions.
Before you run a command
- Confirm the tenant, subscription, resource group, region, and exact resource names before trusting command output.
- Prefer read-only commands first; require change approval before commands that create, update, start, stop, rerun, or delete resources.
- Check RBAC, extension requirements, production freeze windows, and whether output may expose identifiers, endpoints, secrets, or sensitive metadata.
What the output tells you
- It shows whether Data Factory variable exists in the expected scope and whether live Azure state matches the documented design.
- It exposes identities, endpoints, component names, run history, policy settings, dependency references, or output values not obvious from application code.
- It gives reviewers evidence they can attach to tickets, dashboards, audit notes, deployment records, and post-incident timelines.
Mapped commands
Data Factory variable operational checks
directaz datafactory pipeline show --factory-name <factory-name> --resource-group <resource-group> --name <pipeline-name>az datafactory pipeline create-run --factory-name <factory-name> --resource-group <resource-group> --name <pipeline-name> --parameters @parameters.jsonaz datafactory activity-run query-by-pipeline-run --factory-name <factory-name> --resource-group <resource-group> --run-id <pipeline-run-id> --last-updated-after <start-time> --last-updated-before <end-time>Architecture context
Architecture reviews for Data Factory variable should connect the term to resource scope, identity, networking, monitoring, cost ownership, and rollback evidence.
- Security
- Security for Data Factory variable starts with knowing who can configure it, who can read its evidence, and which identities, secrets, network paths, or data stores it depends on. Focus on avoid storing secrets, protect output visibility, restrict authoring rights, review variable values in logs, and use parameters for externally supplied data. Use least privilege, managed identities where appropriate, private or approved network paths, and diagnostic logging that is reviewed regularly. Document the owner, approval path, and exception process before production use. During incidents, prove whether access, policy, data, or network controls changed recently instead of relying on stale assumptions.
- Cost
- Cost for Data Factory variable is not only the direct service charge. Watch extra loop iterations, failed reruns, broad copy requests, data flow compute triggered by wrong state, and support time from opaque values. Small configuration choices can multiply across environments, schedules, regions, or repeated runs. Use budgets, tags, owner reports, and run history to separate valuable usage from avoidable waste. Before expanding scope, estimate volume, retention, test activity, and support effort. After rollout, compare expected cost with actual usage and capture remediation tasks for unused resources, noisy settings, or oversized paths. Review cleanup tasks and expected usage before approving wider rollout.
- Reliability
- Reliability for Data Factory variable means the workload still behaves predictably when dependencies fail, schemas change, policies update, or traffic spikes. Plan around parallel loop behavior, initialization, dependency order, rerun safety, null handling, skipped branches, and recovery when state updates fail. Monitor both the Azure resource and the user-visible symptom, because the first warning may appear in logs, metrics, latency, missing data, or failed background work. Keep rollback steps and dependency owners visible in the runbook. Test permission loss, stale configuration, regional events, and partial deployment failures before production reliance. Record tested fallback steps and the first alert responders should trust.
- Performance
- Performance for Data Factory variable depends on how quickly the related workflow produces trustworthy results without overloading sources, agents, networks, or downstream services. Pay attention to expression evaluation, loop concurrency, branch latency, downstream copy size, variable update order, and source throttling caused by wrong state. Measure the user-visible or operator-visible outcome, not just whether the resource exists. For production changes, compare baseline and post-change latency, throughput, error rate, and queue behavior. Tune in small steps, because aggressive parallelism, broad filters, or oversized test data can create throttling and hide the real bottleneck. Retest after network, source, sink, or dependency changes are released.
- Operations
- Operations for Data Factory variable should be repeatable and easy for a second engineer to verify. The runbook should cover variable naming, debug evidence, loop design review, support notes, safe rerun guidance, and documentation of expected value changes. Keep naming, tags, dashboards, tickets, and infrastructure definitions aligned so support teams do not rely on memory. Use read-only CLI commands for routine evidence, and require review before mutating commands. After rollout, compare live state with approved design, check first signals, and record owner follow-up before closing the change. Keep before-and-after evidence linked to the ticket, dashboard, and owning team. Keep before-and-after evidence linked to the ticket, dashboard, and owning team.
Common mistakes
- Treating Data Factory variable as a generic concept instead of checking the exact resource, owner, identity, and dependency path.
- Running a mutating command in the wrong subscription or resource group because the active CLI context was not verified.
- Assuming the portal, IaC template, CLI output, and monitoring dashboard all represent the same current state without comparing them.