Skip to content

Commit ade45fb

Browse files
committed
CHANGE: Update AVM module process in Bicep prompt
- Refined the process for updating Azure Verified Modules in Bicep files. - Added steps to identify unique AVM modules and validate updates. - Enhanced tool usage guidelines for better clarity. - Improved output format specifications for summarizing changes.
1 parent b83f433 commit ade45fb

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

prompts/update-avm-modules-in-bicep.prompt.md

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
---
22
mode: 'agent'
33
description: 'Update Azure Verified Modules (AVM) to latest versions in Bicep files.'
4-
tools: ['changes', 'codebase', 'editFiles', 'fetch', 'runCommands', 'azure_get_deployment_best_practices', 'azure_get_schema_for_Bicep']
4+
tools: ['codebase', 'think', 'changes', 'fetch', 'searchResults', 'todos', 'editFiles', 'search', 'runCommands', 'bicepschema', 'azure_get_schema_for_Bicep']
55
---
66
# Update Azure Verified Modules in Bicep Files
77

8-
Update Bicep file `${file}` to use latest Azure Verified Module (AVM) versions.
8+
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 outout table and summary.
99

1010
## Process
1111

1212
1. **Scan**: Extract AVM modules and current versions from `${file}`
13-
2. **Check**: Fetch latest versions from MCR: `https://mcr.microsoft.com/v2/bicep/avm/res/{service}/{resource}/tags/list`
14-
3. **Compare**: Parse semantic versions to identify updates
15-
4. **Review**: For breaking changes, fetch docs from: `https://github.com/Azure/bicep-registry-modules/tree/main/avm/res/{service}/{resource}`
16-
5. **Update**: Apply version updates and parameter changes
17-
6. **Validate**: Run `bicep lint` to ensure compliance
13+
1. **Identify**: List all unique AVM modules used by matching `avm/res/{service}/{resource}` using `#search` tool
14+
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`
15+
1. **Compare**: Parse semantic versions to identify AVM modules needing update
16+
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}`
17+
1. **Update**: Apply version updates and parameter changes using `#editFiles` tool
18+
1. **Validate**: Run `bicep lint` and `bicep build` using `#runCommands` tool to ensure compliance.
19+
1. **Output**: Summarize changes in a table format with summary of updates below.
20+
21+
## Tool Usage
22+
23+
Always use tools `#search`, `#searchResults`,`#fetch`, `#editFiles`, `#runCommands`, `#todos` if available. Avoid writing code to perform tasks.
1824

1925
## Breaking Change Policy
2026

@@ -26,13 +32,19 @@ Update Bicep file `${file}` to use latest Azure Verified Module (AVM) versions.
2632

2733
## Output Format
2834

29-
Display results in table with icons:
35+
Only display results in table with icons:
3036

37+
```markdown
3138
| Module | Current | Latest | Status | Action | Docs |
3239
|--------|---------|--------|--------|--------|------|
3340
| avm/res/compute/vm | 0.1.0 | 0.2.0 | 🔄 | Updated | [📖](link) |
3441
| avm/res/storage/account | 0.3.0 | 0.3.0 | ✅ | Current | [📖](link) |
3542

43+
### Summary of Updates
44+
45+
Describe updates made, any manual reviews needed or issues encountered.
46+
```
47+
3648
## Icons
3749

3850
- 🔄 Updated

0 commit comments

Comments
 (0)