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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
antonioman
Regular Visitor

Error 403 Accessing Python Script in Azure Blob Storage from Spark Job in Microsoft Fabric

Can someone explain the steps I need to follow to call a Python script stored in Azure Blob Storage from a Spark Job Definition in Microsoft Fabric? When I provide the ADLS-Gen2 Path URL and then run the job, I am getting a 403 access error for the Python file.

4 REPLIES 4
Anonymous
Not applicable

Hi @antonioman ,

403 error means you not have premissions to access these resources. Can you please share some more detail information about this your opeartions? They should help us clarify your scenario and test.

In addition, what type of capacity are you worked? Trial or fabric capacity?

The trial capacity is hosted in the virtual environment, so you may face some issue to invoke resources across trial and payment environment.

Regards,

Xiaoxin Sheng

I am currently using an F2 capability. My scenario is as follows. I have created a Spark Job Definition and I have hosted Python code in an Azure Blob Storage. This Azure Blob Storage is in the same resource group as Fabric. The code to be used in the Spark Job Definition is the one hosted in the Storage. When I launch the execution, I get a 403 error when trying to access the code files. I understand that I need to grant Fabric permissions to access the resource, but I don’t see any documentation on the website

try creating a connection to the Blob Storage account, see the doc at the link below. use blob as the connection type

https://learn.microsoft.com/en-us/fabric/data-factory/connector-azure-data-lake-storage-gen2



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


Anonymous
Not applicable

HI @antonioman,

Can you please share the same code that you used? I will tried on it and share the insight here if I got them from testing.

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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