$npx -y skills add github/awesome-copilot --skill update-avm-modules-in-bicepUpdate Azure Verified Modules (AVM) to latest versions in Bicep files.
| 1 | # Update Azure Verified Modules in Bicep Files |
| 2 | |
| 3 | 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. |
| 4 | |
| 5 | ## Process |
| 6 | |
| 7 | 1. **Scan**: Extract AVM modules and current versions from `${file}` |
| 8 | 1. **Identify**: List all unique AVM modules used by matching `avm/res/{service}/{resource}` using `#search` tool |
| 9 | 1. **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` |
| 10 | 1. **Compare**: Parse semantic versions to identify AVM modules needing update |
| 11 | 1. **Review**: For breaking changes, use `#fetch` tool to get docs from: `https://github.com/Azure/bicep-registry-modules/tree/main/avm/res/{service}/{resource}` |
| 12 | 1. **Update**: Apply version updates and parameter changes using `#editFiles` tool |
| 13 | 1. **Validate**: Run `bicep lint` and `bicep build` using `#runCommands` tool to ensure compliance. |
| 14 | 1. **Output**: Summarize changes in a table format with summary of updates below. |
| 15 | |
| 16 | ## Tool Usage |
| 17 | |
| 18 | Always use tools `#search`, `#searchResults`,`#fetch`, `#editFiles`, `#runCommands`, `#todos` if available. Avoid writing code to perform tasks. |
| 19 | |
| 20 | ## Breaking Change Policy |
| 21 | |
| 22 | ⚠️ **PAUSE for approval** if updates involve: |
| 23 | |
| 24 | - Incompatible parameter changes |
| 25 | - Security/compliance modifications |
| 26 | - Behavioral changes |
| 27 | |
| 28 | ## Output Format |
| 29 | |
| 30 | Only display results in table with icons: |
| 31 | |
| 32 | ```markdown |
| 33 | | Module | Current | Latest | Status | Action | Docs | |
| 34 | |--------|---------|--------|--------|--------|------| |
| 35 | | avm/res/compute/vm | 0.1.0 | 0.2.0 | 🔄 | Updated | [📖](link) | |
| 36 | | avm/res/storage/account | 0.3.0 | 0.3.0 | ✅ | Current | [📖](link) | |
| 37 | |
| 38 | ### Summary of Updates |
| 39 | |
| 40 | Describe updates made, any manual reviews needed or issues encountered. |
| 41 | ``` |
| 42 | |
| 43 | ## Icons |
| 44 | |
| 45 | - 🔄 Updated |
| 46 | - ✅ Current |
| 47 | - ⚠️ Manual review required |
| 48 | - ❌ Failed |
| 49 | - 📖 Documentation |
| 50 | |
| 51 | ## Requirements |
| 52 | |
| 53 | - Use MCR tags API only for version discovery |
| 54 | - Parse JSON tags array and sort by semantic versioning |
| 55 | - Maintain Bicep file validity and linting compliance |