azure - 如何使用 az storage fs 目录下载 Azure 存储中目录的内容?

标签 azure azure-devops devops azure-storage

目前,我正在使用 az storage blob directory download,但每次运行它时,我都会得到:此命令已隐式弃用,因为命令组“storage blob directory”已弃用,并且将在未来版本中删除。请改用“az storage fs 目录”。

我检查了docs我似乎找不到 --file-system 的值应该是什么。有人可以分享一个将 Blob 内的容器内的目录(文件夹)内容从 Azure 存储下载到 Windows 计算机的示例吗?

最佳答案

--file-system是你的容器名称

az storage fs directory download -f myfilesystem --account-name mystorageaccount -s SourceDirectoryPath -d "<local-path>" --recursive

上面将下载整个目录

关于azure - 如何使用 az storage fs 目录下载 Azure 存储中目录的内容?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74851874/

相关文章:

windows - 抛出异常:System.Core.dll中的 'System.InvalidOperationException'

asp.net - 无法获取 Azure 应用服务中托管的 .NET 网站的临时目录

.net - Azure DevOps - 无法运行已安装的 dotnet 工具

powershell - VSTS : Pass build/release variables into Powershell script task

macos - xdotool不起作用-错误:无法打开显示:(空)

database - 导出 Microsoft Azure WordPress Web 应用程序的数据库

azure - 如何使用自动化帐户 PowerShell Runbook 重置 Azure 服务主体的凭据?

azure-devops - 如何指向 Azure Pipelines 构建的引用存储库上的特定提交

Azure DevOps - 本地部署管道

centos - docker 灯 Centos7 : '/bin/sh -c systemctl start httpd.service' returned a non-zero code: 1