简体   繁体   中英

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. I found azure-cli, but its not supporting upload and download feature in azure storage (As per my knowledge).

I found some CLI tools but those are running only on windows. those are

  • AzCopy
  • cloudcopy

So can anybody suggest one best azure CLI tool, which can run on linux machine and able to perform upload and download operations??

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:

npm install azure-cli -g

(Node.js must be installed in your system)

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 . [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. Here is the step by step guide for the same - 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. Cli does not support it as of today.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM