question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Progress report of `az storage blob upload`

See original GitHub issue

Environment summary

Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)

apt-get

CLI Version: What version of the CLI and modules are installed? (Use az --version)

$ az --version
azure-cli (2.0.1)

acs (2.0.1)
appservice (0.1.1b6)
batch (0.1.1b5)
cloud (2.0.0)
component (2.0.0)
configure (2.0.1)
container (0.1.1b4)
core (2.0.1)
documentdb (0.1.1b2)
feedback (2.0.0)
find (0.0.1b1)
iot (0.1.1b3)
keyvault (0.1.1b6)
network (2.0.1)
nspkg (2.0.0)
profile (2.0.1)
redis (0.1.1b3)
resource (2.0.1)
role (2.0.0)
sql (0.1.1b6)
storage (2.0.0)
vm (2.0.1)

Python (Linux) 2.7.12 (default, Nov 19 2016, 06:48:10) 
[GCC 5.4.0 20160609]

OS Version: What OS and version are you using?

Linux: Ubuntu 16.04.2 LTS

Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)

bash


Description

Running az storage blob upload shows a Percent complete progress report, and it gets printed to stderr. This is fine for interactive use, but from a script I want to hide that output (since including it in build logfiles will make the logs messy). I don’t want to hide/divert stderr because if there were errors, then they should be included in the log, and there is no command-line argument that I see that can supress that error.

It would be much better to show the progress output on stdout instead, and even better to also include a flag to supress that output, similar to other network tools like curl, wget, rsync, etc.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
williexucommented, Jan 22, 2018

@elibarzilay this has been addressed with https://github.com/Azure/azure-cli/pull/4823 Simply use the --no-progress flag to suppress the progress output.

0reactions
elibarzilaycommented, Apr 18, 2017

@tjprescott, +1 — it’s common to print such output only if stdout is a tty.

Read more comments on GitHub >

github_iconTop Results From Across the Web

az storage blob | Microsoft Learn
Use az storage blob show to check the status of the blobs. az storage blob ... Upload blobs or subdirectories to a storage...
Read more >
Azure Storage Blob Download Progress Indicator
The progress indicator already works when uploading. I'm using the Progresshandler within the BlobUploadOptions. BlobDownloadDetails seems to ...
Read more >
Upload File with Progress from Browser to Azure Blob Storage
The basic idea in this code is to break large files to trunks and upload them piece by piece. Azure storage SDK will...
Read more >
Simple Steps to Upload Files to Azure Blob Storage in Blazor ...
It is an extended version of the HTML 5 upload component (<input type=” file”>). Its rich feature set includes multiple-file selection, progress ......
Read more >
How to Upload a File to Azure Blob Storage
When Azure has completed the operation, we open the container's menu and create a container that will hold our data. We click to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found