Skip to content

Commit 4c81383

Browse files
authored
Merge pull request #205082 from mumian/0718-bicep-build-force
document the --force switch with bicep decompile
2 parents 4dbc8b5 + 69ccf48 commit 4c81383

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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

Lines changed: 3 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: 06/30/2022
5+
ms.date: 07/18/2022
66
---
77

88
# Bicep CLI commands
@@ -68,6 +68,8 @@ The `decompile` command converts ARM template JSON to a Bicep file.
6868
az bicep decompile --file main.json
6969
```
7070

71+
The command creates a file named _main.bicep_ in the same directory as _main.json_. If _main.bicep_ exists in the same directory, use the **--force** switch to overwrite the existing Bicep file.
72+
7173
For more information about using this command, see [Decompiling ARM template JSON to Bicep](decompile.md).
7274

7375
## install

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Decompile ARM template JSON to Bicep
33
description: Describes commands for decompiling Azure Resource Manager templates to Bicep files.
44
ms.topic: conceptual
5-
ms.date: 04/12/2022
5+
ms.date: 07/18/2022
66
ms.custom: devx-track-azurepowershell
77
---
88

@@ -25,7 +25,7 @@ To decompile ARM template JSON to Bicep, use:
2525
az bicep decompile --file main.json
2626
```
2727

28-
The command creates a file named _main.bicep_ in the same directory as the ARM template.
28+
The command creates a file named _main.bicep_ in the same directory as _main.json_. If _main.bicep_ exists in the same directory, use the **--force** switch to overwrite the existing Bicep file.
2929

3030
> [!CAUTION]
3131
> Decompilation attempts to convert the file, but there is no guaranteed mapping from ARM template JSON to Bicep. You may need to fix warnings and errors in the generated Bicep file. Or, decompilation can fail if an accurate conversion isn't possible. To report any issues or inaccurate conversions, [create an issue](https://github.com/Azure/bicep/issues).

0 commit comments

Comments
 (0)