question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az bicep decompile --force argument is unrecognized

See original GitHub issue

This 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:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
madsaunecommented, Jul 13, 2022

Can confirm it works in latest version 2.38.0 of azure-cli on my system. Thank you very much!

macOS-12.4-x86_64-i386-64bit, Darwin 21.5.0
Python 3.10.5
Installer: HOMEBREW

azure-cli 2.38.0
0reactions
RakeshMohanMSFTcommented, Jul 12, 2022

@madsaune This is fixed in the latest version, can you please upgrade to the latest version of cli 2.38.0

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found