<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Maneerali on Medium]]></title>
        <description><![CDATA[Stories by Maneerali on Medium]]></description>
        <link>https://medium.com/@maneerali375?source=rss-10f243e7cbd7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*fgFJkXUBWKcgKqH_</url>
            <title>Stories by Maneerali on Medium</title>
            <link>https://medium.com/@maneerali375?source=rss-10f243e7cbd7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 17:24:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@maneerali375/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a simple End-to-End Azure Data Engineering Pipeline Using ADF, ADLS Gen2 and Azure…]]></title>
            <link>https://medium.com/@maneerali375/building-a-simple-end-to-end-azure-data-engineering-pipeline-using-adf-adls-gen2-and-azure-8194066cefff?source=rss-10f243e7cbd7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8194066cefff</guid>
            <category><![CDATA[azure-databricks]]></category>
            <category><![CDATA[azure-data-factory]]></category>
            <category><![CDATA[adls-gen2]]></category>
            <category><![CDATA[unity-catalog]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Maneerali]]></dc:creator>
            <pubDate>Sun, 20 Sep 2026 14:28:24 GMT</pubDate>
            <atom:updated>2026-09-20T14:28:24.096Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a simple End-to-End Azure Data Engineering Pipeline Using ADF, ADLS Gen2 and Azure Databricks</h3><h3>Introduction</h3><p>As part of my Azure Data Engineering learning journey, I wanted to build a hands-on pipeline that combines multiple Azure services rather than learning each service in isolation.</p><p>In this project, I worked with:</p><ul><li>Azure Data Lake Storage Gen2 (ADLS Gen2)</li><li>Azure Data Factory (ADF)</li><li>Azure Databricks</li><li>PySpark</li><li>Parquet</li></ul><p>The objective was to take customer data in CSV format, store it in ADLS Gen2, convert the CSV file into Parquet using Azure Data Factory, process the Parquet data using Azure Databricks and PySpark and finally store the filtered output in another ADLS Gen2 storage account.</p><p><strong>The overall workflow is:</strong></p><pre>CSV Source <br>|<br>ADLS Gen2 - Input Storage <br>|<br>Azure Data Factory CSV → Parquet <br>|<br>ADLS Gen2 - Parquet Storage <br>|<br>Azure Databricks PySpark Transformation <br>|<br>ADLS Gen2 - Output Storage</pre><p>In this article, I will walk through the architecture, storage configuration, ADF pipeline, Databricks processing and the PySpark transformation.</p><h3>1. Project Architecture</h3><p>The pipeline consists of three major stages:</p><h4>Stage 1 -Data Storage and File Conversion</h4><p>The original customer data is available as a CSV file.</p><p>The CSV file is stored in an input ADLS Gen2 storage account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JhZn3n7FZHvA55rQk3y3Gg.png" /></figure><p>Azure Data Factory then reads the CSV file and converts it into Parquet format.</p><p>The resulting Parquet file is stored in an ADLS Gen2 location.</p><h4>Stage 2 -Data Processing</h4><p>Azure Databricks reads the Parquet file from ADLS Gen2.</p><p>Using PySpark the data is filtered based on a credit score condition.</p><p>Only the required columns are selected.</p><h4>Stage 3 -Output</h4><p>The transformed data is written as Parquet to another ADLS Gen2 storage account.</p><p><strong>The complete flow is:</strong></p><pre>                    Azure Data Factory<br>                   CSV → Parquet<br>                         |<br>                         <br>+----------------+   +----------------------+   +--------------------+<br>| CSV Source     | → | ADLS Gen2            | → | ADLS Gen2          |<br>|                |   | Input Storage        |   | Parquet Storage    |<br>+----------------+   +----------------------+   +--------------------+<br>                                                     |<br>                                                     <br>                                            +--------------------+<br>                                            | Azure Databricks   |<br>                                            |                    |<br>                                            | PySpark            |<br>                                            | Filtering          |<br>                                            +--------------------+<br>                                                     |<br>                                                     <br>                                            +--------------------+<br>                                            | ADLS Gen2          |<br>                                            | Output Storage     |<br>                                            +--------------------+</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VDM5KJ0DhqNsPWZ6HaeMQw.png" /><figcaption>Resource Group</figcaption></figure><h3>2. Technologies Used</h3><h4>Azure Data Lake Storage Gen2</h4><p>ADLS Gen2 is used as the storage layer.</p><p>In this project, I use storage at multiple stages:</p><ul><li>Input CSV storage</li><li>Intermediate Parquet storage</li><li>Final filtered output storage</li></ul><p>This creates a clear separation between the original data, processed data and final output.</p><h3>Azure Data Factory</h3><p>Azure Data Factory is used for data movement and file-format conversion.</p><p>In this project, I use an ADF <strong>Copy Activity</strong> to read the CSV file and write it in Parquet format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zuhs9aKkEz0di1qx_LX0Eg.png" /></figure><h3>Azure Databricks</h3><p>Azure Databricks is used as the processing engine.</p><p>Once the Parquet file is available, Databricks reads the data into a Spark DataFrame and performs the required transformation.</p><h3>PySpark</h3><p>PySpark is used to perform the filtering and column selection.</p><h3>Parquet</h3><p>Parquet is used as the intermediate and output file format.</p><p>It is a columnar storage format commonly used in analytical and data engineering workloads.</p><h3>3. ADLS Gen2 Storage Setup</h3><p>One of the important parts of this project was understanding how Azure Databricks accesses ADLS Gen2.</p><p>I used separate storage locations for the input and output data.</p><h3>Input Storage Account</h3><p>The input storage account used for the Databricks processing was:</p><pre>adlsdevmaneer</pre><p>The input container was:</p><pre>input</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A_K_fff04w91SzEABATGqg.png" /></figure><p>Therefore, the ADLS Gen2 path used from Databricks was:</p><pre>abfss://input@adlsdevmaneer.dfs.core.windows.net/</pre><p>The Parquet file was available under this location.</p><p>For example:</p><pre>abfss://input@adlsdevmaneer.dfs.core.windows.net/users_data.parquet</pre><h3>Output Storage Account</h3><p>For the transformed output, I used another storage account:</p><pre>adlsdevmaneer2</pre><p>The output container was:</p><pre>output</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q3gaKncUMkPqx_lJ1Mr5fg.png" /></figure><p>The output location was:</p><pre>abfss://output@adlsdevmaneer2.dfs.core.windows.net/</pre><p>The filtered data was written into:</p><pre>abfss://output@adlsdevmaneer2.dfs.core.windows.net/customer_filtered/</pre><h3>4. Understanding the ABFSS Path</h3><p>When working with ADLS Gen2 from Databricks, I used the abfss:// URI format.</p><p>For example:</p><pre>abfss://input@adlsdevmaneer.dfs.core.windows.net/users_data.parquet</pre><p>Let’s break this down.</p><blockquote>abfss://</blockquote><p>This represents the secure Azure Blob File System protocol used to access ADLS Gen2.</p><blockquote>input</blockquote><p>This is the container/file system.</p><blockquote>adlsdevmaneer</blockquote><p>This is the Azure Storage account.</p><blockquote>dfs.core.windows.net</blockquote><p>This is the DFS endpoint used by ADLS Gen2.</p><blockquote>users_data.parquet</blockquote><p>This is the file being accessed.</p><h3>5. Connecting Databricks to ADLS Gen2</h3><p>While working on this project, one of the practical challenges was understanding how Azure Databricks should securely access ADLS Gen2.</p><p>Instead of putting storage account keys directly into notebooks, I explored the Azure-native identity-based approach using an Azure Databricks Access Connector and Unity Catalog.</p><p>The high-level setup is:</p><pre>Azure Databricks<br>       |<br>       v<br>Unity Catalog<br>       |<br>       v<br>External Location<br>       |<br>       v<br>Storage Credential<br>       |<br>       v<br>Azure Databricks Access Connector<br>       |<br>       v<br>ADLS Gen2</pre><p>The Access Connector provides an Azure-managed identity that can be granted the required permissions on the storage account.</p><p>This approach is preferable to hardcoding sensitive storage credentials in notebooks.</p><p>The important lesson for me was that <strong>being able to see a storage account in Azure does not automatically mean that a Databricks workspace or notebook has permission to read and write its data</strong>.</p><p>The identity used by Databricks must have the appropriate permissions on the storage resources.</p><h3>6. Verifying Access from Databricks</h3><p>Before reading the actual data, I first verified whether Databricks could access the input storage location.</p><p>I used:</p><pre>display(<br>    dbutils.fs.ls(<br>        &quot;abfss://input@adlsdevmaneer.dfs.core.windows.net/&quot;<br>    )<br>)</pre><p>dbutils.fs.ls() allows me to list the files and directories available at the specified storage path.</p><p>This was useful because it allowed me to verify the storage connection before attempting to read the Parquet file.</p><p>If the path is accessible, Databricks can return the files available in that location.</p><p>For example, I could verify that:</p><pre>users_data.parquet</pre><p>was available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ULnFkdBtwH6d8MX0OD5G-A.png" /></figure><p>This simple verification step is useful during troubleshooting because it helps separate a <strong>storage access problem</strong> from a <strong>Spark processing problem</strong>.</p><h3>7. Reading the Parquet File in Databricks</h3><p>Once the storage access was working, I loaded the Parquet file into a Spark DataFrame.</p><pre>df = spark.read.parquet(<br>    &quot;abfss://input@adlsdevmaneer.dfs.core.windows.net/users_data.parquet&quot;<br>)<br><br>display(df)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KCZP7lHFOz9Lc5v4pa7QvA.png" /></figure><h3>8. Why Parquet?</h3><p>The original source data was in CSV format.</p><p>After the ADF Copy Activity, the data was stored as Parquet.</p><p>The simplified flow is:</p><pre>CSV<br> |<br> | Azure Data Factory<br><br>Parquet<br> |<br> | Azure Databricks<br><br>PySpark Processing</pre><p>Parquet is a columnar file format and is commonly used in analytical data workloads.</p><p>Compared with a simple CSV file, Parquet can provide benefits such as:</p><ul><li>Columnar storage</li><li>Compression</li><li>Data type information</li><li>Efficient analytical processing for suitable workloads</li><li>Ability for processing engines to read only required columns in appropriate situations</li></ul><p>This makes Parquet a common choice in modern data engineering pipelines.</p><h3>9. Filtering the Customer Data</h3><p>After loading the Parquet file into Databricks, I applied a simple transformation to select customers with a credit score greater than 800.</p><pre>from pyspark.sql.functions import col</pre><pre>filtered_df = df.filter(<br>    col(&quot;credit_score&quot;) &gt; 800<br>).select(<br>    &quot;id&quot;,<br>    &quot;credit_score&quot;<br>)</pre><pre>display(filtered_df)</pre><p>The filter() operation keeps only records where credit_score &gt; 800, while select() keeps only the required id and credit_score columns.</p><h3>10. Writing the Filtered Data to ADLS Gen2</h3><p>The transformed data was then written as Parquet to the output ADLS Gen2 storage account.</p><pre>filtered_df.write.mode(&quot;overwrite&quot;).parquet(<br>    &quot;abfss://output@adlsdevmaneer2.dfs.core.windows.net/customer_filtered/&quot;<br>)</pre><p>For this learning exercise, I used overwrite mode so that the output could be recreated when the notebook was rerun.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UZv7CEQXgKHMAj4lxdx7lA.png" /></figure><p>In a production environment, the write strategy would depend on requirements such as incremental processing, partitioning or upserts.</p><h3>11. Complete Databricks Code</h3><pre># Verify input storage<br>display(<br>    dbutils.fs.ls(<br>        &quot;abfss://input@adlsdevmaneer.dfs.core.windows.net/&quot;<br>    )<br>)</pre><pre># Read Parquet<br>df = spark.read.parquet(<br>    &quot;abfss://input@adlsdevmaneer.dfs.core.windows.net/users_data.parquet&quot;<br>)</pre><pre>display(df)</pre><pre># Filter and select required columns<br>from pyspark.sql.functions import col</pre><pre>filtered_df = df.filter(<br>    col(&quot;credit_score&quot;) &gt; 800<br>).select(<br>    &quot;id&quot;,<br>    &quot;credit_score&quot;<br>)</pre><pre>display(filtered_df)</pre><pre># Write filtered data<br>filtered_df.write.mode(&quot;overwrite&quot;).parquet(<br>    &quot;abfss://output@adlsdevmaneer2.dfs.core.windows.net/customer_filtered/&quot;<br>)</pre><h3>12. Complete Pipeline</h3><p>The complete workflow can be summarized as:</p><pre>CSV Source<br>    ↓<br>ADLS Gen2 - Input<br>    ↓<br>Azure Data Factory<br>CSV → Parquet<br>    ↓<br>ADLS Gen2 - Parquet Storage<br>    ↓<br>Azure Databricks<br>    ↓<br>PySpark Filtering<br>credit_score &gt; 800<br>    ↓<br>Select id, credit_score<br>    ↓<br>ADLS Gen2 - Output</pre><h3>13. What I Learned</h3><p>This project helped me understand how different Azure services work together in a data pipeline.</p><p>The key concepts I explored were:</p><ul><li>Storing data in ADLS Gen2</li><li>CSV-to-Parquet conversion using ADF</li><li>Accessing ADLS Gen2 from Databricks</li><li>Using ABFSS paths</li><li>Reading Parquet with PySpark</li><li>Filtering and selecting DataFrame columns</li><li>Writing transformed data back to ADLS Gen2</li><li>Understanding identity-based access using Databricks Access Connector and Unity Catalog</li></ul><p>One of the most useful parts was troubleshooting the connection between Databricks and ADLS Gen2. It helped me understand that storage access requires the correct identity, permissions and configuration and not just the storage path.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8194066cefff" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>