Ability to disable Experimental Features warning #18612
Replies: 4 comments
-
|
You can disable the warning in your bicepconfig.json file by setting
|
Beta Was this translation helpful? Give feedback.
-
|
I tried this, but the warning is still printing. Was this flag recently introduced? We are using Azure.Bicep.MSBuild package version 0.30.23 |
Beta Was this translation helpful? Give feedback.
-
|
Actually, looks like this was added in 0.39.* |
Beta Was this translation helpful? Give feedback.
-
|
Ok, I initially updated Azure.Bicep.MSBuild package version to 0.39.26, but that didn't disable the warning either. I had to update both of these packages in order for the warning to be removed. Appreciate the help! |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
Our CloudBuild config is pretty rigid, and we cannot disable "TreatWarningsAsErrors" settings on our MsBuild runs. So, when we build our bicep project (see example proj content below), the build always fails because we have a couple experimental features enabled in our bicepconfig.json file. We cannot filter out the "experimental features" warning like other Bicep warnings because it does not have a warning code (e.g. BCP081). Here's the warning message we cannot disable:
WARNING: The following experimental Bicep features have been enabled: Extensibility, Enable extendable parameters. Experimental features should be enabled for testing purposes only, as there are no guarantees about the quality or stability of these features. Do not enable these settings for any production usage, or your production environment may be subject to breaking.
Describe the solution you'd like
Apply a warning code to this warning, so it can be optionally ignored or filtered. Or, add another flag option to exclude this warning. (I tried disabling the Bicep linter in the bicepconfig.json file, but the warning was still printed, and thus, our build still failed.)
Example proj content:
Bicepconfig.json:
Beta Was this translation helpful? Give feedback.
All reactions