Skip to content

Commit ad6e30c

Browse files
Merge pull request #211213 from mumian/0914-bicep-cli
add the generate-params command
2 parents b6318b2 + a792c4d commit ad6e30c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

articles/azure-resource-manager/bicep/bicep-cli.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Bicep CLI commands and overview
33
description: Describes the commands that you can use in the Bicep CLI. These commands include building Azure Resource Manager templates from Bicep.
44
ms.topic: conceptual
5-
ms.date: 07/18/2022
5+
ms.date: 09/14/2022
66
---
77

88
# Bicep CLI commands
@@ -72,6 +72,16 @@ The command creates a file named _main.bicep_ in the same directory as _main.jso
7272

7373
For more information about using this command, see [Decompiling ARM template JSON to Bicep](decompile.md).
7474

75+
## generate-params
76+
77+
The `generate-params` command builds *.parameters.json* file from the given bicep file, updates if there is an existing parameters.json file.
78+
79+
```azurecli
80+
az bicep generate-params --file main.bicep
81+
```
82+
83+
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.
84+
7585
## install
7686

7787
The `install` command adds the Bicep CLI to your local environment. For more information, see [Install Bicep tools](install.md). This command is only available through Azure CLI.

0 commit comments

Comments
 (0)