github Azure/bicep v0.36.1

latest releases: v0.37.4, v0.36.177
3 months ago

Highlights

  • GA release for optional types in variables (#17055)
    // current variable syntax
    var foo = 'hello'
    
    // new variable syntax with optional type
    var foo string = 'hello'
  • Add userPrincipalName to deployer() function return type (#17099)
    Example usage:
    var myUser = deployer().userPrincipalName
  • [Experimental] New CLI command group bicep snapshot for snapshot validation. See Using the snapshot command for usage information.
  • [Experimental] Local Deploy: Various improvements to support end-to-end scenarios (#17048, #17195, #17234, #17235, #17095)
  • [Requires the moduleIdentity Experimental feature] Support identity assignments on modules (#17150, #17233)
    Example usage:
    param identityId string
    
    module mod './module.bicep' = {
      identity: {
        type: 'UserAssigned'
        userAssignedIdentities: {
          '${identityId}': {}
        }
      }
    }
    Note that this is introduced for future capabilities, and is not currently supported by the backend service.
  • Bicep Extensibility feature flag has been removed (#17094)
    Documentation available at Use Bicep Extensions

Fixes

  • Fix completions for function arguments (#17146)
  • Enable decompilation of KV reference in parameters json (#17196)
  • Allow outer variable completions in user-defined functions (#17198)
  • Handle case insensitive name clashes for imported variable, func, and type symbols (#17200)
  • Add value bounds to loop index variable (#17201)
  • Raise error diagnostic on ambiguous scope (#17202)
  • Fix F12 for imported symbols from oci modules (#16941)
  • use-secure-value-for-secure-inputs linter rule: Remove some false positives (#17107)
  • adding cases to handle user defined typed params (#16864)
  • adding completion support for 'extends' keyword (#17194)
  • Fix F12 for imported symbols from oci modules (#16941)

Community Contributions

  • Add linter rule to warn on unused compile-time imports (#16990) - thanks @GABRIELNGBTUC !
  • Disable linter rule "Maximum number of variables used" when the file does not contain declarations used in files meant to deployed and variables are exported (#17149) - thanks @GABRIELNGBTUC !

Don't miss a new bicep release

NewReleases is sending notifications on new releases.