Home > database >  Managed Identity Causes Azure Function Linked Service to Fail in Azure Data Factory
Managed Identity Causes Azure Function Linked Service to Fail in Azure Data Factory

Time:10-08

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:

  1. Create app registration linked to the Azure Function.

  2. Add SPN of ADFv2 as authorized application to SPN of app registration.

  3. Grant SPN of Azure Function RBAC role "Storage Blob Data Contributor".

  4. Configure Azure Function as REST API in ADFv2 using Managed Identity authentication.

  5. (Network isolation only) Create VNET and self-hosted integration runtime.

  6. (Network isolation only) Run Azure Function with VNET from ADFv2.

  7. (Network isolation only) Add firewall rule to ADLSgen2 account with VNET of Azure Function.

For complete information you can refer this link.

  • Related