Skip to content

Commit ce13920

Browse files
Merge pull request #270808 from mumian/0401-bicep-parameters
Update using --template-file with --parameters
2 parents e123e22 + 00f6189 commit ce13920

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

articles/azure-resource-manager/bicep/parameter-files.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Create parameters files for Bicep deployment
33
description: Create parameters file for passing in values during deployment of a Bicep file.
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep
6-
ms.date: 03/22/2024
6+
ms.date: 04/01/2024
77
---
88

99
# Create parameters files for Bicep deployment
@@ -367,7 +367,7 @@ From Azure CLI, you can pass a parameter file with your Bicep file deployment.
367367

368368
# [Bicep parameters file](#tab/Bicep)
369369

370-
With Azure CLI version 2.53.0 or later, and [Bicep CLI version 0.22.X or higher](./install.md), you can deploy a Bicep file by utilizing a Bicep parameter file. With the `using` statement within the Bicep parameters file, there's no need to provide the `--template-file` switch when specifying a Bicep parameter file for the `--parameters` switch. Including the `--template-file` switch results in an "Only a .bicep template is allowed with a .bicepparam file" error.
370+
With Azure CLI version 2.53.0 or later, and [Bicep CLI version 0.22.X or higher](./install.md), you can deploy a Bicep file by utilizing a Bicep parameter file. With the `using` statement within the Bicep parameters file, there's no need to provide the `--template-file` switch when specifying a Bicep parameter file for the `--parameters` switch.
371371

372372
```azurecli
373373
az deployment group create \
@@ -463,11 +463,8 @@ New-AzResourceGroupDeployment `
463463
-TemplateFile C:\MyTemplates\storage.bicep `
464464
-TemplateParameterFile C:\MyTemplates\storage.parameters.json `
465465
-storageAccountType Standard_LRS
466-
467466
```
468467

469-
470-
471468
---
472469

473470
For more information, see [Deploy resources with Bicep and Azure PowerShell](./deploy-powershell.md#parameters). To deploy _.bicep_ files you need Azure PowerShell version 5.6.0 or later.

0 commit comments

Comments
 (0)