I'm trying to trigger my Azure Function through Azure Data Factory using Managed Identity as my authentication method, and it fails with Error code 3610 "User configuration issue. There was an error while calling endpoint"
The function can be successfully triggered if I use the Anonymous authentication method, and when I manually trigger the function inside of the function app.
What are my options here? Thank you
CodePudding user response:
The error is due to the configuration issue. You can follow the below steps to execute a function through Azure Data Factory using Managed Identity:
Add SPN of ADFv2 as authorized application to SPN of app registration.
Grant SPN of Azure Function RBAC role "Storage Blob Data Contributor".
Configure Azure Function as REST API in ADFv2 using Managed Identity authentication.
(Network isolation only) Create VNET and self-hosted integration runtime.
(Network isolation only) Run Azure Function with VNET from ADFv2.
(Network isolation only) Add firewall rule to ADLSgen2 account with VNET of Azure Function.
For complete information you can refer this link.