如何将 Azure 文件共享的 SAS(共享访问签名)下载到 Linux 台机器中

How to download SAS(Shared Acess signature) of an Azure File share onto Linux machine

我有一个为文件共享生成的 SAS(具有读取和列表权限(无写入权限)。 我的 SAS 看起来像以下格式: “https://test.file.core.windows.net/testf1?[some_token_here] .我使用 Azcopy 通过上述 SAS 将文件下载到 windows 虚拟机上,但是 Linux 中不存在 Azcopy。

如何使用上述 SAS 下载文件到我的 linux 虚拟机(我 运行 ubuntu 14.04 但我更喜欢 运行 的答案大多数 linux 发行版)?我宁愿使用一行代码来执行上述任务。我尝试使用 Azure-cli,但没有成功。

ps:我是 Azure 的新手

如果您使用的是最新的 Azure-Cli,您可能想尝试一下:

azure storage file upload [options] [source] [share] [path]

azure storage file download [options] [share] [path] [destination]

请尝试 azure storage file 获取更多帮助信息。