Releases: Azure/bicep
Releases · Azure/bicep
v0.18.4
Highlights
Bicep team:
- Support for
.bicepparam
parameters files (bicep-style parameters file). This includes support for:- support for expressions using any functions in the
sys
namespace (i.e.uniqueString()
) - supported natively by Az CLI and Azure PowerShell (i.e.
az deployment group create -f ./main.bicep -p params.bicepparam ...
) - CLI command to generate bicepparam file from given Bicep file (#10595)
- Buildparams command vscode extension (#10738)
- LoadEnvironmentVariable to enable using env variables in .bicepparam files (#10726)
- Support bicepparam files for VS Code deploy bicep file action (#10593)
- Bicepparam decompiler (#10785)
- Bicep param decompile vscode action (#10921)
- support for expressions using any functions in the
- Provide help text when consuming modules from ACR (#10747)
- Bicep build command linter provides a structured output (#10672)
Bug fixes and features
Bicep team:
- Mark overload matches as PotentialMatches if any argument is of type 'any' (#10659)
- Provide completions for unknown keys on dictionaries (#10927)
- Fix CLI restore --force (9580) (#10817 and #10829)
- Remove metadata from symbol resolution logic (#10626)
- Derive operation return type from operands (#10545)
- [Bicep Public Registry] Allow specifying metadata in bicep in addition to metadata.json (#10860)
- Add intellisense support for param and output values (#10680)
- MAINT: Run tests in parallel to speed up CI by 0.5x (#10716)
- Mark overload matches as PotentialMatches if any argument is of type 'any' (#10659)
- Provide completions for unknown keys on dictionaries (#10927)
- Fix CLI restore --force (9580) (#10817)
- Fixes to BRM README Generation (#10471)
v0.17.1
Highlights
Bicep team:
- Experimental support for user defined functions (#10465). (Requires the experimental feature flag "userDefinedFunctions" to enable).
- Added new CIDR network calculation functions (#10125). (We are working on official docs. For now, here's a link to function signatures and a sample: https://gist.github.com/majastrz/bdd776addfa72c0719334996c0aa78f5)
- Add support for Custom Kubernetes Resources (#10598)
- Add MaxAgeInDays config to use-recent-api-versions rule (#10344)
- Bump az types version (#10603)
- remove "experimental" from bicep.containerRegistryCompletions.useAllAccessible setting (#10457)
- Add new Bicep File Function: loadYamlContent (#10415)
- New parameter
--force
on Publish command (#9745)
Breaking changes
- Name resolution & scoping behavior for variables declared in lambdas & for loops is now consistent with variables declared at the global scope. This means that previously, the following would have been permitted, whereas now it is blocked:
See #10657 for more detail.
var foo = [for resourceGroup in []: { bar: resourceGroup('test') }]
Features and bug fixes
Bicep team:
- Attempt to fix e2e test failing. (#10389)
- Improve compiler detection of invalid runtime value usages. (#10250)
- Semantic highlighting for comma was missing within a string (#10472)
- Resource Type parameters should generate BCP120 (#10401)
- Fix for decompiler to support templatespec (#10329)
v0.16.2
v0.16.1
Highlights
- Remove the block on Bicep parameters files (#10191)
- You can now enable support for
.bicepparam
files using theexperimentalFeaturesEnabled.paramsFiles
setting inbicepconfig.json
- You can now enable support for
- Allow all type syntax in
output
declarations (#10052) - Removal experimental flag for public module completions (#10261)
Features and bug fixes
Bicep team:
- Bicep CLI binaries for Mac are now signed.
- use-resource-symbol-reference - fix for unhandled exception (#10246)
- Support scope & parent properly on child resources (#10254)
- Warn instead of error for resource name discriminator mismatch (#10256)
- Expressions in Bicep parameters files (#10248)
- Refinement types (#9870)
- Refine return types for built-in functions (#10102)
- Prioritize resource/module completions for 'resource.dependsOn' array item completions (#10043)
- Enable array item completions for single line arrays. (#10193)
- Fine-tune priorities for module completions (#10262)
- Bump az types (#10310)
- Emit error diagnostic on negative array index (#10187)
- Increment nested deployment API version to 2022-09-01 (#10128)
- Inline Resource Type Parameters (#10053)
- Fix 9958 (#10096)
v0.15.31
Highlights
- Add implementation for use-resource-symbol-reference linter rule (#9742)
- Nullable types (#9454) - must have
experimentalFeaturesEnabled.userDefinedTypes
set to true - Remove experimental flag for Paste as Bicep (#9905)
- Add view type definition support for MCR modules (#9709)
- Support module registry reference completions (#9913)
- Bumping Types version (#9986)
Bug fixes and features
Bicep team:
- Add a fix for a known cause of issue 1931 (#9711)
- Add issue redirect link (#9731)
- Fix issue 9467 (#9858)
- Fix for issue 9855 (#9859)
- Remove coalesce from list of functions (#9914)
- Fix for issue 7952 (#9910)
- VSCode: Show less obtrusive and more granular loading indicator (#9920)
- Emit a warning rather than an error for inappropriately nullable function arguments (#9721)
- Warn (don't error) on nullables throughout (#9730)
- Replace loop-local variable references on the
scope
of descendent resources (#9651) - Update join signature (#9954)
- Prevent stack overflow in use-stable-resource-identifiers linter (#10001)
- Fixed restore from ACR with anonymous pull enabled when az or PS are not logged in (#9922)
- Fix language server starup issue in visual studio (#9739)
- Update devcontainer.json to latest schema (#9849)
- Add linter rule to simplify json('null') to null (#9744)
v0.14.85
v0.14.46
Highlights
- Prompt for annual survey in (#9664)
- Add "View type definition" support for MCR modules to view readme for that module (#9709)
Features and bug fixes
Bicep team:
- Add a fix for a known cause of issue 1931 (#9711)
- Add issue redirect link (#9731)
- Handle tuples in allowed([...])-derived param type (#9717)
- Emit a warning rather than an error for inappropriately nullable function arguments (#9721)
- Type inference for tuple index access (#9724)
- Warn (don't error) on nullables throughout (#9730)
- Update literal return type deriver to take account of object additionalProperties (#9735)
- Replace loop-local variable references on the
scope
of descendent resources (#9651) - Fix language server starup issue in visual studio (#9739)
v0.14.6
Highlights
Bicep team:
- Add linter rule
use-parent-property
to recommend usage of parent property (#9305) - Add decompilation support for lambda functions (#9592)
- Paste as Bicep (enable in Bicep VS Code extension settings)
- Add "View type definition" support for modules in the public registry (#9647)
- Documentation can be associated with the registry using the
--documentationUrl
parameter - Works for all modules in the public registry
- Documentation can be associated with the registry using the
- Updating Azure.Bicep.Types.Az version for Bicep Release 0.14.0 (#9697)
- Block expressions that generate nested references (#9646)
Features and Bug fixes
Bicep team:
- Expose the
toObject
function in Bicep (#8982) - Simplify codegen for myRes['id'] (#9299)
- Fix for Insert Resource in a blank file (#9447)
- Published Bicep modules now include
artifactType
in the OCI manifest (#9520) - Various fixes for deploy-time constant validation (#9531)
- Custom types enhancements
- Update App Service icon to match proper resource type for visualizer (#9390)
- fix: nested functions not detected in strings (#9587)
- LoadJsonContent supports file with comments (#9222)
- Change casing of secureString to comply with deploymentTemplate schema (#9225)
v0.13.1
Highlights
Bicep team:
- Bicep deploy - support deployment to azure cloud (#9097)
- Emitting getSecret inside a ternary expression (#8658)
Bug fixes and features
Bicep team:
- Fix for partially-typed resource type completions (#9158)
- InsertResource: Use json() function to format non-integer number (#9162)
- Support fully-qualified ambient type symbols in output declaration type clauses (#8961)
- Fix
flatten
signature (#9117) - Block nested runtime functions (#8965)
- fix(vscode): add icons for container apps (#9101)
v0.12.40
Features and bug fixes
This is a hotfix for some unintended breaking changes that went out with the v0.12.1 release. Apologies for any inconvenience this may have caused!
Bicep team:
- Make sure that single-item allowed decorators on arrays are treated the same as decorators with multiple items (#8893)
- Correct union assignability check when both sides of the assignment are unions (#8899)
- Use imported type rather than narrowed type for union branches within resource declaration (#8902)
- Incorporate type names into Bicep symbol table (#8876)
- Update TypeHelper.IsLiteralType to avoid catching LanguageConstants.Object (#8952)
- Fix an issue where building file with deeply nested external modules throws (#8903)
- Allow 'asazure.windows.net' for no-hardcoded-env-urls (#8871)