Azure / azure-cli

Azure Command-Line Interface
MIT License
4.03k stars 3.01k forks source link

`az extension update` - Show non-warning output for whether an extension is updated #29333

Open o-l-a-v opened 4 months ago

o-l-a-v commented 4 months ago

Related command

extension

Is your feature request related to a problem? Please describe.

az extension update --name bastion (example) currenly only shows output in the warning output stream if an update was not available.

Default enabled including preview versions for extension installation now. Disabled in future release. Use '--allow-preview true' to enable it specifically if needed. Use '--allow-preview false' to install stable version only.
Latest version of 'bastion' is already installed.

Use --debug for more information

Why is the warning output stream used as a general output / information for this command? I'd like the default output to only say whether an upgrade was available, and whether it was installed. So please redirect Latest version of 'bastion' is already installed. to stdout.

Describe the solution you'd like

Redirect general info to stdout, instead of using the warning output stream.

Describe alternatives you've considered

Redirect and parse the warning stream myself to only output the relevat info Latest version of 'bastion' is already installed..

Additional context

yonzhan commented 4 months ago

Thank you for opening this issue, we will look into it.

microsoft-github-policy-service[bot] commented 4 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @bastionsuppgithub.