hosted-agents-v2-py

Create container-based hosted agents with the Azure AI Projects SDK.

2.9k|323|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/microsoft/skills --skill hosted-agents-v2-py-microsoft
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: hosted-agents-v2-py
Source: https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-python/skills/hosted-agents-v2-py
Command: npx skills add https://github.com/microsoft/skills --skill hosted-agents-v2-py-microsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Build container-based hosted agents using the Azure AI Projects SDK to run custom code in Azure AI Foundry, enabling scalable, isolated compute for AI workflows.

Core Features & Use Cases

  • Create hosted agents using ImageBasedHostedAgentDefinition with container images, CPU/memory, protocol versions, and tool support.
  • Configure environment variables and tools (e.g., code interpreters, MCP tooling) to empower containerized workflows.
  • Use cases include deploying data processing pipelines, AI-assisted tasks, and code execution workloads in isolated hosted agents.

Quick Start

Create a hosted agent by configuring an ImageBasedHostedAgentDefinition with your container image and protocol version.

Frequently Asked Questions about hosted-agents-v2-py

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy containerized agents to run custom code in Azure AI Foundry?▼

To deploy containerized agents in Azure AI Foundry, use the Azure AI Projects SDK to configure an ImageBasedHostedAgentDefinition with your container image, CPU/memory, and protocol versions. This enables scalable, isolated compute for custom AI workflows.

What are hosted agents used for in Azure cloud workflows?▼

Hosted agents in Azure cloud workflows provide isolated compute environments for executing data processing pipelines, AI-assisted tasks, and code execution workloads. They run custom code securely within containers configured via the Azure AI Projects SDK.

Can I configure environment variables and tools for container-based agents?▼

Yes, you can configure environment variables and tools such as code interpreters and MCP tooling when creating container-based agents. This empowers containerized workflows using ImageBasedHostedAgentDefinition within the Azure AI Projects SDK.

Does the Azure AI Projects SDK support asynchronous workflows for hosted agents?▼

Yes, the Azure AI Projects SDK supports both synchronous and asynchronous workflows for hosted agents. This allows developers to manage container-based agent deployments flexibly depending on their workload requirements.

What is the best way to set CPU and memory limits for custom code execution in Azure AI?▼

The best way to set CPU and memory limits for custom code execution is by specifying the resource allocations directly within the ImageBasedHostedAgentDefinition configuration using the Azure AI Projects SDK.