How can I assign a global parameter to the trigger interval using azure Data Factory Studio?

AdeCannon-5941 0 Reputation points
2025-05-29T16:35:03.82+00:00

I am using azure-data-factory-utilities to generate the template and params file, I have been able to use global params for other things, but it seems impossible to parameterize the trigger interval. I need be able to set this to different values depending on the environment. thanks in advance

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,627 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Chandra Boorla 14,585 Reputation points Microsoft External Staff Moderator
    2025-05-29T17:51:53.66+00:00

    @AdeCannon-5941

    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.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.