Issue #1085: Prefer AZD pattern modules first, fallback to AVM modules#1092
Conversation
There was a problem hiding this comment.
Pull request overview
Updates Azure skill guidance and evaluation coverage to prioritize AZD/AVM module selection in a way that aims to improve first-run deployment success.
Changes:
- Updated
azure-prepare/azure-deployskill descriptions and recipe references to emphasize AVM(+AZD) module selection order and fallback behavior. - Added a committed Waza eval suite for
azure-deploy(eval spec, trigger tests, and AVM ordering/fallback tasks). - Adjusted the integration test agent runner to use a local
approveAllpermission handler compatible with the current Copilot SDK import surface.
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/utils/agent-runner.ts | Replaces SDK approveAll import with a locally defined PermissionHandler implementation for sessions. |
| tests/azure-prepare/snapshots/triggers.test.ts.snap | Updates trigger keyword snapshots to reflect the new azure-prepare description text. |
| tests/azure-deploy/eval/trigger_tests.yaml | Adds deploy trigger routing prompts for the new committed azure-deploy eval suite. |
| tests/azure-deploy/eval/tasks/avm-order-bicep.yaml | Adds an eval task intended to validate AVM+AZD pattern-first guidance for Bicep deploy. |
| tests/azure-deploy/eval/tasks/avm-fallback-no-pattern.yaml | Adds an eval task intended to validate AVM fallback behavior when no pattern module exists. |
| tests/azure-deploy/eval/eval.yaml | Adds the main Waza eval spec for azure-deploy with metrics/graders and task globbing. |
| tests/azure-deploy/snapshots/triggers.test.ts.snap | Updates trigger keyword snapshots to reflect the new azure-deploy description text. |
| tests/README.md | Documents azure-deploy as a committed eval suite in the hybrid Waza model. |
| plugin/skills/azure-prepare/references/recipes/bicep/README.md | Links standalone Bicep recipe module guidance to the AVM module ordering rules. |
| plugin/skills/azure-prepare/references/recipes/azd/terraform.md | Adds Terraform-specific AVM module priority guidance and retrieval strategy notes. |
| plugin/skills/azure-prepare/references/recipes/azd/iac-rules.md | Introduces AVM module ordering rules plus a stated docs retrieval/validation plan. |
| plugin/skills/azure-prepare/references/recipes/azd/README.md | Links AZD recipe AVM guidance to the module ordering section. |
| plugin/skills/azure-prepare/references/recipes/azcli/README.md | Links azcli recipe module guidance to the AVM module ordering rules. |
| plugin/skills/azure-prepare/SKILL.md | Refines the skill description to focus on “prepare” scenarios and updates trigger phrasing. |
| plugin/skills/azure-deploy/references/recipes/bicep/README.md | Adds an AVM verification checklist prior to running deployment commands. |
| plugin/skills/azure-deploy/SKILL.md | Refines the skill description and fixes formatting around the references list. |
plugin/skills/azure-prepare/references/recipes/azd/iac-rules.md
Outdated
Show resolved
Hide resolved
plugin/skills/azure-prepare/references/recipes/azd/iac-rules.md
Outdated
Show resolved
Hide resolved
plugin/skills/azure-prepare/references/recipes/azd/iac-rules.md
Outdated
Show resolved
Hide resolved
plugin/skills/azure-prepare/references/recipes/azd/terraform.md
Outdated
Show resolved
Hide resolved
plugin/skills/azure-prepare/references/recipes/azd/iac-rules.md
Outdated
Show resolved
Hide resolved
|
Addressed the two latest Copilot review threads in commit
(Inline thread replies via GraphQL |
a4d4d95 to
dd3342a
Compare
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- narrow azure-prepare trigger wording to avoid migration overlap\n- make fallback wording provider-scoped in iac-rules\n- update azure-prepare trigger snapshots\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- add post-deployment SQL/EF migration step back to azure-deploy workflow\n- restore post-deployment reference link\n- update azure-deploy trigger snapshots\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
3a2c664 to
4edc352
Compare
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 15 out of 16 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (1)
plugin/skills/azure-prepare/SKILL.md:58
- The Step 0 routing table omits the highest-priority cross-cloud/AWS/GCP migration routing to azure-cloud-migrate (even though the skill description says cross-cloud should use azure-cloud-migrate). Since Step 0 is the “MANDATORY FIRST ACTION”, leaving this out can cause incorrect first-skill invocation. Add the azure-cloud-migrate row here (or explicitly point to the full routing table as the source of truth, including that row).
**BEFORE starting Phase 1**, check if the user's prompt mentions a specialized technology that has a dedicated skill with tested templates. If matched, **invoke that skill FIRST** — then resume azure-prepare for validation and deployment.
| Prompt keywords | Invoke FIRST |
|----------------|-------------|
| copilot SDK, copilot app, copilot-powered, @github/copilot-sdk, CopilotClient | **azure-hosted-copilot-sdk** |
| Azure Functions, function app, serverless function, timer trigger, HTTP trigger, func new | Stay in **azure-prepare** — prefer Azure Functions templates in Step 4 |
| APIM, API Management, API gateway, deploy APIM | Stay in **azure-prepare** — see [APIM Deployment Guide](references/apim.md) |
| AI gateway, AI gateway policy, AI gateway backend, AI gateway configuration | **azure-aigateway** |
|
We got a little carried away with trying to fix everything in this PR, so I'm just going to trim it back down to AVM changes only. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Summary
This PR strengthens Azure guidance to prioritize module selection in the order that yields the best customer outcomes:
Why these changes
References
Scope
azure-prepareandazure-deployreferences