Skip to content

Releases: Azure/bicep

v0.18.4

12 Jun 19:58
1620479
Compare
Choose a tag to compare

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)
  • 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)

@dciborow

  • Fixes to BRM README Generation (#10471)

v0.17.1

05 May 01:26
d423d61
Compare
Choose a tag to compare

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)

@dciborow

  • Add new Bicep File Function: loadYamlContent (#10415)

@PalmEmanuel

  • 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:
    var foo = [for resourceGroup in []: {
      bar: resourceGroup('test')
    }]
    See #10657 for more detail.

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)

@jabbera

  • Resource Type parameters should generate BCP120 (#10401)

@mishrapratikshya

  • Fix for decompiler to support templatespec (#10329)

v0.16.2

11 Apr 19:26
de7fdd2
Compare
Choose a tag to compare

Bug fixes and features

Bicep team:

  • Use the correct bitwise operator for combining flags in JSON model loader (#10325)

v0.16.1

05 Apr 02:38
d77dcc7
Compare
Choose a tag to compare

Highlights

  • Remove the block on Bicep parameters files (#10191)
    • You can now enable support for .bicepparam files using the experimentalFeaturesEnabled.paramsFiles setting in bicepconfig.json
  • 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)

@levimatheri

  • Emit error diagnostic on negative array index (#10187)

@manishkulkarni

  • Increment nested deployment API version to 2022-09-01 (#10128)

@jabbera

  • Inline Resource Type Parameters (#10053)

@realsrikar

v0.15.31

07 Mar 17:49
3ba6e06
Compare
Choose a tag to compare

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)

@dciborow

  • Update devcontainer.json to latest schema (#9849)

@levimatheri

  • Add linter rule to simplify json('null') to null (#9744)
Read more

v0.14.85

21 Feb 16:55
f4a4d48
Compare
Choose a tag to compare

Features and bug fixes

@dciborow

  • Update devcontainer.json to latest schema (#9849)

Bicep team:

  • Fix issue 9467 (#9858)
  • Fix for issue 9855 (#9859)
  • Don't convert on paste if converted bicep is empty (#9789)
  • Keep 'Paste as Bicep' always enabled (#9799)
  • Replace not insert on Paste as Bicep (9631) (#9800)
  • Make "yes" the first (default?) survey button (#9835)
  • Update survey dialog text (#9837)

v0.14.46

08 Feb 18:54
ef2ceb1
Compare
Choose a tag to compare

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

31 Jan 22:24
f1dae16
Compare
Choose a tag to compare

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)
    • Full templates and resources (#9174)
    • Paste JSON value as Bicep (#9519)
  • 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
  • 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
    • Add tuple types (#9153)
    • Allow union declarations to be include a newline before any pipe (#9441)
    • Additional properties syntax (#9511)
    • Add a null forgiving operator (#9585)

@admodras

  • Update App Service icon to match proper resource type for visualizer (#9390)

@levimatheri

  • Add '=' as output type follower (#9525)
  • Handle types in first and last functions (#9533)

@dciborow

  • fix: nested functions not detected in strings (#9587)

@miqm

  • LoadJsonContent supports file with comments (#9222)

@vbossica

  • Change casing of secureString to comply with deploymentTemplate schema (#9225)
Read more

v0.13.1

05 Dec 22:40
e3ac80d
Compare
Choose a tag to compare

Highlights

Bicep team:

  • Bicep deploy - support deployment to azure cloud (#9097)

@miqm

  • 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)

@matsest

  • fix(vscode): add icons for container apps (#9101)

v0.12.40

08 Nov 00:33
41892bd
Compare
Choose a tag to compare

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)