You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/bicep/add-template-to-azure-pipelines.md
+37-22Lines changed: 37 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
---
2
-
title: CI/CD with Azure Pipelinesand Bicep files
3
-
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.
2
+
title: CI/CD with Azure Pipelines, Bicep, and bicepparam files
3
+
description: In this quickstart, you learn how to configure continuous integration in Azure Pipelines by using Bicep and bicepparam files. It shows how to use an Azure CLI task to deploy a bicepparam file.
4
4
ms.topic: quickstart
5
5
ms.custom: devx-track-bicep, devx-track-azurecli
6
-
ms.date: 06/21/2023
6
+
ms.date: 02/29/2024
7
7
---
8
8
9
9
# Quickstart: Integrate Bicep with Azure Pipelines
@@ -22,6 +22,8 @@ You need to have configured a [service connection](/azure/devops/pipelines/libra
22
22
23
23
You need a [Bicep file](./quickstart-create-bicep-use-visual-studio-code.md) that defines the infrastructure for your project. This file is in a repository.
24
24
25
+
You need a [bicepparam file](/azure/azure-resource-manager/bicep/parameter-files) that defines the parameters used by your bicep file. This file is in a repository.
26
+
25
27
## Create pipeline
26
28
27
29
1. From your Azure DevOps organization, select **Pipelines** and **Create pipeline**.
@@ -47,88 +49,101 @@ You can use Azure Resource Group Deployment task or Azure CLI task to deploy a B
47
49
### Use Azure Resource Manager Template Deployment task
48
50
49
51
> [!NOTE]
50
-
> *AzureResourceManagerTemplateDeployment@3* task won't work if you have a *bicepparam* file.
52
+
> As of version 3.235.0 of the [Azure Resource Manager Template Deployment task](/azure/devops/pipelines/tasks/reference/azure-resource-manager-template-deployment-v3), usage of [bicepparam](/azure/azure-resource-manager/bicep/parameter-files) files is supported.
53
+
54
+
> [!NOTE]
55
+
> The `AzureResourceManagerTemplateDeployment@3` task requires both Bicep and bicepparam files be provided when using bicepparam. The Bicep file can reference all supported locations for module references. The bicepparam file must reference the local Bicep file in the `using` statement.
51
56
52
-
1. Replace your starter pipeline with the following YAML. It creates a resource group and deploys a Bicep file by using an [Azure Resource Manager Template Deployment task](/azure/devops/pipelines/tasks/reference/azure-resource-manager-template-deployment-v3).
57
+
1. Replace your starter pipeline with the following YAML. It creates a resource group and deploys a Bicep and bicepparam file by using the Azure Resource Manager Template Deployment task.
1. Update the values of `azureServiceConnection` and `location`.
86
-
1. Verify you have a `main.bicep` in your repo, and the content of the Bicep file.
95
+
1. Verify you have a valid `main.bicep` file in your repo.
96
+
1. Verify you have a valid `main.bicepparam` file in your repo that contains a [using](/azure/azure-resource-manager/bicep/bicep-using) statement.
87
97
1. Select **Save**. The build pipeline automatically runs. Go back to the summary for your build pipeline, and watch the status.
88
98
89
99
### Use Azure CLI task
90
100
91
-
1. Replace your starter pipeline with the following YAML. It creates a resource group and deploys a Bicep file by using an [Azure CLI task](/azure/devops/pipelines/tasks/reference/azure-cli-v2):
101
+
> [!NOTE]
102
+
> The [az deployment group create](/cli/azure/deployment/group?view=azure-cli-latest#az-deployment-group-create&preserve-view=true) command requires only a bicepparam file. The `using` statement in the bicepparam file can target any supported location to reference the Bicep file. A Bicep file is only required in your repository when `using` from a local disk path with Azure CLI.
103
+
104
+
> [!NOTE]
105
+
> When you use a *[bicepparam](/azure/azure-resource-manager/bicep/parameter-files)* file with the [az deployment group create](/cli/azure/deployment/group?view=azure-cli-latest#az-deployment-group-create&preserve-view=true) command, you can't override parameters.
106
+
107
+
1. Replace your starter pipeline with the following YAML. It creates a resource group and deploys a [bicepparam](/azure/azure-resource-manager/bicep/parameter-files) file by using an [Azure CLI task](/azure/devops/pipelines/tasks/reference/azure-cli-v2):
az group create --name $(resourceGroupName) --location $(location)
119
-
az deployment group create --resource-group $(resourceGroupName) --template-file $(templateFile)
120
-
```
121
-
122
-
To override the parameters, update the last line of `inlineScript` to:
123
-
124
-
```bicep
125
-
az deployment group create --resource-group $(resourceGroupName) --template-file $(templateFile) --parameters storageAccountType='Standard_GRS' location='eastus'
137
+
az deployment group create `
138
+
--resource-group $(resourceGroupName) `
139
+
--parameters $(bicepParamFile) `
140
+
--name DeployPipelineTemplate
126
141
```
127
142
128
143
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`.
129
144
130
145
1. Update the values of `azureServiceConnection` and `location`.
131
-
1. Verify you have a `main.bicep` in your repo, and the content of the Bicep file.
146
+
1. Verify you have a valid `main.bicepparam` file in your repo that contains a [using](/azure/azure-resource-manager/bicep/bicep-using) statement.
132
147
1. Select **Save**. The build pipeline automatically runs. Go back to the summary for your build pipeline, and watch the status.
Copy file name to clipboardExpand all lines: articles/container-apps/tutorial-dev-services-kafka.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -394,7 +394,7 @@ Azure CLI commands and Bicep template fragments are featured in this tutorial. I
394
394
```
395
395
396
396
> [!TIP]
397
-
> The output `kafkaLogs` outputs a CLI command to help you view the logs of postgres after deployment is complete. You can run the command to view the initialization logs of the new Postgres service.
397
+
> The output `kafkaLogs` outputs a CLI command to help you view the logs of kafka after deployment is complete. You can run the command to view the initialization logs of the new Kafka service.
398
398
399
399
# [azd](#tab/azd)
400
400
@@ -457,7 +457,7 @@ Azure CLI commands and Bicep template fragments are featured in this tutorial. I
457
457
458
458
When you create the app, you'll set it up to use `./kafka-topics.sh`, `./kafka-console-producer.sh`, and `kafka-console-consumer.sh` to connect to the Kafka instance.
459
459
460
-
1. Create a `kafka-cli-app` app that binds to the PostgreSQL service.
460
+
1. Create a `kafka-cli-app` app that binds to the Kafka service.
461
461
462
462
# [Bash](#tab/bash)
463
463
@@ -475,7 +475,7 @@ When you create the app, you'll set it up to use `./kafka-topics.sh`, `./kafka-c
Copy file name to clipboardExpand all lines: articles/storage-actions/storage-tasks/storage-task-quickstart-portal.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,8 @@ In this quickstart, you learn how to use the [Azure portal](https://portal.azure
24
24
- An Azure subscription. See [create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
25
25
26
26
- An Azure storage account. See [create a storage account](../../storage/common/storage-account-create.md). As you create the account, make sure to enable version-level immutability support and that you don't enable the hierarchical namespace feature.
27
+
28
+
During the public preview, you can target only storage accounts that are in the same region as the storage tasks.
27
29
28
30
- The [Storage Blob Data Owner](../../role-based-access-control/built-in-roles.md#storage-blob-data-owner) role is assigned to your user identity in the context of the storage account or resource group.
29
31
@@ -167,4 +169,4 @@ After the task completes running, you can view the results of the run.
0 commit comments