Using On-Premise Data Gateway if you need a static outbound IP for a Logic App to call external API

Published Aug 30 2021 05:41 AM 1,041 Views

 

Requirements:

 

You want to call an external API from Logic Apps (Consumption) and your requirements states that you have to use a Static IP.

You don't want to use Integration Service Environment (ISE) nor APIM as a solution.

You have a Windows machine with a Static Outbound IP, or your Network Outbound IP is static.

 

Solution:

 

You can use OPDGW (On-Premise Data Gateway) as a gateway between the Logic App and your API. The API will receive the request from the IP of the machine hosting the OPDGW. The IP of this machine should be static, or your Network outbound IPs for this machine are static. 

 

Omar_Abu_Arisheh_2-1630326471405.png

 

The machine should have access to the external API, so before testing the final solution; you should test if you can call the API from that machine, then install the OPDGW on the machine, set up the OPDGW on the Azure Portal, then try to call the OPDGW from the Logic App using an HTTP with Azure AD Action.

 

Steps:

 

Omar_Abu_Arisheh_2-1630323876965.png

 

  • After creating the connection; You can use GET as the method, or POST, or what your API requires, and enter the URL for the API.
  • Test your solution; You should be able to call your External API through the OPDGW and your API will receive the call from your machine/network static IP.

 

Omar_Abu_Arisheh_1-1630320913944.png

 

References:

 

Install on-premises data gateway - Azure Logic Apps | Microsoft Docs

Access data sources on premises - Azure Logic Apps | Microsoft Docs

HTTP with Azure AD - Connectors | Microsoft Docs

 

Co-Authors
Version history
Last update:
‎Aug 30 2021 05:29 AM
Updated by: