update-avm-modules-in-bicep
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUpdate Azure Verified Modules in Bicep Files
在Bicep文件中更新Azure Verified Modules
Update Bicep 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.
${file}将Bicep文件更新为使用最新版本的Azure Verified Module(AVM)。进度更新仅限非破坏性变更。除最终输出表格和摘要外,请勿输出其他信息。
${file}Process
流程
- Scan: Extract AVM modules and current versions from
${file} - Identify: List all unique AVM modules used by matching using
avm/res/{service}/{resource}tool#search - Check: Use tool to get latest version of each AVM module from MCR:
#fetchhttps://mcr.microsoft.com/v2/bicep/avm/res/{service}/{resource}/tags/list - Compare: Parse semantic versions to identify AVM modules needing update
- Review: For breaking changes, use tool to get docs from:
#fetchhttps://github.com/Azure/bicep-registry-modules/tree/main/avm/res/{service}/{resource} - Update: Apply version updates and parameter changes using tool
#editFiles - Validate: Run and
bicep lintusingbicep buildtool to ensure compliance.#runCommands - Output: Summarize changes in a table format with summary of updates below.
- 扫描:从中提取AVM模块及其当前版本
${file} - 识别:通过匹配并使用
avm/res/{service}/{resource}工具,列出所有使用的唯一AVM模块#search - 检查:使用工具从MCR获取每个AVM模块的最新版本:
#fetchhttps://mcr.microsoft.com/v2/bicep/avm/res/{service}/{resource}/tags/list - 对比:解析语义版本,确定需要更新的AVM模块
- 审核:若存在破坏性变更,使用工具从以下地址获取文档:
#fetchhttps://github.com/Azure/bicep-registry-modules/tree/main/avm/res/{service}/{resource} - 更新:使用工具应用版本更新和参数变更
#editFiles - 验证:使用工具运行
#runCommands和bicep lint以确保合规性。bicep build - 输出:以表格格式总结变更,下方附上更新摘要。
Tool Usage
工具使用
Always use tools , ,, , , if available. Avoid writing code to perform tasks.
#search#searchResults#fetch#editFiles#runCommands#todos若有可用工具,请始终使用、、、、、。避免编写代码来执行任务。
#search#searchResults#fetch#editFiles#runCommands#todosBreaking 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.
undefinedDescribe updates made, any manual reviews needed or issues encountered.
undefinedIcons
图标
- 🔄 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文件的有效性和代码检查合规性