带有Azure Logic应用的Azure存储容器的清单和查看内容?
在Azure中,将为Azure存储中的每个用户制作一个容器,我希望能够列出容器并查看内容的大小,以确保其不超过一定限制。是否可以使用Azure Logic应用程序执行此操作?我没有找到这样做的功能。
In Azure a container will be made for each user in Azure Storage, I want to be able to list the container and view the size of the content to ensure it does not exceed a certain limit. Is it possible to do this with Azure Logic Apps? I am not finding functions to do so.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,这是通过逻辑应用程序可以的。您可以使用“ get blob metadata(v2)”获取文件的所有属性,如果您试图获取内容,则可以使用“ get blob content(v2)”。为了重现此功能,我首先创建了3个容器(IE,Container1,Container2和Container3),然后将一些文件上传到这些尺寸不同的容器中。要获取所有使用
列表的所有容器的列表,请列表blobs(v2)
和used列表blobs(v2)
从上一个步骤到迭代的路径容器内的斑点。在下一步中,我正在使用
get blob metadata(v2)
使用list blobs path
获取每个斑点的属性。然后使用
条件
操作我正在提取小于9128字节的斑点,并将所有这些数据存储到变量中。最后,我正在使用Complose Connector以及大小和路径一起查看所有文件。
结果:
您可以尝试使用以下代码视图来尝试使用以下代码视图在您的环境中测试
yes, this is possible through logic apps. You can use 'Get Blob Metadata (V2)' to get all the properties of the files and if you are trying to get the content, you can use 'Get blob content (V2)'. To reproduce this I first created 3 containers (i.e., Container1, Container2, and Container3) and uploaded a few files into these containers with different sizes. To get the list of all the containers I have used
Lists blobs in the root folder (V2)
and usedLists blobs (V2)
taking the path from the previous step to iterate blobs inside the containers.In the next step I'm using
Get Blob Metadata (V2)
to get the properties of each blob usinglist blobs path
.Then using
Condition
action I'm extracting the blobs which are less than 9128 bytes and storing all this data into variables.Finally, I'm using compose connector to view all the files along with size and path.
RESULT:
You can try using the below code view to test in your environment