---
description: Learn how to send data from Azure Blob to Lemnisk via Azure Function Triggers
---

# Azure Blob

## Overview

The data from Azure Blob can be sent to Lemnisk Customer Data Platform so that the user profile is enhanced and a single view of the customer is achieved. The integration between Azure Blob and Lemnisk is done via Azure Function Triggers.

If you upload a file to Azure Blob, the Azure function will notify us in real-time that a new file has been uploaded, and our API will download the file from Azure Blob and the data will be ingested into the CDP.

## Setup Azure Function Triggers with Azure Blob

**Step 1:** Click on Functions

**Step 2:** Create a function and give a name e.g. "BlobTrigger" and select "Azure Blob Storage Trigger" as the template.

**Step 3:** In Code + Test App within the above function, modify the code to the one shared by Lemnisk Account Manager.

<figure><img src="https://1782533751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FazJDZwzHkmWIbkYOetQH%2Fuploads%2FMm8JV2rBHplcm6KyyM1C%2FScreenshot%202023-02-09%20at%201.33.34%20PM.png?alt=media&#x26;token=e9dd930f-1105-4cf9-ba8d-a2033c7ae4ff" alt=""><figcaption></figcaption></figure>

**Step 4:** Go to Your Storage Account -> Events

**Step 5:** Create an Event Subscription and fill in the details.

**Step 6:** Select the event type as `Blob Created` and endpoint type as Azure Function

**Step 7:** Select Pre-Created Azure Function in Step 1 and Step 3.

**Step 8:** Confirm Selection

<figure><img src="https://1782533751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FazJDZwzHkmWIbkYOetQH%2Fuploads%2FpImVM7BTVLRXXc9tGJFF%2FScreenshot%202023-02-09%20at%201.37.16%20PM.png?alt=media&#x26;token=59214e85-897a-48be-9e4d-b97f6d9cdd49" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
Please ensure the data format (headers) is fixed for each file and each record has at least 1 user identifier (email, phone number, user ID, etc.)
{% endhint %}
