Azure / Azure/azure-cli

'az extension add --name' should output standard log to stdout

Open
#13,545 5 comments 0 reactions 0 assignees View on GitHub
act-platform-engineering-squad DevOps question Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.5.1

**Describe the bug**

Currently when using 'az extension add --name <>', the following output will show in stdout instead of stderr
- Searching ..
- Downloading..

In some case we want to disable stdout to decrease verbose:
az extension add --name <> > /dev/null

But message lik '-- Searching ...' is still showing up.

we would not redirect stderr to /dev/null since we would like to see message if error really occurs.

**To Reproduce**
az extension add --name azure-devops > /dev/null

**Expected behavior**
Only exception is show in stderr, install progress shoud appear in stdout

**Environment summary**

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.