简体   繁体   English

如何将 Azure Function 绑定到 Python 中的 blob 容器?

[英]How to bind Azure Function to a blob container in Python?

I have a blob container containing multiple files.我有一个包含多个文件的 blob 容器。 I'm interested in binding the last modified one as input for an azure function.我有兴趣将最后修改的一个绑定为 azure function 的输入。 The function is implemented in python. function 在 python 中实现。

I thought I could do this by binding a blob container as CloudBlobContainer and then iterate over the files to find the last modified one.我想我可以通过将 blob 容器绑定为 CloudBlobContainer 来做到这一点,然后遍历文件以找到最后修改的文件。 According to this thread it seems like binding to a container is possible in C#.根据这个线程,在 C# 中似乎可以绑定到容器。 But I can't figure out how to do this in Python.但我不知道如何在 Python 中做到这一点。 CloudBlobContainer doesn't seem to exist for Python. Python 似乎不存在 CloudBlobContainer。 What other alternatives do I have?我还有什么其他选择?

According to this thread it seems like binding to a container is possible in C#.根据这个线程,在 C# 中似乎可以绑定到容器。

It seems that you have already seen the Usage of Blob Trigger Azure Function document.Another evidence is that,actually,all bindings of dev language platform except C# are built on the ExtensionBundle .You could see there is no Container type in the supported list. It seems that you have already seen the Usage of Blob Trigger Azure Function document.Another evidence is that,actually,all bindings of dev language platform except C# are built on the ExtensionBundle .You could see there is no Container type in the supported list.

在此处输入图像描述

So, i guess you have to implement it with python blob storage sdk in the Azure Function method.所以,我想你必须在 Azure Z86408593C34AF77FDDZ0DF93 Or you could submit feedback to Azure Function Team to improve the product.或者您可以向 Azure Function 团队提交反馈以改进产品。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM