az bicep decompile --force argument is unrecognized
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
The az bicep decompile
will suggest to use --force
when decompiling to an already existing .bicep
file. The --force
argument does not exist on az bicep decompile
and throws an unrecognized argument: --force
.
Command Name
az bicep decompile
Errors:
unrecognized arguments: --force
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az bicep decompile --file "existing_arm.json"
- Now you will have a
existing_arm.bicep
file - Make some changes to
exiting_arm.json
and run the decompile command again - This will throw the following error:
The output path "/Users/user1/code/existing_arm.bicep" already exists. Use --force to overwrite the existing file.
az bicep decompile --file "existing_arm.json" --force
- You will get the
unrecognized arguments: --force
error
Expected Behavior
Either --force
should exists as an argument, or the command should not suggest using --force
.
Environment Summary
macOS-12.3.1-x86_64-i386-64bit, Darwin 21.4.0
Python 3.10.4
Installer: HOMEBREW
azure-cli 2.36.0
Additional Context
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Decompile ARM template JSON to Bicep - Azure
Describes commands for decompiling Azure Resource Manager templates to Bicep files.
Read more >Migrating Azure ARM templates to Bicep - Rick Roché
First things first, it is possible to decompile an ARM template into Bicep by running the below command (all our ARM templates are...
Read more >Run bicep from devops build pipeline. ERROR - Stack Overflow
Run bicep from devops build pipeline. ERROR: unrecognized arguments: ENDPOINT_DATA - Stack Overflow. Stack Overflow for Teams – Start ...
Read more >Azure Bicep: Getting Started and How-To Guide
To deploy using the Azure CLI, use the az deployment group create command specifying the resource group name and template file. Use –parameter...
Read more >Tom's Notes
name: "Build Bicep code into ARM (JSON)" ... inlineScript: az bicep build --file . ... resourceGroupName }} -location WestEurope -Force.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can confirm it works in latest version 2.38.0 of azure-cli on my system. Thank you very much!
@madsaune This is fixed in the latest version, can you please upgrade to the latest version of cli 2.38.0