Kenny_I
Kenny_I

Reputation: 2503

How to access Azure Function with private endpoint with Azure Data Factory?

I have Azure Functions with private endpoint and VNet Integration enabled.

I have Azure Data Factory with Azure Function Activity.

I'm getting error when triggering pipeline:

Call to provided Azure function 'myfunction' failed with status-'Forbidden' and message - '<!DOCTYPE html> <html> <head> <title>Web App - Unavailable

Obviously ADF cannot access to Function. How to solve?

Upvotes: 1

Views: 2331

Answers (1)

Delliganesh Sevanesan
Delliganesh Sevanesan

Reputation: 4778

Your azure function blocking the outside access of ADF make sure you are using below steps:

  1. If you are using web activity of azure function it doesn’t support the URL that are hosted in private virtual network.
  2. To migrate azure function-app to Isolated (within ASE) App-Service-Plan can fix your problem.
  3. The Azure Function Activity supports routing. Your Azure Function has the endpoint https://functionAPP.azurewebsites.net/api/< functionName>/< value>?code=< secret>, then the functionName to use in the Azure Function Activity is < functionName>/< value>. You can parameterize this function to provide the desired functionName at runtime.

Note

The functionName for Durable Functions should be taken from the route property of the function's binding in its JSON definition, to include its routing information. Simply using the functionName without the route detail included will result in a failure because the Function App cannot be found.

Make sure your ADF has setup as private end point. If not refer here

Refer supported and not supported in azure ADF private endpoint

Example of ADF using Azure function activity Link 1 & Link 2

Upvotes: 1

Related Questions