[英]azure command line tool for linux machine to upload/download data to/from Azure Storage
I am looking for azure command line tool in linux. 我正在寻找linux中的azure命令行工具。 I found azure-cli, but its not supporting upload and download feature in azure storage (As per my knowledge).
我找到了azure-cli,但它不支持azure存储中的上传和下载功能(据我所知)。
I found some CLI tools but those are running only on windows. 我找到了一些CLI工具,但这些工具只在Windows上运行。 those are
那些是
So can anybody suggest one best azure CLI tool, which can run on linux machine and able to perform upload and download operations?? 那么有人可以建议一个最好的天蓝色CLI工具,它可以在linux机器上运行并且能够执行上传和下载操作吗?
It would be great if that supports partial read and partial write. 如果它支持部分读取和部分写入,那将是很好的。
There's support for upload and download : 支持上传和下载:
azure storage blob upload [options] [file] [container] [blob]
azure storage blob download [options] [container] [blob] [destination]
If not seeing them try to update your cli tools first: 如果没有看到他们,请先尝试更新您的cli工具:
npm install azure-cli -g
(Node.js must be installed in your system) (Node.js必须安装在您的系统中)
Hope this helps 希望这可以帮助
A little late to this question, but hopefully this will help anyone looking for an answer. 这个问题有点晚了,但希望这会帮助任何寻找答案的人。 The Azure Batch and HPC team has released a code sample with some AzCopy-like functionality on Python called blobxfer .
Azure Batch和HPC团队发布了一个代码示例,其中包含一些名为blobxfer的类似AzCopy的功能 。 [full disclosure: I'm a contributor for this code]
[完全披露:我是此代码的撰稿人]
如果以上没有帮助,您也可以通过提升权限安装最新版本,例如sudo npm instal azure-cli -g
Azure CLI 2.0 which is python based release supporting ARM based deployment can be used to download the blob storage contents one by one. Azure CLI 2.0是基于python的发行版,支持基于ARM的部署,可用于逐个下载blob存储内容。 Here is the step by step guide for the same - http://sanganakauthority.blogspot.in/2017/03/how-to-download-azure-blob-storage.html
以下是相同的分步指南 - http://sanganakauthority.blogspot.in/2017/03/how-to-download-azure-blob-storage.html
However you can't download the all the blob from a container in one go. 但是,您无法一次性从容器中下载所有blob。 Cli does not support it as of today.
Cli今天不支持它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.