You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -12,9 +12,6 @@ This article describes the commands you can use in the Bicep CLI. You have two o
12
12
13
13
This article shows how to run the commands in Azure CLI. When running through Azure CLI, you start the commands with `az`. If you're not using Azure CLI, run the commands without `az` at the start of the command. For example, `az bicep build` becomes `bicep build`, and `az bicep version` becomes `bicep --version`.
14
14
15
-
> [!NOTE]
16
-
> The commands related to the Bicep parameters files are exclusively supported within the Bicep CLI and are not currently available in Azure CLI. These commands include: `build-params`, `decompile-params`, and `generate-params`.
17
-
18
15
## build
19
16
20
17
The `build` command converts a Bicep file to an Azure Resource Manager template (ARM template). Typically, you don't need to run this command because it runs automatically when you deploy a Bicep file. Run it manually when you want to see the ARM template JSON that is created from your Bicep file.
@@ -69,7 +66,7 @@ To use the `--no-restore` switch, you must have Bicep CLI version **0.4.1008 or
69
66
The `build-params` command builds a _.bicepparam_ file into a JSON parameters file.
70
67
71
68
```azurecli
72
-
bicep build-params params.bicepparam
69
+
az bicep build-params --file params.bicepparam
73
70
```
74
71
75
72
This command converts a _params.bicepparam_ parameters file into a _params.json_ JSON parameters file.
@@ -91,7 +88,7 @@ For more information about using this command, see [Decompiling ARM template JSO
91
88
The `decompile-params` command decompile a JSON parameters file to a _.bicepparam_ parameters file.
az bicep decompile-params -- file azuredeploy.parameters.json --bicep-file ./dir/main.bicep
95
92
```
96
93
97
94
This command decompiles a _azuredeploy.parameters.json_ parameters file into a _azuredeploy.parameters.bicepparam_ file. `-bicep-file` specifies the path to the Bicep file (relative to the .bicepparam file) that is referenced in the `using` declaration.
@@ -101,13 +98,13 @@ This command decompiles a _azuredeploy.parameters.json_ parameters file into a _
101
98
The `generate-params` command builds a parameters file from the given Bicep file, updates if there's an existing parameters file.
102
99
103
100
```azurecli
104
-
bicep generate-params main.bicep --output-format bicepparam --include-params all
101
+
az bicep generate-params --file main.bicep --output-format bicepparam --include-params all
105
102
```
106
103
107
104
The command creates a Bicep parameters file named _main.bicepparam_. The parameter file contains all parameters in the Bicep file, whether configured with default values or not.
az bicep generate-params --file main.bicep --outfile main.parameters.json
111
108
```
112
109
113
110
The command creates a parameter file named _main.parameters.json_. The parameter file only contains the parameters without default values configured in the Bicep file.
@@ -140,6 +137,8 @@ The command returns an array of available versions.
140
137
141
138
```azurecli
142
139
[
140
+
"v0.20.4",
141
+
"v0.19.5",
143
142
"v0.18.4",
144
143
"v0.17.1",
145
144
"v0.16.2",
@@ -167,9 +166,7 @@ The command returns an array of available versions.
167
166
"v0.4.1124",
168
167
"v0.4.1008",
169
168
"v0.4.613",
170
-
"v0.4.451",
171
-
"v0.4.412",
172
-
"v0.4.63"
169
+
"v0.4.451"
173
170
]
174
171
```
175
172
@@ -264,7 +261,7 @@ az bicep version
264
261
The command shows the version number.
265
262
266
263
```azurecli
267
-
Bicep CLI version 0.4.1008 (223b8d227a)
264
+
Bicep CLI version 0.20.4 (c9422e016d)
268
265
```
269
266
270
267
To call this command directly through the Bicep CLI, use:
0 commit comments