스킬 hosted-agents-v2-py
🔧

hosted-agents-v2-py

낮은 위험 ⚙️ 외부 명령어🌐 네트워크 접근🔑 환경 변수

Python 을 사용하여 Azure AI 호스팅 에이전트 배포하기

공식 Projects SDK 를 사용하여 Azure 에서 컨테이너 기반 AI 에이전트 배포를 간소화합니다. 수동 인프라 구성 없이 커스텀 에이전트 환경의 프로비저닝, 스케일링 및 관리를 자동화합니다.

지원: Claude Codex Code(CC)
⚠️ 68 나쁨
1

스킬 ZIP 다운로드

2

Claude에서 업로드

설정 → 기능 → 스킬 → 스킬 업로드로 이동

3

토글을 켜고 사용 시작

테스트해 보기

"hosted-agents-v2-py" 사용 중입니다. Create a hosted agent with image 'myacr.azurecr.io/processor:v2', 2 CPUs, 4GiB memory, and code interpreter tool

예상 결과:

  • Created agent: data-processor-agent
  • Version: 3
  • State: Succeeded
  • Agent ID: agent_abc123xyz

"hosted-agents-v2-py" 사용 중입니다. List all versions of agent 'my-hosted-agent'

예상 결과:

  • Version: 1, State: Succeeded, Created: 2025-01-15T10:30:00Z
  • Version: 2, State: Failed, Created: 2025-01-16T14:22:00Z
  • Version: 3, State: Succeeded, Created: 2025-01-17T09:15:00Z

"hosted-agents-v2-py" 사용 중입니다. Delete version 2 of agent 'my-hosted-agent'

예상 결과:

  • Deleting agent version...
  • Successfully deleted version 2 of my-hosted-agent

보안 감사

낮은 위험
v1 • 2/25/2026

Static analysis detected 79 potential issues across documentation code examples. After evaluation, all findings are FALSE POSITIVES. The file SKILL.md contains documentation with code examples showing shell commands (pip install, bash scripts) and environment variable access patterns typical for legitimate Azure AI development tutorials. No executable code is present. The 'weak cryptography' findings are false positives from detecting the word 'version' in context. No malicious intent or security risks identified.

1
스캔된 파일
327
분석된 줄 수
7
발견 사항
1
총 감사 수
중간 위험 문제 (2)
Documentation Contains Shell Command Examples
Static analysis detected backtick expressions and shell commands in SKILL.md. These are legitimate documentation examples showing installation commands (pip install) and bash scripts for Azure AI setup. Not executable code, only markdown-formatted tutorials.
Environment Variable Access in Examples
Documentation code examples show os.environ access for Azure endpoint configuration. This is standard practice for Azure SDK authentication patterns. No evidence of credential exfiltration or malicious access.
낮은 위험 문제 (2)
Hardcoded URLs in Documentation
Documentation contains legitimate Azure service URLs (services.ai.azure.com, pypi.org, learn.microsoft.com). These are reference links and example endpoints, not malicious network destinations.
False Positive Cryptography Detection
Static analyzer flagged 'weak cryptographic algorithm' at lines mentioning 'version' and 'protocol'. These are false positives from version parameters (e.g., 'v1') and protocol names in documentation text.
감사자: claude

품질 점수

38
아키텍처
100
유지보수성
87
콘텐츠
32
커뮤니티
76
보안
100
사양 준수

만들 수 있는 것

데이터 처리 파이프라인 에이전트

코드 인터프리터 도구를 사용하여 대규모 데이터셋을 처리하는 컨테이너화된 에이전트를 배포하며, 워크로드 요구에 따라 자동으로 스케일링합니다.

커스텀 도구 통합 에이전트

커스텀 MCP 서버 및 외부 API 에 연결하는 에이전트를 생성하여 Azure AI 인프라 내에서 전문적인 비즈니스 프로세스 자동화를 가능하게 합니다.

개발 환경 에이전트

팀 협업 및 빠른 프로토타이핑을 위해 사전 구성된 도구 및 설정이 포함된 격리된 개발 환경을 프로비저닝합니다.

이 프롬프트를 사용해 보세요

기본 에이전트 생성
Create a hosted agent using Azure AI Projects SDK. The agent should use container image 'myregistry.azurecr.io/my-agent:v1.0', require 2 CPU cores and 4GiB memory, support code interpreter tool, and set MODEL_NAME environment variable to 'gpt-4o-mini'.
멀티툴 에이전트 구성
Build an agent with both code interpreter and file search tools enabled. Connect to MCP server at 'https://tools.example.com' with label 'custom-tools'. Allocate 1 CPU core and 2GiB memory. Pass AZURE_AI_PROJECT_ENDPOINT from your environment to the agent.
비동기 에이전트 배포
Implement an asynchronous agent creation workflow using AIProjectClient from azure.ai.projects.aio. Create an agent named 'async-processor' with minimal resources (0.5 CPU, 1GiB memory). Use async context managers for proper resource cleanup.
프로덕션 준비 배포
Create a production agent deployment script with error handling. Include try/except blocks for ImagePullBackOff and InvalidContainerImage errors. Log agent state after creation. Implement cleanup logic to delete unused agent versions older than 30 days.

모범 사례

  • 재현 가능한 배포를 위해 'latest' 대신 특정 이미지 태그 사용
  • 최소 리소스 할당으로 시작한 후 모니터링 지표를 기반으로 스케일업
  • 민감한 구성을 Azure Key Vault 에 저장하고 환경 변수를 통해 참조
  • ImagePullBackOff 와 같은 일반 실패에 대한 포괄적인 오류 처리 구현
  • 리소스 활용도를 최적화하기 위해 사용하지 않는 에이전트 버전을 정기적으로 정리

피하기

  • environment_variables 사전에 비밀 정보나 API 키를 하드코딩
  • 프로덕션 배포에서 'latest' 이미지 태그 사용은 예측 불가능한 동작 유발
  • 실제 사용 패턴을 테스트하지 않고 최대 리소스를 할당하면 낭비 초래
  • AcrPull 역할 권한 설정을 생략하면 인증 실패 발생
  • 삭제 전략 없이 에이전트 버전을 생성하면 사용하지 않는 리소스 누적

자주 묻는 질문

호스팅 에이전트에 필요한 최소 SDK 버전은 무엇인가요?
azure-ai-projects 버전 2.0.0b3 이상이 필요합니다. 이전 버전은 ImageBasedHostedAgentDefinition 이나 호스팅 에이전트 API 를 지원하지 않습니다.
에이전트에 ACR 풀 권한을 어떻게 부여하나요?
Azure 포털에서 Azure Container Registry 로 이동한 후, Access Control (IAM) 으로 이동하여 AI 프로젝트의 관리되는 ID 에 'AcrPull' 역할을 추가합니다.
Docker Hub 나 다른 레지스트리의 컨테이너를 사용할 수 있나요?
아니요, 호스팅 에이전트는 현재 Azure Container Registry (ACR) 의 이미지만 필요합니다. 에이전트를 생성하기 전에 컨테이너 이미지를 빌드하여 ACR 에 푸시해야 합니다.
에이전트가 CPU 또는 메모리 제한을 초과하면 어떻게 되나요?
할당된 리소스를 초과하면 에이전트가 스로틀링되거나 종료됩니다. 에이전트의 리소스 사용량을 모니터링하고 cpu 및 memory 파라미터를 사용하여 제한을 적절히 조정하세요.
ImagePullBackOff 오류를 어떻게 디버깅하나요?
ACR 풀 권한이 부여되었는지 확인하고, 이미지 경로 및 태그가 레지스트리에 존재하는지 확인하며, ACR 이 AI 프로젝트의 가상 네트워크에서 액세스 가능한지 확인하세요.
에이전트 작업에 동기 클라이언트와 비동기 클라이언트 중 어떤 것이 더 좋은가요?
간단한 스크립트 및 일회성 작업에는 동기 클라이언트를 사용하세요. 여러 동시 에이전트 작업이 필요한 고처리량 시나리오에는 비동기 클라이언트 (azure.ai.projects.aio) 를 사용하세요.

개발자 세부 정보

파일 구조

📄 SKILL.md