Access Azure Key vault through Azure function in Fabric Data factory

Sachin Nandanwar 25 Reputation points
2024-08-15T17:02:47.9666667+00:00

Hello,

I am trying to execute an Azure function deployed on Fabric data factory that fetches Azure Key vault values. I have already assigned Key vault admin to the Fabric user . The function executes ok when I debug & execute it through Visual Studio but when executing it through the Fabric data factory it errors out with non specific error message :

User's image

I am wondering if this is achievable. I also tried accessing Cosmos DB through Azure function deployed on Fabric and even that errors out with the above error message.

Azure Service Fabric
Azure Service Fabric
An Azure service that is used to develop microservices and orchestrate containers on Windows and Linux.
267 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,077 questions
{count} votes

1 answer

Sort by: Most helpful
  1. akinbade abiola 18,130 Reputation points
    2024-08-18T20:00:16.9066667+00:00

    It looks like additional permissions may be required for the function app's managed identity or service principal.

    I would recommend:

    1. Check the function app's managed identity has proper permissions on the Key Vault.
    2. Fabric data factory has the necessary permissions to invoke the function.

    I found similar issues here:

    https://github.com/MicrosoftDocs/azure-docs/issues/38499

    https://learn.microsoft.com/en-us/answers/questions/1194699/error-code-3608-invoking-azure-function-failed-wit

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola

    0 comments No comments

Your answer

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