Reputation: 2503
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
Reputation: 4778
Your azure function blocking the outside access of ADF make sure you are using below steps:
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