跳到正文
Skillpedia
部署与云(DevOps)40k · #7462

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/update-avm-modules-in-bicep/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  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.

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能