devcontainers / devcontainers/features

Azure CLI with Bicep works differently

Offen
#336 10 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
cli-bug
Vorherrschende Sprache
Shell
Sterne
1.5k
Forks
621
Ø Merge
6 T. 53 Min.
Gemergte PRs (30 T.)
9

Beschreibung

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?

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Lies src/azure-cli/install.sh in den Zeilen 205–208 und vergleiche, wie die Option installBicep den eigenständigen Befehl bicep --version mit dem erwarteten Befehl az bicep version unterstützt. Bestätige das vorgesehene Verhalten der Azure CLI und stelle fest, ob das Issue eine Implementierungsänderung oder eine präzisierte Dokumentation erfordert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
azure, shell
Bereich
cloud, devops, tooling
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.