Skip to content

Azure CLI with Bicep works differently #336

Open
@justinyoo

Description

@justinyoo

Hi, Team.

When I added the azure-cli feature to the devcontainer settings, I enabled the following option:

  • "installBicep": true

Because it's a part of Azure CLI option, I was expecting that I would be able to use the following command:

az bicep version

However, it doesn't work. Rather it works in the following way:

bicep --version

It means that the Bicep CLI works as a standalone CLI instead of the part of Azure CLI. And I found the following codebase:

# Properly install Azure Bicep based on current architecture
# The `az bicep install` command installs the linux-x64 binary even on arm64 devcontainers
# The `az bicep install --target-platform` could be a solution; however, linux-arm64 is not an allowed value for this argument yet
# Manually installing Bicep and moving to the appropriate directory where az expects it to be

Is there a reason that we use the standalone Bicep CLI, rather than Azure CLI integrated one?

Metadata

Metadata

Assignees

No one assigned

    Labels

    cli-bugNeeds an upstream @devcontainers/cli bug fix.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions