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”.
Right here is the dashboard. Click on “Logic App Designer”.
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”
Step 4 – Mapping the storage account
Signal into Azure Blob Storage
Mapping your storage account with storage identify and Entry Key. Then click on on Create
Click on on Create
Step 5 – Configure the Recurrence.
Select the interval (Right here, you possibly can change based on your wants), Frequency, Time Zone and Begin time.
Right here, we’re selecting 1 as interval and Minute as frequency.
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)
Step 7 – Mapping the blobs
Select the folder of the blob
As
Step 8 – Mapping the situations
Connecting the situations
If the situation is true, then “delete blob”
The ultimate workflow shall be like this.
Now, allow us to save and run the workflow.
Output
First, test the outdated blob
Run the Logic App
Its efficiently run
Simply refresh the blob to see the consequence.
Now, it efficiently turns the outdated blob tier acquired deleted.
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.