Managing Azure Blob Storage with Logic Apps

Introduction 

 
In this article, let’s explore managing BLOB storage using the Azure Logic app. Before getting started, let’s go over BLOB storage. BLOB storage is for storing massive amounts of unstructured data, such as binary data. It is very much ideal for serving documents. Coming to Azure Logic, you can take a look at an overview of the Logic apps. The Logic App is a way of making things easier while implementing scalable integrations and workflows in the cloud. It provides a way to model and automate the process as a series of steps known as a workflow.
 
Now, we are going to explore how to build a logic app that gives an email alert when the user uploads a file to BLOB storage.
 
Prerequisites
  • Active Azure Subscription.
 
Step 1
 
The first step is to create storage in Azure portal. For that, select >> new resource >> storage >> Storage account- blob, file, table, queue and provide the basic requirements as mentioned below for creating storage. Finally Select >> Review + create.
 
Managing Azure Blob Storage By Logic Apps 
 
Managing Azure Blob Storage By Logic Apps 
Step 2
 
After creating a storage account, it’s time to create a Container. For that Click >> Container to create a Container.
 
Managing Azure Blob Storage By Logic Apps 
Step 3
 
The next step is to select >> + Container and provide a name for the Container and select the Public Access Level to Container (Anonymous read access for containers & blob) and click >> OK. So, a new container will be created.
 
Managing Azure Blob Storage By Logic Apps 
 
Managing Azure Blob Storage By Logic Apps 
Step 4
 
We can proceed to the next step, which is to create a logic app. I have provided the link about Azure Logic Apps. Even though we can see it in creation once again.
 
Switch back to the Azure portal again and select >> + new resource. Search for the Azure Logic App and Select >> create.
 
Managing Azure Blob Storage By Logic Apps 
 
Step 5
 
The next step is to create an Azure Logic App by providing the basic required values such as a unique name for the Azure Logic App. Select >> the resource group and leave the default fields as-is. Then, select >> Review + create to creating an Azure Logic App.
 
Managing Azure Blob Storage By Logic Apps 
 
Step 6
 
After creating the Azure Logic App select >> + Blank Logic App, search for the name blob, and select >> Azure Blob Storage.
 
 
 
Managing Azure Blob Storage By Logic Apps 
Step 7
 
After selecting Azure Blob Storage, now it’s time to provide a trigger. For that Select >> when a blob is added or modified (properties only)
 
 Managing Azure Blob Storage By Logic Apps
 
Step 8
 
Let’s keep proceed to the next step. Enter a connection name, provide a name for the connection and select >> Storage Account and Select >> Create.
 
Managing Azure Blob Storage By Logic Apps 
Step 9
 
Now we need to select the container that we created. We can modify the interval time with frequency according to our needs. In this article, I haven’t changed anything and kept all values as default.
 
Managing Azure Blob Storage By Logic Apps 
 
Step 10
 
Continue to the next step, which is to search for Outlook and Select >> outlook.com
 
Managing Azure Blob Storage By Logic Apps 
 
Step 11
 
From the outlook action, Select >> Send an Email and provide the Email address of the consent user and enter the subject, as well as a body part with dynamic content.
 
Managing Azure Blob Storage By Logic Apps 
 
Managing Azure Blob Storage By Logic Apps 
Step 12
 
Here comes the final part. After selecting the action to be done and defining the parameters, finally, click >> Save.
 
Managing Azure Blob Storage By Logic Apps 
 
Step 13
 
After Saving the Logic App with the required parameters, now it's finally showtime.
Click >> Run.
 
Managing Azure Blob Storage By Logic Apps 
 
So, when a user uploads a file into the container which has been created in storage, the Azure Logic App will take care of sending mail to the user that has added the following file to the storage account.
 
In this post, we created storage, a container, and integrated blob storage with Azure Logic Apps. This way, we can get an email if storage has been uploaded with any file.
 
I hope this article was useful to you, and thanks for reading!


Similar Articles