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/bicep-functions-array.md
+77-59Lines changed: 77 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,8 @@ author: mumian
5
5
ms.topic: conceptual
6
6
ms.author: jgao
7
7
ms.date: 04/12/2022
8
-
9
8
---
9
+
10
10
# Array functions for Bicep
11
11
12
12
This article describes the Bicep functions for working with arrays. The lambda functions for working with arrays can be found [here](./bicep-functions-lambda.md).
@@ -54,36 +54,6 @@ The output from the preceding example with the default values is:
54
54
| stringOutput | Array |["efgh"]|
55
55
| objectOutput | Array |[{"a": "b", "c": "d"}]|
56
56
57
-
### Quickstart examples
58
-
59
-
The following example is extracted from a quickstart template, [SQL Server VM with performance optimized storage settings
@description('Amount of data disks (1TB each) for SQL Data files')
64
-
@minValue(1)
65
-
@maxValue(8)
66
-
param sqlDataDisksCount int = 1
67
-
68
-
@description('Amount of data disks (1TB each) for SQL Log files')
69
-
@minValue(1)
70
-
@maxValue(8)
71
-
param sqlLogDisksCount int = 1
72
-
73
-
var dataDisksLuns = array(range(0, sqlDataDisksCount))
74
-
var logDisksLuns = array(range(sqlDataDisksCount, sqlLogDisksCount))
75
-
76
-
output array1 array = dataDisksLuns
77
-
output array2 array = logDisksLuns
78
-
```
79
-
80
-
The output from the preceding example with the default values is:
81
-
82
-
| Name | Type | Value |
83
-
| ---- | ---- | ----- |
84
-
| array1 | Array |[0]|
85
-
| array2 | Array |[1]|
86
-
87
57
## concat
88
58
89
59
`concat(arg1, arg2, arg3, ...)`
@@ -185,34 +155,6 @@ The output from the preceding example with the default values is:
185
155
| arrayTrue | Bool | True |
186
156
| arrayFalse | Bool | False |
187
157
188
-
### Quickstart examples
189
-
190
-
The following sample is extracted from a quickstart template, [Application Gateway with WAF and firewall policy](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.network/application-gateway-waf-firewall-policy):
191
-
192
-
```bicep
193
-
backendHttpSettingsCollection: [for backendHttpSetting in backendHttpSettings: {
More examples can be found in these quickstart Bicep files:
211
-
212
-
-[Route table with routes](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.network/route-table-create)
213
-
-[Virtual Network with diagnostic logs](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.network/vnet-create-with-diagnostic-logs)
214
-
-[App Service Quickstart - Linux App](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.web/app-service-docs-linux)
215
-
216
158
## empty
217
159
218
160
`empty(itemToTest)`
@@ -253,6 +195,34 @@ The output from the preceding example with the default values is:
253
195
| objectEmpty | Bool | True |
254
196
| stringEmpty | Bool | True |
255
197
198
+
### Quickstart examples
199
+
200
+
The following example is extracted from a quickstart template, [SQL Server VM with performance optimized storage settings
More examples can be found in these quickstart Bicep files:
683
+
684
+
-[Deploy API Management into Availability Zones](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.apimanagement/api-management-simple-zones)
685
+
-[Create a Firewall and FirewallPolicy with Rules and Ipgroups](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.network/azurefirewall-create-with-firewallpolicy-apprule-netrule-ipgroups)
686
+
-[Create a sandbox setup of Azure Firewall with Zones](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.network/azurefirewall-with-zones-sandbox)
0 commit comments