How microsoft-foundry/foundry-samples works
This repository is a collection of Microsoft Foundry documentation samples, not one integrated application. Its principal workflow is for a developer to select and run an example demonstrating an agent or Foundry scenario. The examples cover agent setup and hosting, tools and retrieval, and private-network testing and reachability analysis. The graph emphasizes documented, excerpted examples and the central infrastructure tools; many other language-specific samples in the tree are represented by their broader sample areas. Relationships are sparse where source excerpts do not establish calls.
Main entry points: analyze.py Reachability analysis · web-search-agent/main.py Web search agent · hugging-face-tool-agent/main.py Tool client agent · Program.cs Hosted MCP
Components 19
Agent examples
- Echo agent
samples-classic/python/getting-started-agents/hosted-agents/echo-agent/main.py - Calculator agent
samples-classic/python/getting-started-agents/hosted-agents/calculator-agent/main.py - Web search agent
samples-classic/python/getting-started-agents/hosted-agents/web-search-agent/main.py - Tool client agent
samples-classic/python/getting-started-agents/hosted-agents/hugging-face-tool-agent/main.py
Agent capabilities
- Python text search
samples-classic/python/getting-started-agents/agent-framework/agent_with_text_search_rag/main.py - C# text search
samples-classic/csharp/getting-started-agents/AgentFramework/AgentWithTextSearchRag/Program.cs - Hosted MCP
samples-classic/csharp/getting-started-agents/AgentFramework/AgentWithHostedMCP/Program.cs - Blob file search
samples-classic/csharp/getting-started-agents/FileSearchBlobStorage/FileSearchBlobStorageAsync.cs
Private network tools
- A2A test server
infrastructure/infrastructure-setup-bicep/19-private-network-agent-tools/a2a-server/main.py - OpenAPI test server
infrastructure/infrastructure-setup-bicep/19-private-network-agent-tools/openapi-server/main.py - Reachability analysis
infrastructure/infrastructure-setup-bicep/deployment-tools/reachability-analyzer/analyze.py - Diagnostic agent
infrastructure/infrastructure-setup-bicep/deployment-tools/reachability-analyzer/diagnose.py
Quickstarts
- Python quickstart
samples-classic/python/quickstart/quickstart.py - JavaScript quickstart
samples-classic/javascript/quickstart/src/quickstart.js - TypeScript quickstart
samples-classic/typescript/quickstart/src/quickstart.ts
Other components
- Developer
- Microsoft Foundry
- Microsoft Learn MCP
- Bing Grounding
Connections 9
- Developer → Python quickstart: runs sample
README.md - Developer → JavaScript quickstart: runs sample
README.md - Developer → TypeScript quickstart: runs sample
README.md - Developer → Echo agent: tries examples
README.md - Developer → Reachability analysis: runs analysis
README.md - Reachability analysis → Diagnostic agent: imports
infrastructure/infrastructure-setup-bicep/deployment-tools/reachability-analyzer/analyze.py - Web search agent → Bing Grounding: uses search tool
samples-classic/python/getting-started-agents/hosted-agents/web-search-agent/main.py - Hosted MCP → Microsoft Learn MCP: configures tool
samples-classic/csharp/getting-started-agents/AgentFramework/AgentWithHostedMCP/Program.cs - Tool client agent → Microsoft Foundry: gets tools
samples-classic/python/getting-started-agents/hosted-agents/hugging-face-tool-agent/main.py