Azure Logic Apps-Download File from URL

心已入冬 提交于 2019-12-11 14:49:46

问题


I have a requirement in Logic Apps where I need to do HTTP GET from a website URL which gives a file which I need to download to Azure File Storage.

I am able to call the downloadable URL but not sure how to go about downloading the file to Azure File storage directory.

Please let me know your inputs.Do I need to write an Azure function or can I get the HTTP action to do the trick to download the file?

Thanks,

SP


回答1:


I suppose Logic apps has moved on a little since you first asked this question.

The short answer is yes you can do this solely within Logic Apps.

I'm assuming you're making a HTTP Request at some point and the downloadable file is being returned as a content type of application/octet

Use a 'Blob Storage'->Create Blob action, the only thing I needed to do was to use the binary function as the content in this action

e.g. binary(body('HTTP'))

This caused my zip file to be created in the Azure storage account as a blob.

Ping me if you need more info.




回答2:


1) You need to create one web api function or azure funtion which return file content like i tried for zip file

2) You need to call that method using HTTP connector

3) You can use "azure File storage" connector "create file" action

in that you need to pass file and file content which return from your GET API Url

if you need more help feel free to ask



来源:https://stackoverflow.com/questions/49311455/azure-logic-apps-download-file-from-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!