Highlights
-
@retryOndecorator is now GA! (#19454)Use the
@retryOndecorator to retry a resource deployment if the deployment hits a specific error code. You can also specify how many times this retry should happen.Example usage:
@retryOn(['ServerError'], 1) resource sqlServer 'Microsoft.Sql/servers@2021-11-01' = { name: 'sql-server-name' location: 'polandcentral' }
-
New
like()anddistinct()functions (#18990, #19167)Example usage:
// outputs true if myInput contains 'Bar' output wildcardMatch bool = like(myInput, '*Bar*') // outputs [1, 2, 3] output values string[] = distinct([1, 2, 2, 3, 1])
-
Add
use-recognized-resource-typelinter rule to warn for unrecognized resource types in reference/list* functions (#19303)The following code will emit a warning because 'Microsoft.Foo/bar' is not a recognized resource type:
output foo object = reference('Microsoft.Foo/bar', '2020-01-01')
-
Add
no-module-namelinter rule to enforce omitting explicit module names (optional - off by default) (#19556)The following code will emit a warning if enabled, because the module
nameproperty is no longer needed:module foo 'foo.bicep' = { name: 'foo' params: { ... } }
Features and Bug Fixes
- [BREAKING CHANGE] Block usage of custom domains for ACR (#19564)
- Bicep snapshot CLI commands:
- Deploy command: Allow location for non-RG scope deployments (#19330)
- Add description to module name property for improved IntelliSense (#19310)
- Fix duplicate errors for undefined types on resources (#19273)
- Bicepparam Improvements:
- MCP Server Improvements:
- Allow expressions in
getSecretfunction (#19204) - Theme vscode-elements widgets in visualizer ExportToolbar (#19557)
Community Contributions
- Update waitUntil feature description in docs (#19560) - thanks @brianveldman !
- Fix resource manager: Add condition for opened PRs from dependabot (#19311) - thanks @DragosDanielBoia !