What is the recommended approach to connect and interact with a Microsoft Fabric Lakehouse from an Azure Logic App?

Akshay Patel 150 Reputation points
2025-05-06T13:03:15.4766667+00:00

In my current workflow, Azure Logic Apps is configured to trigger when a file is added to a Box folder. It then copies the file and stores it in an Azure Data Lake Storage (ADLS) location.

As part of our migration to Microsoft Fabric, we need to modify this workflow so that the file is stored in a Lakehouse instead of ADLS. What is the best way to achieve this integration between Azure Logic Apps and Microsoft Fabric Lakehouse? Are there any connectors or APIs that can be used for this purpose?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,477 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Praveen Kumar Gudipudi 190 Reputation points Microsoft External Staff Moderator
    2025-05-08T16:06:46.1333333+00:00

    Akshay Patel ,

    Have you tried with HTTP connector (rest api) to store file in Lake house.

    Please check rest API documentation https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-api.

    Please configure HTTP connector with proper headers and authentication to access lake house.

    User's image

    To list files, you should use an endpoint similar to this

    https://onelake.dfs.fabric.microsoft.com/{workspaceId}/{lakehouseId}.lakehouse/Files?resource=filesy...

    You’ll need to include the appropriate authentication headers, typically using a bearer token obtained for the ‘storage’ scope.

     

    use this approach and see

     import requests

    workspace_id = "your_workspace_id"

    lakehouse_id = "your_lakehouse_id"

    token = mssparkutils.credentials.getToken("storage")

    url = f"https://onelake.dfs.fabric.microsoft.com/{workspace_id}/{lakehouse_id}.lakehouse/Files?resource=file..."

    headers = {"Authorization": f"Bearer {token}"}

    response = requests.get(url, headers=headers)

    files = response.json()

    Also, please refer this document https://community.fabric.microsoft.com/t5/Data-Engineering/Listing-files-using-REST-API-in-Lakehouse/m-p/4383610

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

    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.

    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.