Agent skill · DevOps & Cloud

agents-v2-py

Build container-based Foundry Agents with Azure AI Projects SDK (ImageBasedHostedAgentDefinition). Use when creating hosted agents with custom container images in Azure AI Foundry.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill agents-v2-py --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 9 KB
Bundled scripts: none
Path: skills/agent/agents-v2-py/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Azure AI Hosted Agents (Python) Build container-based hosted agents using `ImageBasedHostedAgentDefinition` from the Azure AI Projects SDK. ## Installation ```bash pip install azure-ai-projects>=2.0.0b3 azure-identity ``` **Minimum SDK Version:** `2.0.0b3` or later required for hosted agent support. ## Environment Variables ```bash AZURE_AI_PROJECT_ENDPOINT=https://<resource>.services.ai.azure.com/api/projects/<project> ``` ## Prerequisites Before creating hosted agents: 1. **Container Image** - Build and push to Azure Container Registry (ACR) 2. **ACR Pull Permissions** - Grant your project's managed identity `AcrPull` role on the ACR 3. **Capability Host** - Account-level capability host with `enablePublicHostingEnvironment=true` 4. **SDK Version** - Ensure `azure-ai-projects>=2.0.0b3` ## Authentication Always use `DefaultAzureCredential`: ```python from azure.identity import DefaultAzureCredential from azure.ai.projects import AIProjectClient credential = DefaultAzureCredential() client = AIProjectClient( endpoint=os.environ["AZURE_AI_PROJECT_ENDPOINT"], credential=credential ) ``` ## Core Workflow ### 1. Imports ```python import os from azure.identity import DefaultAzureCrede

What's inside
Steps it walks through
  1. Installation
  2. Environment Variables
  3. Prerequisites
  4. Authentication
  5. Core Workflow
  6. 1. Imports
  7. 2. Create Hosted Agent
  8. 3. List Agent Versions
  9. 4. Delete Agent Version
  10. ImageBasedHostedAgentDefinition Parameters
  11. Protocol Versions
  12. Resource Allocation
  13. Tools Configuration
  14. Code Interpreter
Ships with 1 file
  • metadata.json
Commands it runs
pip install azure-ai-projects>=2.0.0b3 azure-identity
More from claude-skill-registry
All skills →
About this skill
What does the agents-v2-py skill do?

Build container-based Foundry Agents with Azure AI Projects SDK (ImageBasedHostedAgentDefinition). Use when creating hosted agents with custom container images in Azure AI Foundry.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill agents-v2-py --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going