question

ChitraMarimuthu-5718 avatar image
0 Votes"
ChitraMarimuthu-5718 asked MartinJaffer-MSFT commented

Parameterize Logic App URL in Azure Data Factory

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-data-factoryazure-logic-apps
image.png (30.0 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ChitraMarimuthu-5718 did my response help you? If it solved your issue, please mark as accepted answer. If not, please tell me how I may better assist you.

0 Votes 0 ·

If you found your own solution, please share here with the community.

0 Votes 0 ·

1 Answer

MartinJaffer-MSFT avatar image
0 Votes"
MartinJaffer-MSFT answered

Hello @ChitraMarimuthu-5718 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


image.png (176.3 KiB)
image.png (234.1 KiB)
image.png (64.6 KiB)
image.png (119.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.