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-any.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,25 @@
1
1
---
2
-
title: Bicep functions - any
3
-
description: Describes the any function that is available in Bicep to convert types.
2
+
title: Bicep functions - any()
3
+
description: Describes the any() function that's available in Bicep to convert types.
4
4
ms.topic: reference
5
5
ms.custom: devx-track-bicep
6
-
ms.date: 02/12/2025
6
+
ms.date: 10/22/2025
7
7
---
8
8
9
-
# Any function for Bicep
9
+
# any() function (Bicep)
10
10
11
-
Bicep supports a function called`any()`to resolve type errors in the Bicep type system. You use this function when the format of the value you provide doesn't match what the type system expects. For example, if the property requires a number but you need to provide it as a string, like `'0.5'`. Use the `any()` function to suppress the error reported by the type system.
11
+
Bicep supports a function named`any()`that suppresses type check errors. Use the Bicep `any()`function to cast a value to a type that's compatible with any data type. For example, use the `any()` function when a property requires a number but you need to provide a string, like `'0.5'`.
12
12
13
-
This function doesn't exist in the Azure Resource Manager template runtime. It's only used by Bicep and isn't emitted in the JSON for the built template.
13
+
This function doesn't exist in the Azure Resource Manager template runtime. The Bicep `any()` function only affects compile-time type checking. It doesn't convert values at runtime and isn't emitted into the JSON for an Azure Resource Manager template.
14
14
15
15
> [!NOTE]
16
16
> To help resolve type errors, let us know when missing or incorrect types required you to use the `any()` function. Add your details to the [missing type validation/inaccuracies](https://github.com/Azure/bicep/issues/784) GitHub issue.
17
17
18
-
## any
18
+
## Syntax for the Bicep any() function
19
19
20
20
`any(value)`
21
21
22
-
Returns a value that is compatible with any data type.
22
+
Returns a value that's compatible with any Bicep data type.
0 commit comments