使用PowerShell解压缩Blob文件 [英] Unzip Blob Files using PowerShell

查看:253
本文介绍了使用PowerShell解压缩Blob文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

说明:我想从Azure blob中的一个容器解压缩多个文件,然后将它们复制到同一blob中的另一个容器.在PowerShell中有没有办法做到这一点?

Description: I want to unzip multiple files from a container in Azure blob and copy them to another container in the same blob. Is there a way to do this in PowerShell?

我知道可以使用逻辑应用程序完成此操作,但是我们的首选是Azure PowerShell

I know this can be done using logic app, but our preference is Azure PowerShell

推荐答案

您无法直接解压缩Azure存储帐户中的文件,您需要从Azure存储帐户下载文件 到本地计算机并解压缩数据,然后上传到新容器,如果要复制文件而没有解压缩,则可以遵循以下脚本:

You can’t directly unzip the Files in Azure storage account, you need to download the files from Azure storage account to local machine and unzip the data and then upload to new container, if you want copy the files with out unzip you can follow below script:

#Server side storage copy


SourceStorageAccount ="storageaccount1"
SourceStorageAccount = "storageaccount1"


SourceStorageKey ="yourKey1 =="
SourceStorageKey = "yourKey1=="


这篇关于使用PowerShell解压缩Blob文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆