본문으로 건너뛰기
Skillpedia
에이전트40k · #7207

foundry-agent-sync

하는 일

이 도구는 Azure AI Foundry 서비스 안에서 AI 에이전트를 직접 만들고 업데이트합니다. 로컬 설정 파일(JSON)을 사용해 에이전트를 정의하고, API나 포털을 통해 사용할 수 있게 만듭니다.

사용하는 경우

  • ✓Azure AI Foundry에서 새 AI 에이전트를 만들고 싶을 때.
  • ✓에이전트 정의를 Foundry와 동기화해야 할 때.
  • ✓서비스에 기존 에이전트를 등록하거나 업데이트하고 싶을 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/foundry-agent-sync/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/foundry-agent-sync/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“foundry-agents.json 파일을 사용해 Azure AI Foundry에서 AI 에이전트를 만들고 동기화해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 에이전트를 설명하는 JSON 파일(에이전트가 하는 일, 지침 등)을 읽습니다. 그런 다음 API를 통해 이 정보를 Azure AI Foundry로 보내, 에이전트를 등록하거나 업데이트해 바로 쓸 수 있게 합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Foundry Agent Sync

Overview

Create and synchronize prompt-based AI agents directly within Azure AI Foundry via the Agent Service REST API. This skill registers agents in the Foundry service itself — making them immediately available for invocation, evaluation, and management through the Foundry portal or API. Each agent is created or updated idempotently via a named POST call, using definitions from a local JSON manifest file.

Key distinction: This skill creates agents inside AI Foundry (server-side). It does not scaffold local agent code or container images — for that, use the microsoft-foundry skill's create sub-skill.

Prerequisites

The user must have:

  1. An Azure AI Foundry project with a deployed model (e.g. gpt-5-4)
  2. Azure CLI (az) authenticated with access to the Foundry project
  3. The Azure AI User role (or higher) on the Foundry project resource

Collect these values before proceeding:

Value How to get it
Foundry project endpoint Azure Portal → AI Foundry project → Overview → Endpoint, or az resource show
Subscription ID az account show --query id -o tsv
Model deployment name The model name deployed in the Foundry project (e.g. gpt-5-4)

Manifest Format

The manifest is a JSON array where each entry defines one agent. Look for it at common paths: infra/foundry-agents.json, foundry-agents.json, or .foundry/agents.json. If none exists, scaffold one.

[
  {
    "useCaseId": "alert-triage",
    "description": "Short description of what this agent does.",
    "baseInstruction": "You are an assistant that... <system prompt for the agent>"
  }
]

Field Reference

Field Required Description
useCaseId Yes Kebab-case identifier; used to build the agent name ({prefix}-{useCaseId})
description Yes Human-readable description stored as agent metadata
baseInstruction Yes System prompt / base instructions for the agent

Sync Script

PowerShell (interactive / CI)

Create or locate the sync script. The canonical path is infra/scripts/sync-foundry-agents.ps1 but adapt to the repo layout.

param(
  [Parameter(Mandatory)]
  [string]$SubscriptionId,

  [Parameter(Mandatory)]
  [string]$ProjectEndpoint,

  [string]$ManifestPath = (Join-Path $PSScriptRoot '..\foundry-agents.json'),
  [string]$ModelName = 'gpt-5-4',
  [string]$AgentNamePrefix = 'myproject',
  [string]$ApiVersion = '2025-11-15-preview'
)

$ErrorActionPreference = 'Stop'

# Optional: append a common instruction suffix to every agent
$commonSuffix = ''

az account set --subscription $SubscriptionId | Out-Null
$accessToken = az account get-access-token --resource https://ai.azure.com/ --query accessToken -o tsv
if (-not $accessToken) { throw 'Failed to acquire Foundry access token.' }

$definitions = Get-Content -Raw -Path $ManifestPath | ConvertFrom-Json
$headers = @{ Authorization = "Bearer $accessToken" }
$results = @()

foreach ($def in $definitions) {
  $agentName = "$AgentNamePrefix-$($def.useCaseId)"
  $instructions = if ($commonSuffix) { "$($def.baseInstruction)`n`n$commonSuffix" } else { $def.baseInstruction }
  $body = @{
    definition  = @{ kind = 'prompt'; model = $ModelName; instructions = $instructions }
    description = $def.description
    metadata    = @{ useCaseId = $def.useCaseId; managedBy = 'foundry-agent-sync' }
  } | ConvertTo-Json -Depth 8

  $uri = "$($ProjectEndpoint.TrimEnd('/'))/agents/$agentName`?api-version=$ApiVersion"
  $resp = Invoke-RestMethod -Method Post -Uri $uri -Headers $headers -ContentType 'application/json' -Body $body
  $version = $resp.version ?? $resp.latest_version ?? $resp.id ?? 'unknown'
  Write-Host "Synced $agentName ($version)"
  $results += [pscustomobject]@{ name = $agentName; version = $version }
}

$results | Format-Table -AutoSize

Bash (Bicep deployment script / CI)

For automated deployment via Microsoft.Resources/deploymentScripts, use a bash script that:

  1. Authenticates with a managed identity: az login --identity --username "$CLIENT_ID"
  2. Acquires a Foundry token: az account get-access-token --resource https://ai.azure.com/
  3. Iterates definitions from the FOUNDRY_AGENT_DEFINITIONS environment variable (JSON string)
  4. POSTs each agent to {endpoint}/agents/{name}?api-version=2025-11-15-preview

Bicep Integration (optional)

To run the sync automatically during infrastructure deployment:

…

자주 묻는 질문

이 도구와 로컬 코드만 만드는 다른 도구의 차이는 무엇인가요?

이 도구는 Azure AI Foundry 서비스 안에 에이전트를 직접 만들고 등록해 바로 사용할 수 있게 합니다. 다른 도구는 로컬에서 코드만 만들고 서비스에 등록하지 않을 수도 있습니다.

'JSON 매니페스트'란 무엇인가요?

하나 이상의 AI 에이전트를 정의하는 데 필요한 정보(설명, 기본 지침 등)를 담은 JSON 형식의 텍스트 파일입니다.

미리 준비해야 할 것이 있나요?

네, 배포된 모델이 있는 Azure AI Foundry 프로젝트, 인증된 Azure CLI, 프로젝트의 'Azure AI User' 역할이 필요합니다.

상세 정보

작성자의 원본 설명

Create and synchronize prompt-based AI agents directly within Azure AI Foundry via REST API, from a local JSON manifest. Unlike scaffolding skills that only generate local code, this skill registers agents in the Foundry service itself — making them immediately available for invocation. Use when the user asks to create agents in Foundry, sync, deploy, register, or push agents to Foundry, update ag

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7207
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬