Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
choran
Regular Visitor

How to get lakehouse files into Azure Function

Hi all,

 

I am currently creating an Azure Function and I need to retrieve contents from a Lakehouse. I have been to get the lakehouse details successfully with my code while utilising the call outlined at: Items - Get Lakehouse - REST API (Lakehouse) | Microsoft Learn

 

However, I am unable to actually retrieve the actual files in my code. This is the error that I get Error: 401
{"error":{"code":"Unauthorized","message":"Authentication Failed with Audience validation failed for audience 'https://api.fabric.microsoft.com'"}}.

 

The user is an owner of the azure resource group in which the capacity is created.

 

The access token is generated successfully and allows me to access details of lakehouse and the workspace.

 

Can someone advise me on the correct get request and how to pass this authentication issue?

3 REPLIES 3
Anonymous
Not applicable

Hi @choran,

Have you assign the correspond permission to allow azure function invoke rest api and turn on the  allow use rest api options?

Admin API admin settings - Microsoft Fabric | Microsoft Learn

BTW, what type of license are you worked on? Fabric capacity or fabric trial? AFAIK, the trial version is different from fabric capacity, you may not directly interact resources across different environments(trial and payment).

Regards,

Xiaoxin Sheng

Hi Xiaoxin!
Issue still persists after changing admin api settings. I am working with Fabric capacity.

Anonymous
Not applicable

HI @choran,

Did you means to direct use azure function to access to the fact files from the paths? Can you please share some more detail about these operations? 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
August Fabric Update Carousel

Fabric Monthly Update - August 2025

Check out the August 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors