feat(azure.ai.agents): display metadata in connection show output#8400
Merged
Conversation
Display connection metadata key-value pairs in both table and JSON output for 'azd ai connection show'. Metadata was already fetched from ARM but not rendered in table format. Fixes #8351 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
📋 Prioritization NoteThanks for the contribution! The linked issue isn't in the current milestone yet. |
therealjohn
approved these changes
May 27, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
trangevi
approved these changes
May 27, 2026
Member
|
/check-enforcer override |
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.
Summary
Fixes #8351
The
connection showcommand was not displaying metadata key-value pairs in its table output. The metadata was already being fetched from the API and included in JSON output, but the table formatter (printDetail) was not rendering it.This PR adds a Metadata section to the table output of
azd ai agent connection show, displayed between the Target and Credentials sections. When no metadata exists, the section is cleanly omitted.Changes
connection.go: Added metadata rendering block inprintDetail()— iteratesresult.Metadataand prints each key-value pair with proper indentationconnection_test.go: Added 3 new tests:TestPrintDetail_Metadata_TableOutput— verifies metadata appears in table formatTestPrintDetail_Metadata_OmittedWhenEmpty— verifies no metadata section when map is emptyTestPrintDetail_Metadata_JsonOutput— verifies metadata is included in JSON outputBefore
After