i have created a function app using blob trigger. The purpose of this function is whenever the blob created, it has to transfer/copy the file from blob storage container to appservice wwwrrootfolder where my web application resides.
Asked
Active
Viewed 592 times
1
-
What are you trying to accomplish? Is this just to stage code attached to a release pipeline? If not it may not be a good idea because if your function app is deleted and recreate all that data will be lost. Or if the function needs to be scaled to a different region at a later date then they'd need to be synced across the instances. – DreadedFrost Jan 02 '20 at 21:59
-
I am trying to copy a file from blob storage to the folder in my web application once i uploaded to blob. – Sam Jan 04 '20 at 17:25
-
Why not have the web app read the file(s) in the blob? – DreadedFrost Jan 05 '20 at 03:51
1 Answers
0
Not exactly using Azure Function, but I think the easiest way is using Logic Apps + Blob Trigger and FTP connectors:
https://learn.microsoft.com/en-us/azure/connectors/connectors-create-api-azureblobstorage
https://learn.microsoft.com/en-us/azure/connectors/connectors-create-api-ftp

Thiago Custodio
- 17,332
- 6
- 45
- 90
-
I tried using logic app to connect to blob trigger when the file created, but, couldn't find the way to copy that blob file and save it to the folder in my web application. – Sam Jan 04 '20 at 17:29
-
1there are two approaches described in here: https://stackoverflow.com/a/53680775/1384539 – Thiago Custodio Jan 06 '20 at 00:27