devcontainers / devcontainers/features

Azure CLI with Bicep works differently

Open
#336 10 comments 0 reactions 0 assignees View on GitHub
cli-bug
Dominant language
Shell
Stars
1.5k
Forks
621
Avg merge
2d 11h
Merged PRs (30d)
4

Description

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:

```bash
az bicep version
```

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

```bash
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:

https://github.com/devcontainers/features/blob/7fa90110d762797cc0b1c2fe8fcc028c9b813d56/src/azure-cli/install.sh#L205-L208

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.