This is used for downloading or uploading files, for example.
For details about options, see the Azure CLI documentation.
Here, long command lines begin on a new line delimited by "\".
-
Downloading a file
- Syntax
-
az storage blob download [--options]
- Example
- Download the test.txt file from Azure Blob Storage
(my-sdsc-container) to the current directory.
-
$ az storage blob download \
--account-name sdsc \
--blob-url https://sdsc.blob.core.windows.net/azure/test.txt \
--file test.txt
-
Uploading a file
- Syntax
-
az storage blob upload [--options]
- Example
- Upload the test2.txt file from the current directory to
Azure Blob Storage (my-sdsc-container).
-
$ az storage blob upload \
--account-name sdsc \
--blob-url https://sdsc.blob.core.windows.net/azure/test2.txt \
--file test2.txt