Skip to content

az cli version 2.0.74 commands write to stderr stream even when the command succeeds #10856

Description

@tejasd1990

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

We own the "Azure CLI" Azure Pipelines task.
We have come across 3 customer issues so far where az cli version 2.0.74 commands write to stderr stream even when the command succeeds
Could be happening since some other older version, I don't know about that, but see this issue with at least this version.

Describe the bug
We have come across 3 customer issues so far where az cli version 2.0.74 commands write to stderr stream even when the command succeeds
At line:1 char:1

  • az extension add --name application-insights --output none 2>&1
  •   + CategoryInfo          : NotSpecified: (WARNING: Extens...eady installed.:String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    

To Reproduce
For example,
az extension add --name application-insights --output none 2>&1

Expected behavior
successful commands should not write to stderr stream

Environment summary
Azure Pipelines Hosted Agent, Powershell on my local machine

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

CoreCLI core infrastructure

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions