{"id":10411,"date":"2018-10-30T00:00:00","date_gmt":"2018-10-30T05:00:00","guid":{"rendered":"https:\/\/threecloud.wpengine.com\/post\/rest-api-authentication-azure-data-factory-vs-azure-logic-apps\/"},"modified":"2023-05-01T20:47:34","modified_gmt":"2023-05-02T01:47:34","slug":"rest-api-authentication-azure-data-factory-vs-azure-logic-apps","status":"publish","type":"post","link":"https:\/\/3cloudsolutions.com\/resources\/rest-api-authentication-azure-data-factory-vs-azure-logic-apps\/","title":{"rendered":"REST API Authentication \u2013 Azure Data Factory vs Azure Logic Apps"},"content":{"rendered":"<p>We\u2019ve had conversations with customers about using either Data Factory or Logic Apps for pulling data from applications, maybe using REST API Calls. We\u2019ve discussed why you would use one over the other and we\u2019ve shared how we now favor patterns that use Data Factory and Azure Logic Apps, so it\u2019s not a choice of one or the other.<\/p>\n<p>But today I\u2019d like to show why I prefer to use Logic Apps in cases where we\u2019re accessing data from HTTP endpoints. The diagram below is from Azure Data Factory and shows building a connection to an HTTP service.<\/p>\n<p><img decoding=\"async\" style=\"width: 584px; display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2021\/09\/ADF_REST_1-002-1.jpg\" alt=\"ADF_REST_1 (002)\" width=\"584\" \/><\/p>\n<p>What I want to focus on here is the authentication types. This is one of the key reasons why I gravitate to Logic Apps. In Data Factory, I have a limited list of choices as far as authentication methods including anonymous or no security \u2013 in most cases not a feasible option. In many cases we\u2019re pulling data from public facing websites, so things like Windows authentication is not a viable option.<\/p>\n<p>With Logic Apps I have many more options and much more flexibility as far as configuring how REST API calls are made. The diagram below is something we built for a call that we had been working with where the application was using OAuth and it required an access token string to be passed in.<\/p>\n<p><img decoding=\"async\" style=\"width: 565px; display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2021\/09\/ADF_REST_2-002-1.jpg\" alt=\"ADF_REST_2 (002)\" width=\"565\" \/><\/p>\n<p>With a Logic App this is relatively straightforward but is something we can\u2019t do in Azure Data Factory today. My illustration shows what that would look like. It\u2019s much simpler to parameterize your URL, so if there are query parameters that you pass into the URL, it\u2019s a bit easier to do in Logic Apps.<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/ienxqANN5SU\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>I hope this quick example was helpful in showing why, in my opinion, Azure Logic Apps are a better choice over Azure Data Factory when accessing data from an HTTP endpoint.<\/p>\n<p>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>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We\u2019ve had conversations with customers about using either Data Factory or Logic Apps for pulling&mldr;<\/p>\n","protected":false},"author":32,"featured_media":9434,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[292,264],"tags":[],"class_list":["post-10411","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-app-innovation","category-enterprise-apps","topics-blog"],"acf":[],"_links":{"self":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts\/10411","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\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/comments?post=10411"}],"version-history":[{"count":0,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts\/10411\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/media\/9434"}],"wp:attachment":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/media?parent=10411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/categories?post=10411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/tags?post=10411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}