Skip to content

[Regression] --stdout does not work for az bicep build in v2.37.0 #22621

@ellismg

Description

@ellismg

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

Related command
az bicep build

Describe the bug
Since v2.37.0 the --no-restore flag has to be passed to bicep build, as well as --stdout to for the compiled template to be printed.

To Reproduce
run az bicep build --stdout -f <path-to-bicep> and you'll see not output. Add --no-restore and you will.

Additional context
It was introduced, I think, with 215960c.

Note that previously, when --stdout was set, we would print the result of calling run_bicep_command. When the restore feature was added, the extra if block that was introduced meant that we only printed the result when --no-restore was also set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions