Authentication Failure: ADF Function Linked Service to Azure Function App Using System-Assigned Managed Identity

Gnanasoundari 45 Reputation points
2025-06-09T06:57:45.7866667+00:00

I’m trying to connect an Azure Data Factory (ADF) pipeline to an Azure Function App using a Function Linked Service with System-Assigned Managed Identity (MI), but I’m encountering authentication errors.

Current configuration:

  1. Function App:
    Authentication enabled via Azure AD(Microsoft identity provider)
  2. ADF Function linked service:

Configured Function App URL

Authentication method as System Assigned Managed Identity

Resource id: Application Client id of the app registration

Function key : Not provided

Error Received with System assigned managed identity as Authentication method:

  1. with resource id and without function keys
    Call to provided Azure function '
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
{count} votes

1 answer

Sort by: Most helpful
  1. RithwikBojja 3,210 Reputation points Microsoft External Staff Moderator
    2025-06-17T09:31:55.4733333+00:00

    Hi @Gnanasoundari,

    I have followed below approach and it is working for me:

    Initially, created a function with Anonymous as below:

    image

    Later created a Data Factory resource and enabled managed identity in it:

    enter image description here

    Get the Application id of the Data factories managed identity from typing the data factory name in Microsoft Entra id:

    enter image description here

    Then get the app id :

    enter image description here

    Now in Function app Added Identity provider:

    enter image description here

    Then it gets created:

    image

    Granted the consent as below for the application of identity provider:

    enter image description here

    Now in Data factory, create a pipeline with Azure function action:

    Then Add the new connection in settings, select System-assigned managed identity and then the client of the Identity Provider and keep the function key as blank:

    enter image description here

    Output:

    When I click on debug, it gets succeeded:

    enter image description here


    If this answer was helpful, please click "Accept the answer" and mark Yes, as this can help other community members.

    enter image description here

    If you have any other questions or are still experiencing issues, feel free to ask in the "comments" section, and I'd be happy to help.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.