Skip to content

Commit 30dd8f0

Browse files
Merge pull request #309307 from mumian/1210-typearray
clarify typed array
2 parents 68e16b9 + 368a7a2 commit 30dd8f0

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

articles/azure-resource-manager/bicep/data-types.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Data types in Bicep
33
description: This article describes the data types that are available in Bicep.
44
ms.topic: reference
5-
ms.date: 10/23/2025
5+
ms.date: 12/10/2025
66
ms.custom: devx-track-bicep
77
---
88

@@ -31,6 +31,24 @@ A **array** in Bicep is an ordered collection of values—such as strings, integ
3131

3232
Arrays in Bicep are immutable. Once declared, their contents can't be changed. To "modify" an array, create a new array using functions like [`concat`](./bicep-functions-array.md#concat), [`map`](./bicep-functions-lambda.md#map), or [`filter`](./bicep-functions-lambda.md#filter).
3333

34+
```bicep
35+
param usLocations array = [
36+
'eastus'
37+
'westus2'
38+
]
39+
40+
param euroLocations string[] = [
41+
'northeurope'
42+
'westeurope'
43+
]
44+
45+
param numbers int[] = [
46+
1
47+
2
48+
3
49+
]
50+
```
51+
3452
You can declare arrays in Bicep using either single-line or multi-line syntax. Multi-line array declarations require [Bicep CLI version 0.7.X or later](https://github.com/Azure/bicep/releases/tag/v0.7.4).
3553

3654
```bicep

0 commit comments

Comments
 (0)