{"id":10437,"date":"2019-05-02T00:00:00","date_gmt":"2019-05-02T05:00:00","guid":{"rendered":"https:\/\/threecloud.wpengine.com\/post\/updated-azure-data-factory-connector-in-logic-apps\/"},"modified":"2023-07-12T09:54:21","modified_gmt":"2023-07-12T16:54:21","slug":"updated-azure-data-factory-connector-in-logic-apps","status":"publish","type":"post","link":"https:\/\/3cloudsolutions.com\/resources\/updated-azure-data-factory-connector-in-logic-apps\/","title":{"rendered":"Updated Azure Data Factory Connector in Logic Apps"},"content":{"rendered":"<p>Recently, I was with a client who was using Azure Logic Apps to trigger an Azure Data Factory pipeline. If you\u2019re using Azure Logic Apps to do this, I\u2019d like to share a tip with you.<\/p>\n<p><strong>For those of you that are using Logic Apps and passing parameters to ADF, the Connector in Logic Apps got an update where you can add a parameter directly using the GUI and no longer need to hard code this in the JSON like we had to do previously.<\/strong><\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/cwAwIwy3ON0\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><strong>Let\u2019s jump into the Azure portal to see how this works: (please view video included here to see demo)<\/strong><\/p>\n<ul>\n<li>In the portal, I go into my Logic Apps and I\u2019ve got two Logic Apps.<\/li>\n<li>I go into the ADF Connector Logic App and click on Edit.<\/li>\n<li>Next, I click on <strong>\u201c+ New Step\u201d<\/strong> and Choose an Action; I click on <strong>Azure Data Factory<\/strong> and then <strong>\u201cCreate a Pipeline Run\u201d.<\/strong><\/li>\n<li>Then, I fill in my criteria: my subscription, resource group, the Data Factory name and Data Factory pipeline name. For this demo, my Data Factory\/Pipeline name is TriggerMeFromLogicApps.<\/li>\n<li>You\u2019ll also see <strong>Add New Parameter<\/strong>. Here we can hit the drop down and add parameters. Click on the parameter button, then click off that screen. This will add the parameter as an option to the connector, which you can click on that parameters field and add some dynamic content, such as Schedule Code. Then click \u201cSave\u201d.<\/li>\n<\/ul>\n<p><img decoding=\"async\" style=\"width: 604px; display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2021\/09\/Joe-Abbott-Logic-Apps-blog-1-1.png\" alt=\"Joe Abbott Logic Apps blog 1\" width=\"604\" \/><\/p>\n<ul>\n<li>This will work as it was saved and there were no errors\/issues \u2014 this will NOT trigger that pipeline with that parameter; let me show you why and what needs to be done. You must specify the name of the parameter in JSON format for this to work correctly.<\/li>\n<\/ul>\n<p><img decoding=\"async\" style=\"width: 581px; display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2021\/09\/Joe-Abbott-Logic-Apps-blog-2-1.png\" alt=\"Joe Abbott Logic Apps blog 2\" width=\"581\" \/><\/p>\n<p>We don\u2019t want to use just that parameter, we must give it a Key Value Pair:<\/p>\n<p>{<\/p>\n<p>\u201cKey\u201d:\u201dValue\u201d<\/p>\n<p>}<\/p>\n<ul>\n<li>If you do NOT add the correct syntax it will still trigger the ADF Pipeline, but won\u2019t pass any parameter values, so the ADF pipeline will just use the default value (if you set one up). See below:<\/li>\n<li><strong>Without Formatting the parameter \u2013 the value is there but no identifier<\/strong><\/li>\n<\/ul>\n<p><img decoding=\"async\" style=\"width: 546px; display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2021\/09\/Joe-Abbott-Logic-Apps-blog-3-1.png\" alt=\"Joe Abbott Logic Apps blog 3\" width=\"546\" \/><\/p>\n<ul>\n<li><strong>After Formatting the parameter \u2013 see how now we have a key\/value pair<\/strong><\/li>\n<\/ul>\n<p><strong>\u00a0<img decoding=\"async\" style=\"width: 550px;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2021\/09\/Joe-Abbott-Logic-Apps-blog-4-1.png\" alt=\"Joe Abbott Logic Apps blog 4\" width=\"550\" \/><\/strong><\/p>\n<p><strong>You need to do this so that Azure Data Factory knows what you\u2019re passing to it and you can go in and put your dynamic content in for your schedule code.<\/strong> I ran into a few issues with this when I first fired it up, so I hope this tip is helpful to you.<\/p>\n<p><strong>Need further help? Our expert team and solution offerings can help your business with any Azure product or service, including Managed Services offerings. Contact us at 888-8AZURE or\u00a0 <a href=\"mailto:sales@3cloudsolutions.com\">sales@3cloudsolutions.com<\/a>.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, I was with a client who was using Azure Logic Apps to trigger an&mldr;<\/p>\n","protected":false},"author":21,"featured_media":9333,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[260],"tags":[],"class_list":["post-10437","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-ai","topics-blog"],"acf":[],"_links":{"self":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts\/10437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/comments?post=10437"}],"version-history":[{"count":0,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts\/10437\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/media\/9333"}],"wp:attachment":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/media?parent=10437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/categories?post=10437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/tags?post=10437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}