Data engineers often receive compressed files from external systems, vendors, APIs, and enterprise applications. ZIP files are commonly used because they reduce file size and simplify data transfer. However, before the data can be processed inside a Lakehouse environment, those compressed files must first be extracted.
One of the powerful capabilities of Microsoft Fabric is the ability to perform file extraction directly inside a Fabric Notebook using Python and PySpark. This eliminates the need for external tools or manual decompression before ingestion.
In this article, we will walk through how to extract ZIP files stored in a Fabric Lakehouse using a Fabric Notebook and save the extracted files back into the Lakehouse for downstream analytics and processing.
Why Extract ZIP Files in Fabric?
In modern data engineering solutions, ZIP files are extremely common in scenarios such as:
Daily sales exports
Vendor data delivery
IoT batch uploads
Financial reports
API data dumps
Legacy system integrations
Instead of manually downloading and extracting files locally, Microsoft Fabric allows us to automate the entire process directly within the platform.
Benefits include:
Fully cloud-native processing
Reduced manual intervention
Centralized data ingestion
Scalable ETL pipelines
Seamless integration with Lakehouse architecture
Solution Architecture
The overall process is straightforward:
Upload ZIP file into Fabric Lakehouse Files section
Use Fabric Notebook to read the ZIP file
Extract compressed contents using Python
Prerequisites
Before getting started, ensure you have the following:
Microsoft Fabric Workspace
Fabric Lakehouse
Fabric Notebook
ZIP file uploaded into the Lakehouse Files section
Step 1: Upload ZIP File into Fabric Lakehouse
First, in my Lakehouse, I created pdfs_source and pdf_extract_destination subfolders. Then, I uploaded the product_docs_500.zip into the pdfs_source subfolder as seen in the image below.

The pdf_extract_destination subfolders is currently empty as seen below





Join the conversation! Your thoughts help the community grow.