update-avm-modules-in-bicep
它能做什么
这个智能体会自动将你 Bicep 文件中的 Azure 代码模块(称为 AVM)更新到最新版本。它会检查更新并应用,确保你的代码始终使用最新的功能和修复。
适用场景
- ✓当你希望确保 Bicep 文件使用的是最新版本的 Azure 模块时。
- ✓当你需要一次更新多个模块,而不想手动逐个处理时。
- ✓当你想让 Azure 代码保持最新、安全,并应用最新的补丁时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/update-avm-modules-in-bicep/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“将我的 “network.bicep” 文件中的 AVM 模块更新到最新版本。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会先检查你的文件中正在使用哪些 Azure 模块,然后查找可用的最新版本,找到后自动更新文件。它只会进行不破坏兼容性的更新;如果涉及重大变更,会先征求你的同意。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Update Azure Verified Modules in Bicep Files
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.
Process
- Scan: Extract AVM modules and current versions from
${file} - Identify: List all unique AVM modules used by matching
avm/res/{service}/{resource}using#searchtool - Check: Use
#fetchtool to get latest version of each AVM module from MCR:https://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
#fetchtool to get docs from:https://github.com/Azure/bicep-registry-modules/tree/main/avm/res/{service}/{resource} - Update: Apply version updates and parameter changes using
#editFilestool - Validate: Run
bicep lintandbicep buildusing#runCommandstool to ensure compliance. - Output: Summarize changes in a table format with summary of updates below.
Tool Usage
Always use tools #search, #searchResults,#fetch, #editFiles, #runCommands, #todos if available. Avoid writing code to perform tasks.
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:
| 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
Describe updates made, any manual reviews needed or issues encountered.
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
常见问题
什么是 AVM 模块?
AVM 模块是 Azure 提供的预构建代码块,可以帮助你以标准化、高效的方式部署资源。
如果更新可能导致代码出错怎么办?
如果某次更新被视为“破坏性变更”(即可能影响代码的运行方式),智能体会暂停,并在进行修改前征求你的许可。
我怎么知道哪些模块被更新了?
智能体会用一个表格展示模块名称、旧版本、新版本和更新状态,并附上变更摘要。
详情
作者的原始描述
Update Azure Verified Modules (AVM) to latest versions in Bicep files.
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7462
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。