%3CLINGO-SUB%20id%3D%22lingo-sub-1302025%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20file%20watcher%20on%20containers%20in%20Azure%20Storage%20account%20using%20Azure%20Logic%20App%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1302025%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22dm-list-comments__item-content%22%3E%3CDIV%20class%3D%22jive-rendered-content%22%3E%3CP%3ESidhu%2C%3C%2FP%3E%3CP%3EThanks%20for%20your%20effort.%20Great%20document.%20Excellent.%3C%2FP%3E%3CP%3EKeep%20sharing%20more.%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3ESandeep%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1302192%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20file%20watcher%20on%20containers%20in%20Azure%20Storage%20account%20using%20Azure%20Logic%20App%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1302192%22%20slang%3D%22en-US%22%3E%3CP%3EExcellent%20Work....!%26nbsp%3B%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Fhtml%2Femoticons%2F1f44f_1f3fc.png%22%20alt%3D%22%3Aclapping_hands%3A%22%20title%3D%22%3Aclapping_hands%3A%22%20%2F%3E%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Fhtml%2Femoticons%2F1f44f_1f3fc.png%22%20alt%3D%22%3Aclapping_hands%3A%22%20title%3D%22%3Aclapping_hands%3A%22%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1301993%22%20slang%3D%22en-US%22%3EAdd%20file%20watcher%20on%20containers%20in%20Azure%20Storage%20account%20using%20Azure%20Logic%20App%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1301993%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3EScenario%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EYou%20want%20to%20get%20an%20alert%20whenever%20there%20are%20events%20such%20as%20creation%20of%20new%20blob%20or%20modification%20of%20existing%20blobs%20in%20the%20storage%20account.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EPrerequisites%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EAzure%20Storage%20General%20Purpose%20v2(GPv2)%20or%20ADLS%20Gen%202%20account%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EAction%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EAzure%20Storage%20events%20allow%20applications%20to%20react%20to%20events%2C%20such%20as%20the%20creation%20and%20deletion%20of%20blobs.%20It%20does%20so%20without%20the%20need%20for%20complicated%20code%20or%20expensive%20and%20inefficient%20polling%20services.%20You%20can%20make%20use%20of%20Azure%20Logic%20apps%20which%20helps%20you%20to%20automate%20the%20process%20and%20provide%20an%20alert%20if%20any%20modification%20is%20done%20on%20the%20existing%20blobs%20or%20if%20a%20new%20blob%20is%20created.%3C%2FP%3E%0A%3CP%3EYou%20can%20follow%20the%20below%20steps%20to%20create%20an%20Azure%20Logic%20App%20and%20configure%20the%20alerts%20for%20creation%20and%20modification%20of%20blobs%20on%20a%20specific%20container%3A%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%201%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ECreate%20a%20new%20Logic%20App%20using%20Azure%20Portal%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Image_1.png%22%20style%3D%22width%3A%20452px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F183882iB0EBE191C1D26748%2Fimage-dimensions%2F452x368%3Fv%3D1.0%22%20width%3D%22452%22%20height%3D%22368%22%20title%3D%22Image_1.png%22%20alt%3D%22Image_1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%202%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EOnce%20the%20Logic%20app%20is%20created%2C%20please%20go%20to%20%E2%80%98Logic%20app%20designer%E2%80%99%20and%20select%20%E2%80%98Blank%20Logic%20App%E2%80%99.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Image_3.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F183885i54914013CF5CA2E3%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Image_3.png%22%20alt%3D%22Image_3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%203%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EIn%20the%20%E2%80%98Triggers%E2%80%99%20section%2C%20search%20for%20%E2%80%98Azure%20Blob%20Storage%E2%80%99%2C%20you%20will%20be%20seeing%20a%20trigger%20named%20%E2%80%98When%20a%20blob%20is%20added%20or%20modified%E2%80%99.%20Select%20it.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sindhu_Hegde_2-1586759358322.png%22%20style%3D%22width%3A%20457px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F183874iFF6CBA5D1ED6E52D%2Fimage-dimensions%2F457x120%3Fv%3D1.0%22%20width%3D%22457%22%20height%3D%22120%22%20title%3D%22Sindhu_Hegde_2-1586759358322.png%22%20alt%3D%22Sindhu_Hegde_2-1586759358322.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%204%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ESelect%20the%20storage%20account%20on%20which%20you%20want%20to%20monitor%20the%20events%20as%20shown%20below%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sindhu_Hegde_3-1586759400338.png%22%20style%3D%22width%3A%20461px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F183875i261A75CC655E604B%2Fimage-dimensions%2F461x171%3Fv%3D1.0%22%20width%3D%22461%22%20height%3D%22171%22%20title%3D%22Sindhu_Hegde_3-1586759400338.png%22%20alt%3D%22Sindhu_Hegde_3-1586759400338.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3CSTRONG%3EStep%205%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ESelect%20the%20container%20name%20you%20would%20like%20to%20monitor%20and%20provide%20the%20Interval%20and%20frequency%20as%20per%20your%20requirement%20and%20click%20on%20Save.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sindhu_Hegde_4-1586759469469.png%22%20style%3D%22width%3A%20500px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F183876i4E84E84E4BAC08D0%2Fimage-dimensions%2F500x165%3Fv%3D1.0%22%20width%3D%22500%22%20height%3D%22165%22%20title%3D%22Sindhu_Hegde_4-1586759469469.png%22%20alt%3D%22Sindhu_Hegde_4-1586759469469.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%206%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EOnce%20this%20Trigger%20is%20added%2C%20click%20on%20%E2%80%98%2B%20New%20Step%E2%80%99.%20It%20opens%20a%20blade%20where%20you%20can%20choose%20an%20action.%20Search%20for%20%E2%80%98Office%20365%20Outlook%E2%80%99%26nbsp%3Band%20select%20the%20option.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sindhu_Hegde_5-1586759525161.png%22%20style%3D%22width%3A%20464px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F183877iB8A0A731CE922897%2Fimage-dimensions%2F464x167%3Fv%3D1.0%22%20width%3D%22464%22%20height%3D%22167%22%20title%3D%22Sindhu_Hegde_5-1586759525161.png%22%20alt%3D%22Sindhu_Hegde_5-1586759525161.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3BIn%20%E2%80%98Office%20365%20Outlook%E2%80%99%2C%20you%20have%20an%20option%20to%20Send%20an%20email%20(V2).%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sindhu_Hegde_6-1586759591947.png%22%20style%3D%22width%3A%20377px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F183878i55623F8CC2E58337%2Fimage-dimensions%2F377x198%3Fv%3D1.0%22%20width%3D%22377%22%20height%3D%22198%22%20title%3D%22Sindhu_Hegde_6-1586759591947.png%22%20alt%3D%22Sindhu_Hegde_6-1586759591947.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3CSTRONG%3EStep%207%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThis%20opens%20a%20window%20where%20you%20can%20configure%20the%20email%20content%20and%20also%20the%20dynamic%20content%20as%20shown%20below%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sindhu_Hegde_7-1586759633421.png%22%20style%3D%22width%3A%20414px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F183879i2186F1D0D04C6A51%2Fimage-dimensions%2F414x357%3Fv%3D1.0%22%20width%3D%22414%22%20height%3D%22357%22%20title%3D%22Sindhu_Hegde_7-1586759633421.png%22%20alt%3D%22Sindhu_Hegde_7-1586759633421.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sindhu_Hegde_8-1586759667886.png%22%20style%3D%22width%3A%20423px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F183880i2B8A29418BA57EC1%2Fimage-dimensions%2F423x298%3Fv%3D1.0%22%20width%3D%22423%22%20height%3D%22298%22%20title%3D%22Sindhu_Hegde_8-1586759667886.png%22%20alt%3D%22Sindhu_Hegde_8-1586759667886.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAdd%20the%20configuration%20as%20per%20your%20requirement%20and%20Save%20it.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%208%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EOnce%20the%20configuration%20is%20done%2C%20I%20uploaded%20a%20file%20in%20the%20storage%20account%20and%20was%20able%20to%20get%20an%20email%20that%20contains%20the%20information%20of%20the%20file%20uploaded%20as%20shown%20below%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Image_8.png%22%20style%3D%22width%3A%20460px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F183881i54F6D27B7F976FD2%2Fimage-dimensions%2F460x256%3Fv%3D1.0%22%20width%3D%22460%22%20height%3D%22256%22%20title%3D%22Image_8.png%22%20alt%3D%22Image_8.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorSindhu_Hegde_17%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3EHope%20this%20helps!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1301993%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Storage%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

Scenario:

You want to get an alert whenever there are events such as creation of new blob or modification of existing blobs in the storage account.

 

Prerequisites:

  • Azure Storage General Purpose v2(GPv2) or ADLS Gen 2 account

 

Action:

Azure Storage events allow applications to react to events, such as the creation and deletion of blobs. It does so without the need for complicated code or expensive and inefficient polling services. You can make use of Azure Logic apps which helps you to automate the process and provide an alert if any modification is done on the existing blobs or if a new blob is created.

You can follow the below steps to create an Azure Logic App and configure the alerts for creation and modification of blobs on a specific container:

Step 1:

Create a new Logic App using Azure Portal:

Image_1.png

 

Step 2:

Once the Logic app is created, please go to ‘Logic app designer’ and select ‘Blank Logic App’.

Image_3.png

 

Step 3:

In the ‘Triggers’ section, search for ‘Azure Blob Storage’, you will be seeing a trigger named ‘When a blob is added or modified’. Select it.

Sindhu_Hegde_2-1586759358322.png

 

Step 4:

Select the storage account on which you want to monitor the events as shown below:

Sindhu_Hegde_3-1586759400338.png

 

 Step 5:

Select the container name you would like to monitor and provide the Interval and frequency as per your requirement and click on Save.

Sindhu_Hegde_4-1586759469469.png

 

Step 6:

Once this Trigger is added, click on ‘+ New Step’. It opens a blade where you can choose an action. Search for ‘Office 365 Outlook’ and select the option.

Sindhu_Hegde_5-1586759525161.png

 In ‘Office 365 Outlook’, you have an option to Send an email (V2).

Sindhu_Hegde_6-1586759591947.png

 

 Step 7:

This opens a window where you can configure the email content and also the dynamic content as shown below:

Sindhu_Hegde_7-1586759633421.png

Sindhu_Hegde_8-1586759667886.png

Add the configuration as per your requirement and Save it.

 

Step 8:

Once the configuration is done, I uploaded a file in the storage account and was able to get an email that contains the information of the file uploaded as shown below:

Image_8.png

 

Hope this helps!

2 Comments
Occasional Visitor

Sidhu,

Thanks for your effort. Great document. Excellent.

Keep sharing more.

Regards,

Sandeep

Occasional Visitor

Excellent Work....! 👏🏼👏🏼