You're absolutely right, Azure Data Factory does not currently support assigning global parameters to trigger intervals (such as recurrence.frequency
or recurrence.interval
) directly through the ADF Studio or ARM templates.
Although global parameters are useful for pipelines, datasets, and linked services, trigger properties like interval
and frequency
must be defined as static values in your trigger definition. They do not support expressions or references to global parameters.
Recommended approach for environment-specific trigger intervals:
To handle different interval values across environments (e.g., dev vs. prod), the best practice is to:
Maintain separate parameter files for each environment (e.g., params.dev.json
, params.prod.json
).
Define the trigger's recurrence
section explicitly in each file:
"MyTrigger": {
"properties": {
"recurrence": {
"frequency": "Hour",
"interval": 1
}
}
}
Use your CI/CD pipeline or azure-data-factory-utilities
to deploy the correct version to the target environment.
This approach ensures that each environment has the correct scheduling logic, even though it cannot be driven by global parameters.
For additional information, please refer to the following documentations for some useful insights.
I hope this information helps. Please do let us know if you have any further queries.
Kindly consider upvoting the comment if the information provided is helpful. This can assist other community members in resolving similar issues.
Thank you.