Parameterize Logic App URL in Azure Data Factory

Chitra Marimuthu 1 Reputation point
2021-07-20T06:57:50.4+00:00

I have created a data factory pipeline which sends email notification when the pipeline completes using a Web activity + Logic app combination.

I have promoted the Logic app from dev to test and see that the HTTP trigger URL within logic app has changed. Please let me know how to parameterize this URL in my data factory pipeline

116137-image.png

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,151 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,722 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MartinJaffer-MSFT 26,086 Reputation points
    2021-07-22T05:02:11.907+00:00

    Hello @Chitra Marimuthu and welcome to Microsoft Q&A. If you would like to parameterize the url, there are a couple options:

    1. edit the custom template parameters, so that url must be provided on promotion (this applies to ALL urls not just a specific instance of web activity)
    2. Parameterize the web activity's url field, and make it refer to a global parameter, and alter that in the custom template parameter

    For option 1:

    Go to Management > ARM template > Edit configuration
    116951-image.png
    Then find the pipelines section and make the below edits:

       "Microsoft.DataFactory/factories/pipelines": {  
            "properties": {  
                "activities": [  
                    {  
                        "typeProperties": {  
                            "url": "-"  
                        }  
                    }  
                ]  
            }  
        },  
    

    Then when I look at my exported arm template I see

    116952-image.png

    For option 2:

    Go to management and create a global variable
    116961-image.png
    Go to the web activity, and select dynamic expression under URL and make reference to the global variable
    116859-image.png

    0 comments No comments

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.