简体   繁体   English

如何使用逻辑应用程序与用于大文件的 azure 函数从 blob 存储上传文件

[英]how can I upload a file from blob storage using logic apps vs azure functions for large files

I need to use logic app to load some csv files in a files storage in Azure to a blob storage.我需要使用逻辑应用程序将 Azure 文件存储中的一些 csv 文件加载到 blob 存储中。 what trigger to use in logic app to access the files storage in Azure?在逻辑应用程序中使用什么触发器来访问 Azure 中的文件存储?

The files are quite large up to 1 GB and I'd like to be able to send them to an ftp server or to a restful endpoint for upload (using example PUT verb).这些文件非常大,高达 1 GB,我希望能够将它们发送到 ftp 服务器或宁静的端点进行上传(使用示例 PUT 动词)。

Is logic apps able to do this or would it be better to use Azure functions?逻辑应用程序是否能够做到这一点,还是使用 Azure 函数会更好? Any resources or help pointing me in right direction would be useful.任何为我指明正确方向的资源或帮助都会很有用。

For your question about which trigger you can use in logic app, it depends on your requirements.对于您可以在逻辑应用程序中使用哪个触发器的问题,这取决于您的要求。 If you want the logic app be triggered periodically, you can add a " Recurrence " schedule.如果你想在逻辑应用定期触发,你可以添加一个“ 复发”的时间表。 If you want to trigger it manually, you can add a request trigger , then you can trigger the logic app by calling the request url.如果想手动触发,可以添加一个请求触发器,然后调用请求url就可以触发逻辑应用。

For your concern about if logic app can do this, I'm a little confused about what you want to do by logic app, you want to load csv files from azure file storage to blob storage in logic app?对于您担心逻辑应用程序是否可以执行此操作,我对逻辑应用程序要执行的操作有些困惑,您想将 csv 文件从 azure 文件存储加载到逻辑应用程序中的 blob 存储吗? Or load csv files from blob storage to ftp?或者将 csv 文件从 blob 存储加载到 ftp? Both of them can be implemented by logic app if your files don't exceed its limits.如果您的文件不超过其限制,它们都可以由逻辑应用程序实现。

The "Azure File Storage" connector has general limits below: “Azure 文件存储”连接器具有以下一般限制: 在此处输入图片说明

The "Azure Blob Storage" connector also has some general limits, shown as below: “Azure Blob Storage”连接器也有一些一般限制,如下所示: 在此处输入图片说明

Ftp connector's limits are shown as below: Ftp连接器的限制如下所示: 在此处输入图片说明

According to the two screenshots above, if your 1 GB files are lots of small files(the number of list blobs can't exceed 5000), your requirements can be implemented in logic app.根据上面的两个截图,如果你的 1 GB 文件是很多小文件(列表 blob 的数量不能超过 5000),你的要求可以在逻辑应用程序中实现。

If you want to load files from azure file storage to blob storage(your files don't exceed the limits above), you can refer to the logic app below:如果要将文件从 azure 文件存储加载到 blob 存储(您的文件不超过上述限制),可以参考下面的逻辑应用: 在此处输入图片说明

If you want to load files from azure blob storage to ftp(your files don't exceed the limits above), you can refer to the logic app below:如果要将文件从 azure blob 存储加载到 ftp(您的文件不超过上述限制),您可以参考下面的逻辑应用: 在此处输入图片说明

By the way, I think it is necessary to mention the price of logic app.顺便说一句,我认为有必要提到逻辑应用程序的价格。 It is billed by number of actions' execution, we can know more information about logic app price by this link .它是按动作执行次数计费的,我们可以通过这个 链接了解更多关于逻辑应用价格的信息。 So if you have too many files and it will lead to too many action executions in you logic app, you need to notice the cost between logic app and azure function.因此,如果您的文件过多,会导致您的逻辑应用程序中执行过多的操作,您需要注意逻辑应用程序和 azure 函数之间的成本。 Maybe function will be cheaper than logic app.也许函数会比逻辑应用程序便宜。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Python将Azure Blob存储中的大型JSON文件拆分为每个记录的单个文件? - How can I split large JSON file in Azure Blob Storage into individual files for each record using Python? 如何使用位于 azure webapp 中的 .sh 文件将多个文件从本地存储上传到 azure blob 存储 - How to upload multiple files from local storage to the azure blob storage using .sh file that located in azure webapp 如何使用 Azure 逻辑应用程序将 Json 文件从 Azure Blob 存储解析到 Azure Sql - How do I parse Json file from azure blob storage to Azure Sql using Azure logic app 如何使用 azure 逻辑应用程序、function 应用程序从 azure 存储(文件共享或 BLOB)读取、写入、删除文件 - how to use azure logic apps, function aps to read, write, delete files from an azure storage(file share or BLOB) 使用逻辑应用读取 azure blob 存储文件夹中的文件列表,并将带扩展名的文件名插入 Azure SQL - Read list of files in azure blob storage folder using Logic Apps and insert file names with extension into Azure SQL 无法使用 Azure 函数节点将文件上传到 Azure blob 存储 - Cannot upload file to Azure blob storage using Azure functions Node Azure 逻辑应用程序 - 如何将文件从字节数组上传到 Azure Blob 存储 - Azure Logic App - How to upload file to Azure Blob Storage from byte array 如何在托管 azure 应用服务中将大文件上传到 blob 存储 - How to upload large files to blob storage in hosted azure app service 如何在 Python 中使用 Azure Functions 的 Azure Blob 存储绑定将 JSON 数据上传到 Azure 存储 blob - How to upload JSON data to Azure storage blob using Azure Blob storage bindings for Azure Functions in Python 如何使用Azure Functions with HTTP trigger在Azure blob存储中上载excel文件? - How to Upload excel file in a Azure blob storage using Azure Functions with HTTP trigger?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM