Share via

Azure Function app on blob storage event trigger

Shubham Tekade 20 Reputation points
2025-11-11T10:20:19.5333333+00:00

I tried to create function app for blob storage event trigger on ADLS container it is not working.

If I create function app on Blob container it is working fine as expected.

So I have question whether, it is possible to create blob storage event trigger on ADLS containers or not?

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

0 comments No comments

Answer accepted by question author
  1. Anurag Rohikar 3,190 Reputation points Microsoft External Staff Moderator
    2025-11-12T11:04:19.6366667+00:00

    Hello Shubham Tekade, Azure Functions can trigger on Blob Storage events, but when using Azure Data Lake Storage (ADLS) Gen2, the approach differs slightly due to the use of Event Grid for event notifications.

    Reference: Azure Functions Blob Trigger

    Here’s a breakdown of how to resolve this issue:

    1. Event Grid Integration with ADLS Gen2:
      • Unlike Blob Storage, which natively integrates with Azure Functions via blob triggers, ADLS Gen2 relies on Event Grid to emit events when data is added or modified.
      • If you're using ADLS Gen2, you will need to create an Event Grid subscription for the container that listens for events such as Microsoft.Storage.BlobCreated or Microsoft.Storage.BlobDeleted.
      • Reference: Azure Blob Storage as Event Grid source (includes ADLS Gen2 with hierarchical namespace)
    2. Setting Up Event Grid Trigger:

    Instead of using the standard Blob Trigger in the function app, you should use the Event Grid trigger. This trigger listens to events sent by Event Grid, which in turn listens to events generated by ADLS Gen2.

    1. Permissions and Access:

    Ensure the Azure Function has appropriate permissions to listen to events from Event Grid. This might involve granting the necessary roles to the Azure Function App for access to Event Grid.

    1. Troubleshooting:

    Verify that the Event Grid subscription is correctly set up for the ADLS container. You can check the Event Grid logs for any issues with the event delivery.

    Documentation:

    Hope this helps! Let me know if you have further questions.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2025-11-11T10:20:30.03+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Creating an Azure Function app that is triggered by events in Azure Data Lake Storage (ADLS) containers is not directly supported in the same way as it is for standard Blob Storage containers. The documentation indicates that Blob Storage triggers are designed to work with general-purpose storage accounts and may not function as expected with ADLS.

    If you are experiencing issues when trying to set up an event trigger on an ADLS container, it is likely due to this limitation. For event-driven processing, you might need to consider alternative approaches, such as using Azure Event Grid with ADLS to route events to your Azure Functions, or implementing a different architecture that supports your requirements.


    References:

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.