devcontainers / devcontainers/features

Azure CLI with Bicep works differently

Abierto
#336 10 comentarios 0 reacciones 0 asignados Ver en GitHub
cli-bug
Lenguaje dominante
Shell
Estrellas
1.5k
Forks
621
Merge medio
6 d 53 min
PR fusionados (30 d)
9

Descripción

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?

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Lee src/azure-cli/install.sh en las líneas 205-208 y compara cómo la opción installBicep admite el comando independiente bicep --version con el comando esperado az bicep version. Confirma el comportamiento previsto de Azure CLI e identifica si el issue requiere un cambio de implementación o una documentación más clara.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
azure, shell
Área
cloud, devops, tooling
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.