Azure

Set The Auto Delete For Outdated Azure Blobs Based mostly On The Final Modified Time Utilizing Azure Logic App

Azure Logic Apps

Logic App is a cloud-based service that enables us to react to an occasion in a single service (equivalent to SharePoint on-line) and do one thing with the information from that occasion into one other service (equivalent to Twitter). It makes it sensible and easy for enterprise processes. The customers construct workflows that routinely carry out some enterprise duties and processes throughout purposes and providers. We are able to join our business-critical apps and providers with Azure Logic Apps, automating our workflows with out writing a single line of code.

Earlier than studying this text, please undergo some necessary article hyperlinks talked about under,

Stipulations

Comply with the under steps to construct a Workflow utilizing a template.

Step 1

  • Log into https://portal.azure.com/.
  • Within the dashboard, select to create a useful resource and click on on Integration. Now, choose “Logic App”.

Step 2

Enter the identify you wish to assign to the logic. Choose the subscription and useful resource group the place you manage the associated assets and placement the place your logic app is saved. Then, click on on “Create”.

Set The Auto Delete For Old Azure Blobs Based On The Last Modified Time Using Azure Logic App

Right here is the dashboard. Click on “Logic App Designer”.

Set The Auto Delete For Old Azure Blobs Based On The Last Modified Time Using Azure Logic App

Step 3 – Selecting the template

Now, select the template “Auto tier Azure blobs primarily based on the final modified time”.

Click on on “use this template”

Set The Auto Delete For Old Azure Blobs Based On The Last Modified Time Using Azure Logic App

Step 4 – Mapping the storage account

Signal into Azure Blob Storage

Set The Auto Delete For Old Azure Blobs Based On The Last Modified Time Using Azure Logic App

Mapping your storage account with storage identify and Entry Key. Then click on on Create

Set The Auto Delete For Old Azure Blobs Based On The Last Modified Time Using Azure Logic App

Click on on Create

Set The Auto Delete For Old Azure Blobs Based On The Last Modified Time Using Azure Logic App

Step 5 – Configure the Recurrence.

Select the interval (Right here, you possibly can change based on your wants), Frequency, Time Zone and Begin time.

Set The Auto Delete For Old Azure Blobs Based On The Last Modified Time Using Azure Logic App

Right here, we’re selecting 1 as interval and Minute as frequency.

Set The Auto Delete For Old Azure Blobs Based On The Last Modified Time Using Azure Logic App

Step 6 – Set expiration age

Subsequent, select set tier age for the blob. Right here, we have to give the worth as -1(we have to change the tier for 1 days outdated blobs)

Set The Auto Delete For Old Azure Blobs Based On The Last Modified Time Using Azure Logic App

Step 7 – Mapping the blobs

Select the folder of the blob

Set The Auto Delete For Old Azure Blobs Based On The Last Modified Time Using Azure Logic App

As

Set The Auto Delete For Old Azure Blobs Based On The Last Modified Time Using Azure Logic App

Step 8 – Mapping the situations

Connecting the situations

Set The Auto Delete For Old Azure Blobs Based On The Last Modified Time Using Azure Logic App

If the situation is true, then “delete blob”

Set The Auto Delete For Old Azure Blobs Based On The Last Modified Time Using Azure Logic App

The ultimate workflow shall be like this.

Set The Auto Delete For Old Azure Blobs Based On The Last Modified Time Using Azure Logic App

Now, allow us to save and run the workflow.

Output

First, test the outdated blob

Set The Auto Delete For Old Azure Blobs Based On The Last Modified Time Using Azure Logic App

Run the Logic App

Set The Auto Delete For Old Azure Blobs Based On The Last Modified Time Using Azure Logic App

Its efficiently run

Set The Auto Delete For Old Azure Blobs Based On The Last Modified Time Using Azure Logic App

Simply refresh the blob to see the consequence.

Set The Auto Delete For Old Azure Blobs Based On The Last Modified Time Using Azure Logic App

Now, it efficiently turns the outdated blob tier acquired deleted.

Set The Auto Delete For Old Azure Blobs Based On The Last Modified Time Using Azure Logic App

Abstract

I hope you understood methods to set the Auto delete of the outdated Azure blobs primarily based on the final modified time stamp utilizing Azure Logic App. Keep tuned for extra Logic App articles.

Show More

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button