Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/azure-cli/azure/cli/command_modules/resource/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -2410,6 +2410,8 @@
text: az bicep decompile-params --file {json_template_file}
- name: Attempts to decompile a parameters .json file to .bicepparam using the bicep file given.
text: az bicep decompile-params --file {json_template_file} --bicep-file {bicep_file}
- name: Attempts to decompile a parameters .json file to .bicepparam and overwrite existing output.
text: az bicep decompile-params --file {json_template_file} --force
- name: Attempts to decompile a parameters .json file to .bicepparam and print all output to stdout.
text: az bicep decompile-params --file {json_template_file} --stdout
- name: Attempts to decompile a parameters .json file to .bicepparam and print all output to stdout and save the result to the specified directory.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4198,7 +4198,7 @@ def decompile_bicep_file(cmd, file, force=None):
run_bicep_command(cmd.cli_ctx, args)


def decompileparams_bicep_file(cmd, file, bicep_file=None, outdir=None, outfile=None, stdout=None):
def decompileparams_bicep_file(cmd, file, bicep_file=None, outdir=None, outfile=None, stdout=None, force=None):
ensure_bicep_installation(cmd.cli_ctx)

minimum_supported_version = "0.18.4"
Expand All @@ -4212,6 +4212,8 @@ def decompileparams_bicep_file(cmd, file, bicep_file=None, outdir=None, outfile=
args += ["--outfile", outfile]
if stdout:
args += ["--stdout"]
if force:
args += ["--force"]

output = run_bicep_command(cmd.cli_ctx, args)

Expand Down
Loading