Skip to content

Commit 523370d

Browse files
authored
Merge pull request #217976 from mumian/1110-experimentalFeaturesEnabled
add experimentalFeaturesEnabled setting to bicepconfig
2 parents 5e1fb54 + 234a490 commit 523370d

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Module setting for Bicep config
33
description: Describes how to customize configuration values for modules in Bicep deployments.
44
ms.topic: conceptual
5-
ms.date: 01/11/2023
5+
ms.date: 01/18/2023
66
---
77

88
# Add module settings in the Bicep config file

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

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Bicep config file
33
description: Describes the configuration file for your Bicep deployments
44
ms.topic: conceptual
5-
ms.date: 01/09/2023
5+
ms.date: 01/18/2023
66
---
77

88
# Configure your Bicep environment
@@ -11,21 +11,38 @@ Bicep supports a configuration file named `bicepconfig.json`. Within this file,
1111

1212
To customize values, create this file in the directory where you store Bicep files. You can add `bicepconfig.json` files in multiple directories. The configuration file closest to the Bicep file in the directory hierarchy is used.
1313

14-
To create a `bicepconfig.json` file in Visual Studio Code, open the Command Palette (**[CTRL/CMD]**+**[SHIFT]**+**P**), and then select **Bicep: Create Bicep Configuration File**. For more information, see [Visual Studio Code](./visual-studio-code.md#create-bicep-configuration-file).
14+
## Create the config file in VSCode
15+
16+
You can use any text editor to create the config file.
17+
18+
To create a `bicepconfig.json` file in Visual Studio Code, open the Command Palette (**[CTRL/CMD]**+**[SHIRT]**+**P**), and then select **Bicep: Create Bicep Configuration File**. For more information, see [Visual Studio Code](./visual-studio-code.md#create-bicep-configuration-file).
1519

1620
:::image type="content" source="./media/bicep-config/vscode-create-bicep-configuration-file.png" alt-text="Screenshot of how to create Bicep configuration file in VSCode.":::
1721

18-
## Available settings
22+
The Bicep extension for Visual Studio Code supports intellisense for your `bicepconfig.json` file. Use the intellisense to discover available properties and values.
23+
24+
:::image type="content" source="./media/bicep-config/bicep-linter-configure-intellisense.png" alt-text="Screenshot of the intellisense support in configuring bicepconfig.json.":::
1925

20-
When working with [modules](modules.md), you can add aliases for module paths. These aliases simplify your Bicep file because you don't have to repeat complicated paths. You can also configure cloud profile and credential precedence for authenticating to Azure from Bicep CLI and Visual Studio Code. The credentials are used to publish modules to registries and to restore external modules to the local cache when using the insert resource function.For more information, see [Add module settings to Bicep config](bicep-config-modules.md).
26+
## Configure Bicep modules
27+
28+
When working with [modules](modules.md), you can add aliases for module paths. These aliases simplify your Bicep file because you don't have to repeat complicated paths. You can also configure cloud profile and credential precedence for authenticating to Azure from Bicep CLI and Visual Studio Code. The credentials are used to publish modules to registries and to restore external modules to the local cache when using the insert resource function. For more information, see [Add module settings to Bicep config](bicep-config-modules.md).
29+
30+
## Configure Linter rules
2131

2232
The [Bicep linter](linter.md) checks Bicep files for syntax errors and best practice violations. You can override the default settings for the Bicep file validation by modifying `bicepconfig.json`. For more information, see [Add linter settings to Bicep config](bicep-config-linter.md).
2333

24-
## Intellisense
34+
## Enable experimental features
2535

26-
The Bicep extension for Visual Studio Code supports intellisense for your `bicepconfig.json` file. Use the intellisense to discover available properties and values.
36+
The following sample enables the [user-defined types in Bicep](https://aka.ms/bicepCustomTypes).
2737

28-
:::image type="content" source="./media/bicep-config/bicep-linter-configure-intellisense.png" alt-text="The intellisense support in configuring bicepconfig.json.":::
38+
```json
39+
{
40+
"experimentalFeaturesEnabled": {
41+
"imports": true,
42+
"userDefineTypes": true
43+
}
44+
}
45+
```
2946

3047
## Next steps
3148

0 commit comments

Comments
 (0)