Skip to content

Commit 1d7a72b

Browse files
committed
incorporate feedback
1 parent 26d7915 commit 1d7a72b

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Bicep config file
33
description: Describes the configuration file for your Bicep deployments
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep
6-
ms.date: 08/08/2023
6+
ms.date: 08/30/2023
77
---
88

99
# Configure your Bicep environment

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Bicep file structure and syntax
33
description: Describes the structure and properties of a Bicep file using declarative syntax.
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep
6-
ms.date: 06/06/2023
6+
ms.date: 08/30/2023
77
---
88

99
# Understand the structure and syntax of Bicep files
@@ -23,7 +23,7 @@ metadata <metadata-name> = ANY
2323
2424
targetScope = '<scope>'
2525
26-
func <user-defined-function-name> (<argument> <data-type>, <argument> <date-type>, ...) <function-data-type> => <expression>
26+
func <user-defined-function-name> (<argument-name> <data-type>, <argument-name> <date-type>, ...) <function-data-type> => <expression>
2727
2828
@<decorator>(<argument>)
2929
param <parameter-name> <parameter-data-type> = <default-value>

articles/azure-resource-manager/bicep/user-defined-functions.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ title: User-defined functions in Bicep
33
description: Describes how to define and use user-defined functions in Bicep.
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep
6-
ms.date: 08/29/2023
6+
ms.date: 08/30/2023
77
---
88

99
# User-defined functions in Bicep (Preview)
1010

1111
Within your Bicep file, you can create your own functions. These functions are available for use in your Bicep files. User-defined functions are separate from the [standard Bicep functions](./bicep-functions.md) that are automatically available within your Bicep files. Create your own functions when you have complicated expressions that are used repeatedly in your Bicep files.
1212

13+
[Bicep version 0.20 or newer](./install.md) is required to use this feature.
14+
1315
## Enable the preview feature
1416

1517
To enable this preview, modify your project's [bicepconfig.json](./bicep-config.md) file to include the following JSON:
@@ -27,7 +29,7 @@ To enable this preview, modify your project's [bicepconfig.json](./bicep-config.
2729
Use the `func` statement to define user-defined functions.
2830

2931
```bicep
30-
func <user-defined-function-name> (<argument> <data-type>, <argument> <date-type>, ...) <function-data-type> => <expression>
32+
func <user-defined-function-name> (<argument-name> <data-type>, <argument-name> <date-type>, ...) <function-data-type> => <expression>
3133
```
3234

3335
## Examples

0 commit comments

Comments
 (0)