2021-10-03 14:17:39 +01:00
|
|
|
# az bicep
|
|
|
|
|
|
|
|
> Bicep CLI command group.
|
|
|
|
> Part of `azure-cli`.
|
2022-10-04 16:06:23 +01:00
|
|
|
> More information: <https://learn.microsoft.com/cli/azure/bicep>.
|
2021-10-03 14:17:39 +01:00
|
|
|
|
|
|
|
- Install Bicep CLI:
|
|
|
|
|
|
|
|
`az bicep install`
|
|
|
|
|
|
|
|
- Build a Bicep file:
|
|
|
|
|
|
|
|
`az bicep build --file {{path/to/file.bicep}}`
|
|
|
|
|
|
|
|
- Attempt to decompile an ARM template file to a Bicep file:
|
|
|
|
|
|
|
|
`az bicep decompile --file {{path/to/template_file.json}}`
|
|
|
|
|
|
|
|
- Upgrade Bicep CLI to the latest version:
|
|
|
|
|
|
|
|
`az bicep upgrade`
|
|
|
|
|
|
|
|
- Display the installed version of Bicep CLI:
|
|
|
|
|
|
|
|
`az bicep version`
|
|
|
|
|
|
|
|
- List all available versions of Bicep CLI:
|
|
|
|
|
|
|
|
`az bicep list-versions`
|
|
|
|
|
|
|
|
- Uninstall Bicep CLI:
|
|
|
|
|
|
|
|
`az bicep uninstall`
|