Can you use one Logic App to access different customer on-premise environments (i.e. different Host names) for accessing an on-prem API?

Paul Schmidt 1 Reputation point
2020-09-24T02:25:02.713+00:00

We have more than one customer with the same API installed on-premise and need to access this API and it's methods. My understanding is the you can install an on-premise data gateway and use a custom connector via a Logic App to access this gateway.

In our use case we have more than one customer, so ideally, we would like to use only one Logic App across our customer base. So when creating a custom connector via a Logic App, the Host and Base URL will be different for each customer.

27855-capture.png

So when interfacing with the on-premise API, the Logic App understands what Host and Base URL to use for each customer environment.

Is this possible?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
1,815 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JayaC-MSFT 5,481 Reputation points
    2020-09-30T17:48:34.787+00:00

    @Paul Schmidt Yes you can parameterize the Base URL. Please check https://stackoverflow.com/questions/46929030/url-path-variables-in-azure-logic-app-custom-connectors
    But I am afraid, we can't do the same for the host. In that case it would be easier to create separate connector using ARM template. [Details mentioned in this thread ]
    Also, you have mentioned you will be connecting to on-prem API using logic app :

    If the services are accessible over the internet then you call service endpoint over HTTP or HTTPS from azure logic apps. This article will help you with details steps to be followed: https://learn.microsoft.com/en-us/azure/connectors/connectors-native-http

    If it is not accessible over the internet then this article will help with step by step process: https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-gateway-connection

    Before you can access data sources on premises from your logic apps, you need to create an Azure resource after you install the on-premises data gateway on a local computer. Your logic apps then use this Azure gateway resource in the triggers and actions provided by the on-premises connectors that are available for Azure Logic Apps.

    you may take a look into this. This might help you if you encounter any connection issue.

    If this answer helps, please "Accept the answer" and "Up-vote" so that it helps others in the community.

    No comments