[Agents Extension] Provide handling to update agent endpoint details#8332
Merged
Conversation
Signed-off-by: trangevi <trangevi@microsoft.com>
Signed-off-by: trangevi <trangevi@microsoft.com>
Signed-off-by: trangevi <trangevi@microsoft.com>
Signed-off-by: trangevi <trangevi@microsoft.com>
trangevi
requested review from
JeffreyCA,
therealjohn and
trrwilson
as code owners
May 22, 2026 18:14
trangevi
commented
May 22, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds support for applying agent.yaml agent-level endpoint/card configuration changes to an existing live agent during azd deploy, including an “update-only” path (PATCH the agent without creating a new version).
Changes:
- Add an update-only deploy branch and a post-deploy step that patches agent-level
agent_endpoint/agent_cardfields after the deployed version becomes active. - Extend
agent.yaml/API models and mapping to support richer endpoint configuration (version selector + authorization schemes). - Add a predeploy prompt that detects existing agents with endpoint/card config and lets users choose between full deploy vs endpoint/card-only update.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| cli/azd/extensions/azure.ai.agents/internal/project/service_target_agent.go | Adds update-only deploy path and centralizes post-deploy polling + endpoint/card patching logic. |
| cli/azd/extensions/azure.ai.agents/internal/pkg/agents/agent_yaml/yaml.go | Extends agent.yaml schema types for endpoint configuration (version selection + auth schemes). |
| cli/azd/extensions/azure.ai.agents/internal/pkg/agents/agent_yaml/map.go | Maps new agent.yaml endpoint fields into agent API request models. |
| cli/azd/extensions/azure.ai.agents/internal/pkg/agents/agent_yaml/map_test.go | Updates tests for renamed endpoint protocol enum type. |
| cli/azd/extensions/azure.ai.agents/internal/pkg/agents/agent_api/operations_test.go | Updates patch-agent tests for renamed endpoint protocol enum type. |
| cli/azd/extensions/azure.ai.agents/internal/pkg/agents/agent_api/models.go | Adds API models/enums for agent endpoint configuration (protocols, selector, auth schemes). |
| cli/azd/extensions/azure.ai.agents/internal/pkg/agents/agent_api/models_test.go | Updates model round-trip tests for renamed endpoint protocol enum type. |
| cli/azd/extensions/azure.ai.agents/internal/cmd/listen.go | Adds predeploy detection/prompt and env-flag coordination for endpoint/card-only updates. |
Signed-off-by: trangevi <trangevi@microsoft.com>
Signed-off-by: trangevi <trangevi@microsoft.com>
📋 Prioritization NoteThanks for the contribution! The linked issue isn't in the current milestone yet. |
Signed-off-by: trangevi <trangevi@microsoft.com>
Signed-off-by: trangevi <trangevi@microsoft.com>
therealjohn
approved these changes
May 22, 2026
Member
Author
|
/check-enforcer override |
trangevi
enabled auto-merge (squash)
May 22, 2026 22:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Provide update only path
Fixes #8153