Skip to content

Conversation

@polatengin
Copy link
Member

@polatengin polatengin commented Feb 3, 2026

Related command

bicep decompile-params

Description

Enable --force passthrough for az bicep decompile-params to allow overwriting existing output.

Add CLI help example showing --force usage.

Testing Guide

python -m pytest src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_resource_custom.py -k test_bicep_decompile_params_defaults

History Notes

[CLI] az bicep decompile-params : Add new parameter --force to overwrite existing files (#32739)


This checklist is used to make sure that common guidelines for a pull request are followed.

Copilot AI review requested due to automatic review settings February 3, 2026 23:25
@azure-client-tools-bot-prd
Copy link

Validation for Azure CLI Full Test Starting...

Thanks for your contribution!

@azure-client-tools-bot-prd
Copy link

Validation for Breaking Change Starting...

Thanks for your contribution!

@yonzhan
Copy link
Collaborator

yonzhan commented Feb 3, 2026

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link

github-actions bot commented Feb 3, 2026

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@microsoft-github-policy-service microsoft-github-policy-service bot added the Auto-Assign Auto assign by bot label Feb 3, 2026
@microsoft-github-policy-service microsoft-github-policy-service bot added the ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group label Feb 3, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for the --force option to the az bicep decompile-params command, allowing users to overwrite existing output files. This aligns with similar functionality in other bicep commands like decompile, restore, and publish.

Changes:

  • Added --force parameter to decompileparams_bicep_file function to pass through to the Bicep CLI
  • Added help documentation example demonstrating --force usage

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/azure-cli/azure/cli/command_modules/resource/custom.py Added force parameter to function signature and conditional logic to pass --force flag to Bicep CLI
src/azure-cli/azure/cli/command_modules/resource/_help.py Added help example showing how to use --force to overwrite existing output

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group Auto-Assign Auto assign by bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants