Skip to content

Commit 80a1568

Browse files
Merge pull request #223511 from mumian/0110-air-gapped
Config useGlobalConfig for air-gapped cloud
2 parents 7f699e0 + ba752c8 commit 80a1568

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
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
5-
ms.date: 08/03/2022
5+
ms.date: 01/10/2023
66
---
77

88
# Quickstart: Integrate Bicep with Azure Pipelines
@@ -108,13 +108,14 @@ steps:
108108
azureSubscription: $(azureServiceConnection)
109109
scriptType: bash
110110
scriptLocation: inlineScript
111+
useGlobalConfig: false
111112
inlineScript: |
112113
az --version
113114
az group create --name $(resourceGroupName) --location $(location)
114115
az deployment group create --resource-group $(resourceGroupName) --template-file $(templateFile)
115116
```
116117
117-
For the descriptions of the task inputs, see [Azure CLI task](/azure/devops/pipelines/tasks/deploy/azure-cli).
118+
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`.
118119

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

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Set up Bicep development and deployment environments
33
description: How to configure Bicep development and deployment environments
44
ms.topic: conceptual
5-
ms.date: 11/03/2022
5+
ms.date: 01/10/2023
66
ms.custom: devx-track-azurepowershell, devx-track-azurecli
77
---
88

@@ -212,6 +212,8 @@ The `bicep install` and `bicep upgrade` commands don't work in an air-gapped env
212212
1. Download **bicep-win-x64.exe** from the [Bicep release page](https://github.com/Azure/bicep/releases/latest/) in a non-air-gapped environment.
213213
1. Copy the executable to the **%UserProfile%/.azure/bin** directory on an air-gapped machine. Rename file to **bicep.exe**.
214214

215+
When using the [Azure CLI task](/azure/devops/pipelines/tasks/reference/azure-cli-v2) on air-gapped cloud, you must set the `useGlobalConfig` property of the task to `true`. The default value is `false`. See [CI/CD with Azure Pipelines and Bicep files](./add-template-to-azure-pipelines.md) for an example.
216+
215217
## Install the nightly builds
216218

217219
If you'd like to try the latest pre-release bits of Bicep before they're released, see [Install nightly builds](https://github.com/Azure/bicep/blob/main/docs/installing-nightly.md).

0 commit comments

Comments
 (0)