Skip to content

Commit 8fe9438

Browse files
Merge pull request #289074 from mumian/1023-2.0-trigger
Lanauge version 2.0 triggers
2 parents e9ee7a6 + d1dd48d commit 8fe9438

File tree

6 files changed

+24
-10
lines changed

6 files changed

+24
-10
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Bicep CLI commands and overview
33
description: Describes the commands that you can use in the Bicep CLI. These commands include building Azure Resource Manager templates from Bicep.
44
ms.topic: reference
55
ms.custom: devx-track-azurecli, devx-track-bicep, devx-track-arm-template
6-
ms.date: 07/11/2024
6+
ms.date: 10/23/2024
77
---
88

99
# Bicep CLI commands
@@ -16,6 +16,13 @@ This article shows how to run the commands in Azure CLI. When running through Az
1616

1717
The `build` command converts a Bicep file to an Azure Resource Manager template (ARM template). Typically, you don't need to run this command because it runs automatically when you deploy a Bicep file. Run it manually when you want to see the ARM template JSON that is created from your Bicep file.
1818

19+
Using any of following Bicep features automatically enables language version 2.0 code generation:
20+
21+
* [user-defined types](../bicep/user-defined-data-types.md)
22+
* [user-defined functions](../bicep/user-defined-functions.md)
23+
* [compile-time imports](../bicep/bicep-import.md)
24+
* [experimental features](../bicep/bicep-config.md#enable-experimental-features)
25+
1926
The following example converts a Bicep file named _main.bicep_ to an ARM template named _main.json_. The new file is created in the same directory as the Bicep file.
2027

2128
```azurecli

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

Lines changed: 2 additions & 2 deletions
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: 06/27/2024
6+
ms.date: 10/23/2024
77
---
88

99
# Configure your Bicep environment
@@ -133,7 +133,7 @@ The [Bicep linter](linter.md) checks Bicep files for syntax errors and best prac
133133

134134
## Enable experimental features
135135

136-
You can enable experimental features by adding the following section to your `bicepconfig.json` file.
136+
You can enable experimental features by adding the following section to your `bicepconfig.json` file. Using experimental features automatically enables [language version 2.0](../templates/syntax.md#languageversion-20) code generation.
137137

138138
Here's an example of enabling features 'assertions' and 'testFramework`.
139139

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ title: Imports in Bicep
33
description: This article describes how to import shared functionality and namespaces in Bicep.
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep
6-
ms.date: 08/20/2024
6+
ms.date: 10/23/2024
77
---
88

99
# Imports in Bicep
1010

11-
This article describes the syntax you use to export and import shared functionality and namespaces for Bicep extensions.
11+
This article describes the syntax you use to export and import shared functionality and namespaces for Bicep extensions. Using compile-time imports automatically enables [language version 2.0](../templates/syntax.md#languageversion-20) code generation.
1212

1313
## Export variables, types, and functions
1414

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ title: User-defined types in Bicep
33
description: This article describes how to define and use user-defined data types in Bicep.
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep
6-
ms.date: 08/20/2024
6+
ms.date: 10/23/2024
77
---
88

99
# User-defined data types in Bicep
1010

11-
Learn how to create user-defined data types in Bicep. For system-defined data types, see [Data types](./data-types.md).
11+
Learn how to create user-defined data types in Bicep. For system-defined data types, see [Data types](./data-types.md). Using user-defined data types automatically enables [language version 2.0](../templates/syntax.md#languageversion-20) code generation.
1212

1313
[Bicep CLI version 0.12.X or higher](./install.md) is required to use this feature.
1414

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ 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: 03/15/2024
6+
ms.date: 10/23/2024
77
---
88

99
# User-defined functions in Bicep
1010

11-
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.
11+
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. Using user-defined functions automatically enables [language version 2.0](../templates/syntax.md#languageversion-20) code generation.
1212

1313
[Bicep CLI version 0.26.X or higher](./install.md) is required to use this feature.
1414

articles/azure-resource-manager/templates/syntax.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Template structure and syntax
33
description: Describes the structure and properties of Azure Resource Manager templates (ARM templates) using declarative JSON syntax.
44
ms.topic: conceptual
55
ms.custom: devx-track-arm-template
6-
ms.date: 09/26/2024
6+
ms.date: 10/23/2024
77
---
88

99
# Understand the structure and syntax of ARM templates
@@ -540,6 +540,13 @@ The enhancements and changes that come with languageVersion 2.0:
540540
* If Deployments resource is used in a symbolic-name deployment, use apiVersion `2020-09-01` or later.
541541
* In resource definition, double-escaping values within an expression is no longer needed. See [Escape characters](./template-expressions.md#escape-characters).
542542

543+
Using any of following Bicep features automatically enables language version 2.0 code generation:
544+
545+
* [user-defined types](../bicep/user-defined-data-types.md)
546+
* [user-defined functions](../bicep/user-defined-functions.md)
547+
* [compile-time imports](../bicep/bicep-import.md)
548+
* [experimental features](../bicep/bicep-config.md#enable-experimental-features)
549+
543550
## Next steps
544551

545552
* To view complete templates for many different types of solutions, see the [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/).

0 commit comments

Comments
 (0)