Skip to content

Commit 950eb47

Browse files
Merge pull request #237113 from mumian/0505-prameter-override
pipeline parameter override
2 parents e8fc417 + 8dbed53 commit 950eb47

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

articles/azure-resource-manager/bicep/add-template-to-azure-pipelines.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: CI/CD with Azure Pipelines and Bicep files
33
description: In this quickstart, you learn how to configure continuous integration in Azure Pipelines by using Bicep files. It shows how to use an Azure CLI task to deploy a Bicep file.
44
ms.topic: quickstart
55
ms.custom: devx-track-bicep, devx-track-azurecli
6-
ms.date: 01/10/2023
6+
ms.date: 05/05/2023
77
---
88

99
# Quickstart: Integrate Bicep with Azure Pipelines
@@ -116,6 +116,12 @@ steps:
116116
az deployment group create --resource-group $(resourceGroupName) --template-file $(templateFile)
117117
```
118118
119+
To override the parameters, update the last line of `inlineScript` to:
120+
121+
```bicep
122+
az deployment group create --resource-group $(resourceGroupName) --template-file $(templateFile) --parameters storageAccountType='Standard_GRS' location='eastus'
123+
```
124+
119125
For the descriptions of the task inputs, see [Azure CLI task](/azure/devops/pipelines/tasks/reference/azure-cli-v2). When using the task on air-gapped cloud, you must set the `useGlobalConfig` property of the task to `true`. The default value is `false`.
120126

121127
Select **Save**. The build pipeline automatically runs. Go back to the summary for your build pipeline, and watch the status.

0 commit comments

Comments
 (0)