Skip to content

After update to cli 2.0.42 command az group show --name changed behavior #6866

Description

@nakonczy

Describe the bug
The output of "az group show --name" when the group does not exist changed after updating from version 2.0.41 to 2.0.42.
This breaks all shell scripts depending on this output.

To Reproduce
With version 2.0.41 and earlier:
az group show --name test
Prints nothing, exit status is 0 when 'test' does not exist.
With version 2.0.42 prints 'Resource group 'test' could not be found.' and exit status is 3.

Expected behavior
I expect to have same behavior as before updating - no output and exit status 0.

Environment summary
CLI 2.0.42
Ubuntu 16.04 LTS

Additional context
Similar problem was noticed also for "az disk show" in earlier update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions