本文介绍了Azure Logic应用程序-从URL下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Logic Apps中有一个要求,我需要从网站URL进行HTTP GET,该URL给出了我需要下载到Azure文件存储中的文件.

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.

我可以调用可下载的URL,但不确定如何将文件下载到Azure文件存储目录.

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

请让我知道您的输入.是否需要编写Azure函数或我可以通过HTTP操作来完成下载文件的技巧?

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?

谢谢

SP

推荐答案

我认为自您首次提出这个问题以来,逻辑应用程序已经发展了一些.

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

简短的答案是,您可以仅在Logic Apps中执行此操作.

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

我假设您正在某个时候发出HTTP请求,并且将可下载文件作为应用程序/八位位组的内容类型返回

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

使用"Blob存储"->创建Blob操作",我唯一需要做的就是将二进制函数用作该操作的内容

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

例如二进制文件(body('HTTP'))

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

这导致我的zip文件以blob的形式在Azure存储帐户中创建.

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

如果需要更多信息,请告诉我.

Ping me if you need more info.

这篇关于Azure Logic应用程序-从URL下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 00:38