You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何使用命令行或Azure门户下载ADLS Gen2中的指定文件?

Azure ADLS Gen2 文件下载问题解决

命令行(az storage fs file download)正确用法

你的错误核心是混淆了ADLS Gen2文件系统和文件共享的参数:

  • az storage fs 系列命令针对ADLS Gen2,需用--file-system指定容器(对应你URI里的feed-pipeline-workspace),而非--share-name(该参数属于az storage file文件共享命令)
  • -f/--destination 参数是指定本地保存的文件路径/名称,不是文件类型,比如-f ./local-snapshot.parquet

正确命令示例

az storage fs file download \
  --file-system feed-pipeline-workspace \
  --account-name my-company-dev \
  --path "myname/1/staging-snapshot-repo/form/Fulfillment/2022/01/02/snapshot-form-Fulfillment-20220102_000000.parquet" \
  --destination "./snapshot-form-Fulfillment-20220102.parquet"

参数说明:

  • --file-system: 对应你URI中的feed-pipeline-workspace(ADLS Gen2的容器/文件系统)
  • --account-name: 对应URI中的my-company-dev(存储账户名)
  • --path: 文件在文件系统内的相对路径(URI中存储账户之后的部分)
  • --destination: 本地保存的文件路径和名称,可自定义

Azure Portal下载步骤

  1. 登录ms.portal.azure.com,找到存储账户my-company-dev
  2. 在左侧菜单「数据存储」下选择「容器」
  3. 找到名为feed-pipeline-workspace的容器并进入
  4. 按照路径层级依次点击:myname → 1 → staging-snapshot-repo → form → Fulfillment → 2022 → 01 → 02
  5. 找到目标parquet文件,点击后选择「下载」按钮即可保存到本地

内容的提问来源于stack exchange,提问作者WestCoastProjects

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.22 12:05:24