Highlights
-
Extendable Params are now GA! (#19697)
Extendable Bicep Parameter Files (enabled with the
extendkeyword) allows you to reuse parameters from one.bicepparamfile in another.bicepparamfile.root.bicepparamThis is your main bicepparam file, which can be reused by multiple extended .bicepparam files and in multiple deployments.using none // Notice that the first line of this .bicepparam file declares `using none` which tells the compiler not to validate this against any particular .bicep file. param namePrefix = 'Prod'
leaf.bicepparamThis is your extended bicepparam file, which will refer to one main.bicep file and one main .bicepparam file. Any parameter value in this file will override all previous values.using 'main.bicep' extends 'root.bicepparam' param namePrefix = 'Dev' // this will override the 'Prod' value we assign in our root.bicepparam file
-
ThisNamespaceandNullIfNotFoundare now GA! (#19639)When applied to an existing resource, using the
@nullIfNotFound()decorator for existing resources will returnnullif it doesn't exist at deployment time instead of failing.@nullIfNotFound() resource exampleResource 'Microsoft.Storage/storageAccounts@2021-04-01' existing = { name: 'test' }
For 'ThisNamespace':
this.exists()returns a bool indicating the existence of the current resource.this.existingResource()returns null if the resource does not exist and returns the full resource if the resource exists.resource usingThis 'Microsoft...' = { name: 'example' location: 'eastus' properties: { property1: this.exists() ? 'resource exists' : 'resource does not exist' property2: this.existingResource().?properties.?property2 property3: this.existingResource().?tags } }
Features and Bug Fixes
- Remove old Cytoscape.js visualizer (#19747)
- Migrate to System.CommandLine library for CLI commands for enhanced discoverability (#19312)
- Trim mcp tools returned resource schema (#19645)
- fix vs code generate params json output path (#19755)
- Fix BCP120 on extension Required+DTC identifier properties (#19637)
Diagnostics and Tests