Skip to content

Python: [Bug]: AzureAIClient can’t register Foundry “Connected Resource” Azure AI Search tool (portal-visible tool); only local function tools are supported #3135

@cmccann123

Description

@cmccann123

Description

Summary
When using Microsoft Agent Framework (Python) AzureAIClient to create an agent in Azure AI Foundry, I can pass function tools via tools=... (executed client-side). However, I can’t attach/register the Foundry-managed Azure AI Search tool that is created as a “Connected resource” in Foundry (and should appear as a tool in the Foundry UI). This makes it impossible to create a Foundry agent with the Azure AI Search connected tool using only Agent Framework APIs.

Expected behavior
AzureAIClient.create_agent(...) should support attaching Foundry-managed tools / connected resources so that:

  • the tool is registered on the agent in Foundry,
  • it appears in the Foundry UI as a tool/connected resource,
  • the tool is executed by the Foundry service (not by the local client app),
  • it uses the Foundry project “Connected resources” connection (no Search admin key required in client code).

Code Sample

Error Messages / Stack Traces

Package Versions

python-1.0.0b251223

Python Version

3.13

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpythonv1.0Features being tracked for the version 1.0 GA

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions