Dev & Engineering ✓ Microsoft · Official azure-ai-foundrypython-sdkhosted-agentsmcpstreaming-responsesconversation-threadsstructured-outputs

Azure AI Foundry Agent Framework

Helps Python developers build persistent Azure AI Foundry agents with hosted tools, MCP integrations, threads, and streaming.

FollowSkills review · FSRS-2.0
Not recommended
50/ 100 5-point scale 2.5 / 5
Trust14 / 25 · 2.8/5

The skill recommends DefaultAzureCredential, production credential constraints, and context-managed clients, reducing credential exposure and resource-leak risk. However, multiple HostedMCPTool examples use never_require approval and show bearer API keys, file uploads, and external API calls without default confirmation, data-flow/retention disclosure, least-privilege boundaries, or rollback guidance, so points are deducted.

Reliability8 / 20 · 2.0/5

Architecture, installation, authentication, threads, tools, MCP, and error-handling paths are documented, including retry and fallback examples. However, dependencies use --pre, key APIs are not reproduced by skill-specific tests, exception handling is broad, and compatibility and diagnosable failure guidance are incomplete, so the static score is conservative.

Adaptability8 / 15 · 2.7/5

The intended audience and core scenarios are clear: persistent agents, hosted tools, MCP, threads, and streaming. Non-fit boundaries, trigger exclusions, service-availability constraints, Chinese support, and mainland-China network reachability are not addressed, while core functionality depends on Azure services, so points are deducted.

Convention9 / 15 · 3.0/5

The documentation is layered and links four focused reference files, with installation, environment variables, examples, some operational guidance, MIT licensing, author, and version metadata. It lacks a changelog, compatibility matrix, explicit maintenance/update path, systematic FAQ, and fuller preview-dependency disclosure, so points are deducted.

Effectiveness7 / 15 · 2.3/5

Examples cover basic agents, function tools, hosted tools, streaming, threads, structured outputs, MCP, retries, and fallbacks, making the skill potentially useful as implementation guidance. However, all key outcomes require real Azure configuration and services, examples contain placeholders, and no skill-specific verified outputs or alternative comparisons are provided, so the static cap and uncertainty reduce the score.

Verifiability4 / 10 · 2.0/5

The supplied files contain auditable snippets, configuration details, and repository-level CI/test material, providing limited traceability. They do not show a committed test suite covering this skill's key paths or third-party execution evidence, so API correctness cannot be confirmed statically and the score remains conservative.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
Before you use it
  • Do not use approval_mode="never_require" by default for MCP tools with write, delete, private-data, or external side effects; require approval selectively and restrict allowed_tools.
  • Do not copy bearer API keys, project endpoints, file contents, or thread identifiers from examples into production; verify credentials, data flows, retention, and permission scope.
  • Installation uses --pre, and examples depend on Azure AI Foundry, Bing, MCP endpoints, and network reachability; pin compatible versions and validate mainland-China connectivity and regional service availability before deployment.
See the full review method →

What it does & when to use it

This Agent Skill targets developers building persistent agents on Azure AI Foundry with the Microsoft Agent Framework Python SDK. It covers AzureAIAgentsProvider, function tools, hosted code and search tools, MCP, conversation threads, streaming responses, and structured outputs. The guidance prioritizes DefaultAzureCredential and deterministic cleanup through asynchronous context managers. It is a strong fit for teams that already have an Azure AI Foundry project and want implementation patterns in Python; it is not a standalone runtime or a complete Azure deployment guide.

It guides a coding agent in producing asynchronous Python code that installs agent-framework or agent-framework-azure-ai, configures an Azure AI Foundry project endpoint and model deployment, creates or retrieves agents through AzureAIAgentsProvider, registers functions and hosted tools, calls Agent.run() or Agent.run_stream(), preserves multi-turn context with AgentThread, and validates structured responses with Pydantic models. It also demonstrates HostedMCPTool, MCPStreamableHTTPTool, and Bing search connections.

  1. A Python developer needs an asynchronous Azure AI Foundry agent with custom function tools.
  2. A team wants an agent that can execute code, search files, or perform Bing web searches.
  3. An application must preserve multi-turn context and resume conversations through AgentThread.
  4. A developer needs responses validated against a Pydantic structured-output model.
  5. A team needs to connect service-managed or client-managed MCP tools.
  6. An application needs to display agent responses incrementally through streaming.

Pros & cons

Pros
  • Covers a broad end-to-end workflow: agents, function tools, hosted tools, MCP, threads, streaming, and structured outputs.
  • Provides explicit credential, production configuration, and resource-cleanup guidance.
  • Includes reusable Python examples and a concise provider-method reference.
  • Uses the MIT license, and the repository identifies itself as actively maintained and expanding.
Limitations
  • Requires an Azure AI Foundry project endpoint, model deployment, and appropriate identity permissions; permission details are not specified.
  • Web search requires a separate Bing connection ID, while MCP examples depend on an accessible MCP service.
  • Examples install pre-release packages with --pre; no version pinning or compatibility matrix is provided.
  • The supplied material does not show independent test coverage or detailed error-handling guidance for this specific skill.
  • The scope is Azure AI Foundry with the Python Agent Framework SDK and should not be treated as coverage for sibling SDK skills.

How to install

Install the collection with npx skills add microsoft/skills, then select the required skill in the wizard. The README says skills are installed into the selected coding agent's directory, such as .github/skills/ for GitHub Copilot. This skill's source file is .github/plugins/azure-sdk-python/skills/agent-framework-azure-ai-py/SKILL.md. For the code examples, install either pip install agent-framework --pre or pip install agent-framework-azure-ai --pre. The source does not specify a fixed Python version, standalone CLI, or separately published skill package.

How to use

After loading the skill into a coding agent, use a request such as: “Build a persistent Azure AI Foundry agent with the Microsoft Agent Framework Python SDK, DefaultAzureCredential, hosted code execution, MCP, conversation threads, and streaming.” Set AZURE_AI_PROJECT_ENDPOINT and AZURE_AI_MODEL_DEPLOYMENT_NAME before running the generated code. Web search additionally requires BING_CONNECTION_ID. For production use of DefaultAzureCredential, the source recommends AZURE_TOKEN_CREDENTIALS=prod or a specific credential and requires async context managers for credentials and clients.

FAQ

Does this skill add a separate usage fee?
The source provides no pricing information. It states that Azure AI Foundry, a model deployment, and optional Bing or MCP services are required for the demonstrated features.
What access do I need?
You need AZURE_AI_PROJECT_ENDPOINT and AZURE_AI_MODEL_DEPLOYMENT_NAME plus Azure credentials. Production DefaultAzureCredential usage also requires AZURE_TOKEN_CREDENTIALS; web search requires BING_CONNECTION_ID.
Can it run an agent by itself?
No. It is guidance for a coding agent that generates Python code using agent-framework-azure-ai. Execution still requires Python, the SDK packages, Azure services, and credentials.
Is it suitable for non-Azure or non-Python projects?
Not directly. The skill explicitly targets Azure AI Foundry and the Microsoft Agent Framework Python SDK; the repository contains separate skills for other languages and services.

More skills from this repository

All from microsoft/agent-skills

Dev & Engineering ✓ Microsoft · Official

Azure Identity for Python

A practical skill for securing Python Azure applications with Microsoft Entra ID credentials.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs Java Skill

Build production-oriented Java event streaming applications on Azure Event Hubs.

Dev & Engineering ✓ Microsoft · Official

Azure Tables for Python

A practical guide to building authenticated Azure Tables applications with Python entity CRUD, queries, and partition-scoped batch operations.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

Configure secure, flexible Microsoft Entra ID authentication for TypeScript Azure applications.

Automation & Ops ✓ Microsoft · Official

Azure Reliability Advisor

Assess and improve reliability for Azure Functions and App Service.

Dev & Engineering ✓ Microsoft · Official

Azure Cloud Architect

Guides coding agents through production-grade Azure architecture design and review using Azure Architecture Center practices.

Dev & Engineering ✓ Microsoft · Official

Azure AI Text Analytics for Python

Guides Python developers through Azure-powered text analysis and NLP workflows.

Automation & Ops ✓ Microsoft · Official

Azure Resource Architecture Visualizer

Analyze Azure resource groups and turn their dependencies into detailed Mermaid architecture diagrams.

Dev & Engineering ✓ Microsoft · Official

Azure Maps for .NET

Build .NET location features for search, routing, maps, geolocation, and weather.

Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis

Guides Python coding agents in implementing Azure AI Vision image understanding.

Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for Python

Guides secure, production-minded Blob Storage operations in Python.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage for Python

Gives coding agents reliable Python patterns for secure Azure Queue Storage messaging and asynchronous task processing.

Automation & Ops ✓ Microsoft · Official

Azure AI Gateway Governance

Use Azure API Management to govern traffic across AI models, MCP tools, and agents.

Automation & Ops ✓ Microsoft · Official

AKS Automatic Readiness

Assess Kubernetes workloads for AKS Automatic compatibility and identify migration blockers before you switch.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB ARM for .NET

Provision and manage Azure Cosmos DB resources from .NET through ARM.

Dev & Engineering ✓ Microsoft · Official

Azure Playwright Workspace Manager

Provision and manage Microsoft Playwright Testing workspaces with .NET and Azure Resource Manager.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB for Python

A practical guide for building reliable Python applications on Azure Cosmos DB’s NoSQL API.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault SDK for Python

Gives Python coding agents practical guidance for securely managing Azure Key Vault secrets, keys, and certificates.

Dev & Engineering ✓ Microsoft · Official

Azure API Management for Python

Gives coding agents practical Python SDK patterns for managing Azure API Management services, APIs, products, subscriptions, and policies.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Query for Python

Generate Python code for querying Azure Monitor logs and metrics.

Related skills