這是舊版本,目前最新版本為0.49.2。 Bicep CLI 0.49.2 · 發行日期:
安裝檔 0.44.1
| 架構 | 類型 | 安裝範圍 | 檔案大小 | 下載 | SHA256 |
|---|---|---|---|---|---|
| 64位元 | EXE(Inno Setup) | 所有使用者 | — | github.com | VirusTotal |
| 64位元 | 免安裝版 | — | — | github.com | VirusTotal |
| ARM64 | 免安裝版 | — | — | github.com | VirusTotal |
下載連結與SHA256取自Windows套件管理員(winget)的社群資訊清單。執行前請先核對下載檔案的雜湊值。
更新紀錄
Highlights
- Extendable Params are now GA! (#19697)
Extendable Bicep Parameter Files (enabled with the extend keyword) allows you to reuse parameters from one .bicepparam file in another .bicepparam file.
root.bicepparam This 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.bicepparam This 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
- ThisNamespace and NullIfNotFound are now GA! (#19639)
When applied to an existing resource, using the @nullIfNotFound() decorator for existing resources will return null if 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
- Add diagnostics and tests for spread operator limitations with for-expressions (#19516)
- Add snapshot regression test for roleDefinitions (#19638)
- add getSecret parameter reference regression coverage (#19714)
- add regression coverage for bicepparam completions (#19703)