update-avm-modules-in-bicep

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Update Azure Verified Modules in Bicep Files

在Bicep文件中更新Azure Verified Modules

Update Bicep file
${file}
to use latest Azure Verified Module (AVM) versions. Limit progress updates to non-breaking changes. Don't output information other than the final output table and summary.
将Bicep文件
${file}
更新为使用最新版本的Azure Verified Module(AVM)。进度更新仅限非破坏性变更。除最终输出表格和摘要外,请勿输出其他信息。

Process

流程

  1. Scan: Extract AVM modules and current versions from
    ${file}
  2. Identify: List all unique AVM modules used by matching
    avm/res/{service}/{resource}
    using
    #search
    tool
  3. Check: Use
    #fetch
    tool to get latest version of each AVM module from MCR:
    https://mcr.microsoft.com/v2/bicep/avm/res/{service}/{resource}/tags/list
  4. Compare: Parse semantic versions to identify AVM modules needing update
  5. Review: For breaking changes, use
    #fetch
    tool to get docs from:
    https://github.com/Azure/bicep-registry-modules/tree/main/avm/res/{service}/{resource}
  6. Update: Apply version updates and parameter changes using
    #editFiles
    tool
  7. Validate: Run
    bicep lint
    and
    bicep build
    using
    #runCommands
    tool to ensure compliance.
  8. Output: Summarize changes in a table format with summary of updates below.
  1. 扫描:从
    ${file}
    中提取AVM模块及其当前版本
  2. 识别:通过匹配
    avm/res/{service}/{resource}
    并使用
    #search
    工具,列出所有使用的唯一AVM模块
  3. 检查:使用
    #fetch
    工具从MCR获取每个AVM模块的最新版本:
    https://mcr.microsoft.com/v2/bicep/avm/res/{service}/{resource}/tags/list
  4. 对比:解析语义版本,确定需要更新的AVM模块
  5. 审核:若存在破坏性变更,使用
    #fetch
    工具从以下地址获取文档:
    https://github.com/Azure/bicep-registry-modules/tree/main/avm/res/{service}/{resource}
  6. 更新:使用
    #editFiles
    工具应用版本更新和参数变更
  7. 验证:使用
    #runCommands
    工具运行
    bicep lint
    bicep build
    以确保合规性。
  8. 输出:以表格格式总结变更,下方附上更新摘要。

Tool Usage

工具使用

Always use tools
#search
,
#searchResults
,
#fetch
,
#editFiles
,
#runCommands
,
#todos
if available. Avoid writing code to perform tasks.
若有可用工具,请始终使用
#search
#searchResults
#fetch
#editFiles
#runCommands
#todos
。避免编写代码来执行任务。

Breaking Change Policy

破坏性变更政策

⚠️ PAUSE for approval if updates involve:
  • Incompatible parameter changes
  • Security/compliance modifications
  • Behavioral changes
⚠️ 暂停并等待审批,如果更新涉及:
  • 不兼容的参数变更
  • 安全/合规性修改
  • 行为变更

Output Format

输出格式

Only display results in table with icons:
markdown
| Module | Current | Latest | Status | Action | Docs |
|--------|---------|--------|--------|--------|------|
| avm/res/compute/vm | 0.1.0 | 0.2.0 | 🔄 | Updated | [📖](link) |
| avm/res/storage/account | 0.3.0 | 0.3.0 || Current | [📖](link) |
仅以带图标表格展示结果:
markdown
| Module | Current | Latest | Status | Action | Docs |
|--------|---------|--------|--------|--------|------|
| avm/res/compute/vm | 0.1.0 | 0.2.0 | 🔄 | Updated | [📖](link) |
| avm/res/storage/account | 0.3.0 | 0.3.0 || Current | [📖](link) |

Summary of Updates

Summary of Updates

Describe updates made, any manual reviews needed or issues encountered.
undefined
Describe updates made, any manual reviews needed or issues encountered.
undefined

Icons

图标

  • 🔄 Updated
  • ✅ Current
  • ⚠️ Manual review required
  • ❌ Failed
  • 📖 Documentation
  • 🔄 已更新
  • ✅ 当前版本
  • ⚠️ 需要手动审核
  • ❌ 失败
  • 📖 文档

Requirements

要求

  • Use MCR tags API only for version discovery
  • Parse JSON tags array and sort by semantic versioning
  • Maintain Bicep file validity and linting compliance
  • 仅使用MCR标签API进行版本发现
  • 解析JSON标签数组并按语义版本排序
  • 保持Bicep文件的有效性和代码检查合规性