Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 16, 2026

This PR adds metadata capability and AZD_EXT_DEBUG debugger support to all azd extensions. These enhancements enable better telemetry tracking (via command path resolution) and improved debugging workflows for extension developers.

Changes

For Each Extension

  1. Metadata Capability: Added metadata command to expose extension command structure for telemetry (captures full extension command path, see tracing: capture full extension command path using metadata capability #6528)
  2. Debugger Support: Added azdext.WaitForDebugger() call to support AZD_EXT_DEBUG=true environment variable for debugging extensions (Add azdext.WaitForDebugger to extensions for improved debugging #6542)

For microsoft.azd.extensions (azd x)

  • Add metadata and framework service provider capabilities to azd x init wizard
  • Update Go scaffolding with metadata command, azdext.WaitForDebugger(), and ExtensionHost pattern

Testing

  • Built and tested all extensions locally
  • Verified metadata commands return correct command structure
  • Verified AZD_EXT_DEBUG=true prompts for debugger attachment
Original prompt

This section details on the original issue you should resolve

<issue_title>Add metadata capabilities to azure.ai.agents and azure.ai.finetune extensions</issue_title>
<issue_description>See #6496

We'll need to bump the github.com/azure/azure-dev/cli/azd dependency in go.mod</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add metadata capabilities to azure.ai.agents and azure.ai.finetune Add metadata capabilities to azure.ai.agents and azure.ai.finetune extensions Jan 16, 2026
Copilot AI requested a review from JeffreyCA January 16, 2026 02:25
@JeffreyCA
Copy link
Contributor

@copilot can you apply this to the other extensions as well (except microsoft.azd.ai.builder)? And also bump version numbers and create changelog entries for them all

Copy link
Contributor Author

Copilot AI commented Jan 16, 2026

@copilot can you apply this to the other extensions as well (except microsoft.azd.ai.builder)? And also bump version numbers and create changelog entries for them all

Applied metadata capability to the remaining extensions (except microsoft.azd.ai.builder) in commit e25077c:

  • azure.ai.agents → v0.1.6-preview
  • azure.ai.finetune → v0.0.9-preview
  • azure.coding-agent → v0.5.3
  • microsoft.azd.concurx → v0.0.2
  • microsoft.azd.extensions → v0.8.1

Each extension now has a hidden metadata command, updated extension.yaml with the metadata capability, bumped versions, and changelog entries.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • aka.ms
    • Triggering command: ./azd ./azd x metadata -goversion go1.25.5 -c=4 -nolocalimports -importcfg /tmp/go-build3973352797/b744/importcfg -pack /home/REDACTED/work/azure-dev/azure-dev/cli/azd/pkg/tools/javac/javac.go x_amd64/compile 1991�� 64/src/net o 64/pkg/tool/linu-lang=go1.23 -I /tmp/go-build400-o -I 64/pkg/tool/linu-trimpath (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copy link
Contributor

@JeffreyCA JeffreyCA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot can you make these changes, and in addition add improved debugging as described in #6542?

Copy link
Contributor Author

Copilot AI commented Jan 16, 2026

@copilot can you make these changes, and in addition add improved debugging as described in #6542?

All changes applied in commit 4664a22:

Version updates:

  • azure.coding-agent → 0.6.0
  • microsoft.azd.extensions → 0.9.0

WaitForDebugger (#6542) added to:

  • azure.ai.agents: init command
  • azure.ai.finetune: init, jobs submit, jobs show, jobs list commands
  • azure.coding-agent: config command
  • microsoft.azd.concurx: up command
  • microsoft.azd.extensions: init, release commands

Changelog entries simplified to "Add metadata capability" and "Add azdext.WaitForDebugger support for improved debugging".

Copilot AI requested a review from JeffreyCA January 16, 2026 19:16
@JeffreyCA JeffreyCA force-pushed the copilot/add-metadata-capabilities branch from 4c3d2b2 to 86e1276 Compare January 16, 2026 22:07
@JeffreyCA JeffreyCA changed the title Add metadata capabilities to azure.ai.agents and azure.ai.finetune extensions Add metadata capabilities and AZD_EXT_DEBUG support to extensions Jan 16, 2026
@JeffreyCA JeffreyCA force-pushed the copilot/add-metadata-capabilities branch from 86e1276 to 5fdf6e7 Compare January 17, 2026 00:03
@JeffreyCA JeffreyCA force-pushed the copilot/add-metadata-capabilities branch from 5c64495 to 1222de8 Compare January 17, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add metadata capabilities to extensions

2 participants