Search code examples
azureazure-eventhub

Can azure event hub ingest json events from azure blog storage without writing any code?


Is it possible to use some ready made construct in azure cloud environment to ingest the events (in json format) that are currently stored in azure blob storage and have it submit those events directly to azure event hub without writing any (however small) custom code? In other words, I would like to use configuration driven approach only.


Solution

  • Sure. You can try to use Azure Logic Apps to realize your needs without any code or just with some function expressions, please refer to the offical documents of Azure Logic Apps to know more details.

    The logic flow is as the figure below.

    enter image description here

    You can refer to my sample below to make it works. enter image description here


    Here is my sample to receive an event from my EventHub and transfer to Azure Blob Storage to create a new blob for storing the event data.

    1. Create an Azure Logic App instance on Azure portal, it should be easy for you.
    2. Move to the tab Logic app designer to configure the logic flow. enter image description here
    3. Click Save and Run buttons. Then, use ServiceBusExplorer (downloaded from https://github.com/paolosalvatori/ServiceBusExplorer/releases) to send event message and check whether new blob created using AzureStorageExplorer. It works fine after a few minutes.

      enter image description here

      enter image description here

      enter image description here