Synapse or ADF pipeline access Logic App within private network

  • Thread starter Thread starter huidongliu
  • Start date Start date
H

huidongliu

A Data Factory or Synapse Workspace can have one or more pipelines. A pipeline is a logical grouping of activities that together perform a task. For example, you may use a web activity to call a Logic App with an HTTP trigger. For standard Logic App with private endpoints, we can not access the Logic App trigger directly from public network. And you will likely to receive the following error message when calling the Logic App from the pipeline:



{ "errorCode": "2108", "message": "Error calling the endpoint 'https://{logicappname}.azurewebsites.net'. Response status code: 'NA - Unknown'. More details: Exception message: 'NA - Unknown [ClientSideException] An error occurred while sending the request.'.\r\nRequest didn't reach the server from the client. This could happen because of an underlying issue such as network connectivity, a DNS failure, a server certificate validation or a timeout. ", "failureType": "UserError", "target": "Web1", "details": [] }​



However using managed private endpoint you are able reach the Logic App trigger from the Azure Synapse workspace. In this article we will use Synapse workspace pipeline as an example:



1. You can create the managed private endpoints in Azure Synapse Studio. Go to "Manage"->"Managed private endpoints"->"+New"



872x453?v=v2.png



2. There is no managed private endpoint for Logic App yet, choose Azure Function instead.

391x628?v=v2.png



3. Name the managed private endpoint, and choose the subscription. From the dropdown list of the "Azure Function App url", you will find all the Function Apps and the Logic Apps with a HTTP trigger in this subscription. Choose the Logic App you would like to access, and then click "Create"



420x669?v=v2.png



4. After creation, the managed private endpoint will be in provisioning state first. After provision succeeded, the approval state will be in "Pending"



830x276?v=v2.png



5. Next go to the Logic App->Networking->Private Endpoint page, you will see a new private endpoint from Synapse in "Pending" state. Click on the pending private endpoint, and click "Approve".



838x283?v=v2.png



6. Momentarily from the Synapse studio, we can see this managed private endpoint approval state become "Approved".



860x258?v=v2.png



7. We can test the pipeline with a web activity, make a POST request to the Logic App URL,



745x548?v=v2.png



8. The pipeline succeeded.



838x442?v=v2.png





References:

Managed private endpoints - Azure Synapse Analytics



Create a Managed private endpoint to connect to your data source results - Azure Synapse Analytics

Continue reading...
 
Back
Top