Building a Secure Data Feed with Azure Data Factory and Blob Storage

In today’s data-driven landscape, securely sharing structured data with external partners is a common requirement. Whether it’s for compliance, reporting, or operational collaboration, having a reliable and automated pipeline is essential. This article walks through how to build an Azure Data Factory secure data feed that extracts data from an Azure SQL Database view, formats it for compatibility, and delivers it securely to Azure Blob Storage using a Secure Access Signature (SAS).

Why Use Azure Data Factory for Secure Data Feeds?

Azure Data Factory (ADF) is a powerful, cloud-native ETL (Extract, Transform, Load) service that enables you to:
  • Connect to a wide range of data sources and destinations.
  • Transform data using SQL, mapping data flows, or external compute.
  • Automate workflows with triggers and schedules.
  • Secure data movement with managed identities, private endpoints, and SAS tokens.
These features make ADF an ideal platform for building secure, automated data feeds. Let’s say you have caseload of Dynamics 365 CRM customer service tickets — and you wanted to securely transmit the new cases each night to an external partner for analysis.

Use Case: A Secure Data Feed from Azure SQL to Blob Storage

Let’s say you have a view in your Azure SQL Database — vwSecurePartnerFeed — that aggregates sensitive healthcare or business data. You need to:

  • Export this data nightly.
  • Format it as a pipe-delimited text file.
  • Encapsulate each field in double quotes to preserve special characters like commas, tabs, or embedded quotes.
  • Deliver it to a secure Azure Blob Storage container for access by an external partner.

This is a classic example of an Azure Data Factory secure data feed.

How to Build the Secure Data Feed

  1. Create a Linked Service to Azure SQL Database
    • In ADF, create a linked service pointing to your Azure SQL Database.
    • Use the view as the source dataset and import the schema.
  1. Create a Linked Service to Azure Blob Storage
    • Set up a linked service to your partner’s Azure Blob Storage account.
    • Use an SAS token to restrict access to only the necessary container and time window.
  1. Configure the Copy Data Activity
    • Source: Select the view (vwSecurePartnerFeed) and ensure the schema is up to date.
    • Sink: Choose a text file format with:
      • Pipe (|) delimiter
      • Quote character: “
      • File path like: exports/PartnerFolder/SecurePartnerFeed_Export_@{formatDateTime(utcNow(),’yyyyMMdd’)}.txt
  1. Handle Embedded Pipes in Data
    • In your SQL view, use REPLACE() to sanitize fields that may contain pipes:
    • CONCAT(‘”‘, REPLACE(FieldWithPipesInIt, ‘|’, ‘-‘), ‘”‘) AS [Call Description]
  1. Secure the Output
    • Use the SAS URL provided by your external partner instead of full credentials.
    • Use the SAS token with read-only access and an expiration date.
  1. Schedule the Pipeline
    • Add a trigger to run the pipeline nightly (e.g., at 2:00 AM ET).
    • Monitor execution via ADF’s built-in logging and alerts.

Learn more about how to use the Copy activity in Azure Data Factory.

Benefits of an Azure Data Factory Secure Data Feed

  • Data Integrity: Double-quoted fields ensure special characters don’t break the file structure.
  • Automation: Nightly scheduling eliminates manual effort.
  • Security: SAS tokens provide time-limited, permission-scoped access.
  • Scalability: Easily extend the pipeline to include transformations or additional destinations.

In today’s data-driven landscape, securely sharing structured data with external partners is a common requirement. Whether it’s for compliance, reporting, or operational collaboration, having a reliable and automated pipeline is essential. This article walks through how to build an Azure Data Factory secure data feed that extracts data from an Azure SQL Database view, formats it for compatibility, and delivers it securely to Azure Blob Storage using a Secure Access Signature (SAS).

Why Use Azure Data Factory for Secure Data Feeds?

Azure Data Factory (ADF) is a powerful, cloud-native ETL (Extract, Transform, Load) service that enables you to:
  • Connect to a wide range of data sources and destinations.
  • Transform data using SQL, mapping data flows, or external compute.
  • Automate workflows with triggers and schedules.
  • Secure data movement with managed identities, private endpoints, and SAS tokens.
These features make ADF an ideal platform for building secure, automated data feeds. Let’s say you have caseload of Dynamics 365 CRM customer service tickets — and you wanted to securely transmit the new cases each night to an external partner for analysis.

Use Case: A Secure Data Feed from Azure SQL to Blob Storage

Let’s say you have a view in your Azure SQL Database — vwSecurePartnerFeed — that aggregates sensitive healthcare or business data. You need to:

  • Export this data nightly.
  • Format it as a pipe-delimited text file.
  • Encapsulate each field in double quotes to preserve special characters like commas, tabs, or embedded quotes.
  • Deliver it to a secure Azure Blob Storage container for access by an external partner.

This is a classic example of an Azure Data Factory secure data feed.

How to Build the Secure Data Feed

  1. Create a Linked Service to Azure SQL Database
    • In ADF, create a linked service pointing to your Azure SQL Database.
    • Use the view as the source dataset and import the schema.
  1. Create a Linked Service to Azure Blob Storage
    • Set up a linked service to your partner’s Azure Blob Storage account.
    • Use an SAS token to restrict access to only the necessary container and time window.
  1. Configure the Copy Data Activity
    • Source: Select the view (vwSecurePartnerFeed) and ensure the schema is up to date.
    • Sink: Choose a text file format with:
      • Pipe (|) delimiter
      • Quote character: “
      • File path like: exports/PartnerFolder/SecurePartnerFeed_Export_@{formatDateTime(utcNow(),’yyyyMMdd’)}.txt
  1. Handle Embedded Pipes in Data
    • In your SQL view, use REPLACE() to sanitize fields that may contain pipes:
    • CONCAT(‘”‘, REPLACE(FieldWithPipesInIt, ‘|’, ‘-‘), ‘”‘) AS [Call Description]
  1. Secure the Output
    • Use the SAS URL provided by your external partner instead of full credentials.
    • Use the SAS token with read-only access and an expiration date.
  1. Schedule the Pipeline
    • Add a trigger to run the pipeline nightly (e.g., at 2:00 AM ET).
    • Monitor execution via ADF’s built-in logging and alerts.

Learn more about how to use the Copy activity in Azure Data Factory.

Benefits of an Azure Data Factory Secure Data Feed

  • Data Integrity: Double-quoted fields ensure special characters don’t break the file structure.
  • Automation: Nightly scheduling eliminates manual effort.
  • Security: SAS tokens provide time-limited, permission-scoped access.
  • Scalability: Easily extend the pipeline to include transformations or additional destinations.

Stay informed with our latest content

opt-in for occasional emails with latest blog articles, promotions, and webinar invites.

Subscribe Our Blog

This field is hidden when viewing the form

Next Steps: Sync an Email Add-On

To get the most out of your form, we suggest that you sync this form with an email add-on. To learn more about your email add-on options, visit the following page (https://www.gravityforms.com/the-8-best-email-plugins-for-wordpress-in-2020/). Important: Delete this tip before you publish the form.

Download DataStream Checklist of Cybersecurity Requirements for Cyber Insurance gated conent

"*" indicates required fields

Embark on your digital transformation journey with our **Free Small Business IT Assessment** and unlock the potential of cloud technology for enhanced cybersecurity, productivity, and growth.
Stay informed with our latest content:

Contct Us

Schedule a Demo

"*" indicates required fields

Embark on your digital transformation journey with our **Free Small Business IT Assessment** and unlock the potential of cloud technology for enhanced cybersecurity, productivity, and growth.
Opt-in

Schedule a CRM Assessment

"*" indicates required fields

Embark on your digital transformation journey with our **Free Small Business IT Assessment** and unlock the potential of cloud technology for enhanced cybersecurity, productivity, and growth.
Stay informed with our latest content:

Get a Free Quote Today

"*" indicates required fields

Let us know how many licensed Microsoft 365 users you have.
Stay informed with our latest updates:

Microsoft 365 Licensing Consultation

"*" indicates required fields

This field is for validation purposes and should be left unchanged.
We would love to answer any questions you may have on Microsoft 365 licensing. Let us know how we can help.
Stay informed with our latest content:

Download our Microsoft 365 Business Premium * Day 1 * Security Setup Checklist

"*" indicates required fields

Stay informed with our latest content:

Free Small Business IT Assessment

"*" indicates required fields

Embark on your digital transformation journey with our **Free Small Business IT Assessment** and unlock the potential of cloud technology for enhanced cybersecurity, productivity, and growth.
Stay informed with our latest content: