Connect Blob Storage & OneDrive via Azure Logic Apps

Azure Logic Apps

Logic App is a cloud-based service that allows us to react to an event in one service (such as SharePoint online) and do something with the data from that event into another service (such as Twitter). It makes it practical and simple for business processes. The users build workflows that automatically perform some business tasks and processes across applications and services. We can connect our business-critical apps and services with Azure Logic Apps, automating our workflows without writing a single line of code.

Before reading this article, please go through some important article links mentioned below,

Prerequisites

  • Microsoft Azure Account

Here, we are going to see how to connect blob storage and oneDrive with approval-based automated workflow using Azure Logic App

Follow the below steps to build a Workflow using a template.

Step 1

  • Log into https://portal.azure.com/.
  • In the dashboard, choose to create a resource and click on Integration. Now, select "Logic App".
    Create a resource

Step 2

  • Enter the name you want to assign to the logic. Select the subscription and resource group where you organize the related resources and location where your logic app is stored. Then, click on "Create".
    Azure Logic App
  • Here is the dashboard. Click "Logic App Designer".
    Logic App Designer

Step 3

Now, click on the Blank Logic App.

Blank Logic App

Step 4

Configure the blob Storage

  • Search for blob storage in the search bar.
    Azure blob storage
  • Choose the Triggers When a blob is added or modified.
    Use connection settings

Step 5

Configure Outlook to send approval mail.

  • Search for Outlook mail
  • Choose the action as send approval mail
    Send approval email
  • Mapping To address and subject
    Mapping to address and subject

Step 7

Configure Control for checking the approval mail

  • Search for Control operation
    Control
  • Choose condition as actions
    Actions
  • Choose Selected options is equal to Approve
    Condition

True

  • Then, if true, choose an operation such as OneDrive.
    Onedrive
  • Choose to create a file
    Create file
  • Choose the Folder path, File name, and File content
    Folder path, file name, file content

The final workflow will be like this.

Final workflow

Now, let us save and run the workflow.

Output

Run the Logic App.

Run the logic app

It's successfully run.

Successfully run

Upload blob in storage.

Upload blob storage

Azure logic app

Finally, it successfully runs and sends Approval mail.

Request for your input

If you choose Approve, then.

Choose approve

It moves the files to the OneDrive.

Azure logic app demo

Summary

I hope you understand how to connect blob storage and OneDrive with approval-based automated workflow using the Azure Logic App. Stay tuned for more Logic App articles.


Similar Articles