Parameters in trigger

Vineet S 1,390 Reputation points
2024-09-12T01:12:07.04+00:00

Hi via executing the pipeline in ADF, we can choose the environment by selecting the corresponding parameter values. This can be done using the ADF trigger, where you assign values to these parameters ... Can I see some screenshot or example for this let's say I have 4 db connection was, dev, prod, test

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

2 answers

Sort by: Most helpful
  1. phemanth 15,755 Reputation points Microsoft External Staff Moderator
    2024-09-12T12:34:35.9466667+00:00

    @Vineet S

    Thanks for reaching out to Microsoft Q&A.

    Here’s an example of how you can set up environment-specific parameters in Azure Data Factory (ADF) and use triggers to assign values to these parameters.

    Step-by-Step Example

    Define Pipeline Parameters:

    • Go to your pipeline in ADF.
    • Select the Parameters tab.

    Click on + New to create parameters for each environment (e.g., dbConnection).
    Screenshot that shows a pipeline setting showing how to define parameters in a pipeline.

    !Define Pipeline Parameters

    Set Up Trigger Parameters:

    • Create a new trigger or edit an existing one.
    • In the trigger configuration, you can assign values to the pipeline parameters based on the environment.

    Screenshot that shows the Trigger Run Parameters page showing how to pass trigger information to pipeline parameters.

    !Set Up Trigger Parameters

    Assign Values Based on Environment:

    When creating or editing the trigger, you can specify the values for each environment. For example:

    • Dev: dbConnection = "devConnectionString"
    • Test: dbConnection = "testConnectionString"
    • Prod: dbConnection = "prodConnectionString"

    !Assign Values Based on Environment

    please refer below links for more details
    https://learn.microsoft.com/en-us/azure/data-factory/how-to-use-trigger-parameterization

    https://stackoverflow.com/questions/69093957/send-parameters-in-trigger-adf

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


  2. Sina Salam 22,031 Reputation points Volunteer Moderator
    2024-09-12T12:46:03.1033333+00:00

    Hello Vineet S,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you would like to see an example of ADF trigger parameter.

    The links below gives you an example of pipeline parameters and trigger parameters as you requested, https://learn.microsoft.com/en-us/azure/data-factory/how-to-use-trigger-parameterization and https://learn.microsoft.com/en-us/azure/data-factory/parameters-data-flow and parameter expression here https://learn.microsoft.com/en-us/azure/data-factory/how-to-expression-language-functions#parameter-and-expression-concepts

    Also, check out this link for summary: https://learn.microsoft.com/en-us/azure/data-factory/concepts-parameters-variables

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is 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.