Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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?
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.
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
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Fabric update to learn about new features.