You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
azd ai agent connection update currently accepts only --target, --key, and --custom-key. There is no way to add or replace metadata.* on an existing connection.
This blocks the second PUT (register-actions) in the gateway_connector OAuth2 flow, which requires adding metadata.mcpserverConfigProperties to the existing connection so the server can rewrite target to the per-environment Logic Apps gateway URL.
Repro
azd ai agent connection create my-box ... --connector-name box --metadata type=gateway_connector → status Unauthenticated.
Complete user consent via listConsentLinks.
Need to PUT again with metadata.mcpserverConfigProperties = { ... }. No CLI path exists.
Workaround today: azd ai agent connection create my-box --force ... with the full metadata bag re-supplied — fragile and forces users to re-type all top-level fields.
Suggested fix (either)
Add --metadata key=value (repeatable) to azd ai agent connection update, merging into properties.metadata.
Add a dedicated azd ai agent connection register-actions subcommand that wraps PUT Update vscode ext instructions #2 for gateway_connector connections.
(1) is the lower-friction option and also helps other metadata-driven flows (catalog_MCP, toolEntityId, etc.).
Related
connection create already has --metadata — update should mirror it for parity.
The catalog_MCP flow for BYO OAuth2 connections (GitHub MCP, etc.) similarly needs metadata wiring on creation; same flag shape would cover both.
Env
azd 1.25.2
ext azure.ai.agents@0.1.34-preview
Verified 2026-05-27/28 against DST projectcgnp (westus2)
Summary
azd ai agent connection updatecurrently accepts only--target,--key, and--custom-key. There is no way to add or replacemetadata.*on an existing connection.This blocks the second PUT (register-actions) in the gateway_connector OAuth2 flow, which requires adding
metadata.mcpserverConfigPropertiesto the existing connection so the server can rewritetargetto the per-environment Logic Apps gateway URL.Repro
azd ai agent connection create my-box ... --connector-name box --metadata type=gateway_connector→ statusUnauthenticated.listConsentLinks.metadata.mcpserverConfigProperties = { ... }. No CLI path exists.Workaround today:
azd ai agent connection create my-box --force ...with the full metadata bag re-supplied — fragile and forces users to re-type all top-level fields.Suggested fix (either)
--metadata key=value(repeatable) toazd ai agent connection update, merging intoproperties.metadata.azd ai agent connection register-actionssubcommand that wraps PUT Update vscode ext instructions #2 for gateway_connector connections.(1) is the lower-friction option and also helps other metadata-driven flows (
catalog_MCP,toolEntityId, etc.).Related
connection createalready has--metadata—updateshould mirror it for parity.catalog_MCPflow for BYO OAuth2 connections (GitHub MCP, etc.) similarly needs metadata wiring on creation; same flag shape would cover both.Env
azd1.25.2azure.ai.agents@0.1.34-previewprojectcgnp(westus2)