Index of every page on this site: llms.txt
All skills
microsoft avatar

/microsoft-foundry

@0d60658
by microsoftmicrosoft/skills3.2k stars
373
Run it yourself

Build, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end. USE FOR: foundry, azd ai agent, azd provision/deploy, hosted agent scaffold/develop/run/deploy/troubleshoot, prompt agent, managed harness agent, Copilot harness, voice agent, create/update/invoke/evaluate agent, add tool to agent, agent insights, batch/continuous eval, continuous monitoring, agent CI/CD, optimize/improve prompt, optimize agent instructions, Agent Optimizer, dataset curation from traces, deploy model, model fine-tuning (SFT/DPO/RFT), Foundry project, RBAC, role assignment, permissions, quota, capacity, region, deployment failure, AI Services, create Foundry resource, knowledge index, customize deployment, onboard, availability, training-data, grader, distillation, large file upload. DO NOT USE FOR: Azure Functions, App Service, general Azure deploy (use azure-deploy), general Azure prep (use azure-prepare).

Use this Skill: https://skilld.dev/gh/microsoft/skills/microsoft-foundry

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

foundry-agentcreatereferencesvoice-agentprompt-voice-yaml.md

≈989 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Prompt Voice YAML

Author a single managed Voice Agent after applying common invariants.

Managed Real-Time Model

modelType: managed uses the service-hosted model and does not require a project deployment:

services:
  support-voice:
    host: azure.ai.agent
    uses: [ai-project]
    kind: voice
    name: support-voice
    modelType: managed
    model:
      id: gpt-realtime
    instructions: Respond naturally and concisely.

Self-Deployed Model Deployment

For an azd-managed project, services.<ai-project-service>.deployments[] is the source of truth and azd provision creates or updates the model infrastructure. Prompt Voice references the exact deployment name through modelType: self_deployed and model.id.

Foundry infers native speech-to-speech versus cascaded STT -> LLM -> TTS from model.id; apply the same flow to realtime and text-model BYOM.

First inspect the resolved subscription, resource group, and Foundry account for the exact requested deployment name:

az cognitiveservices account deployment list --resource-group "<resource-group>" --name "<foundry-account>" --query "[?name=='<deployment-name>'].{name:name,model:properties.model.name,version:properties.model.version,format:properties.model.format,sku:sku.name,capacity:sku.capacity}" --output json

Verify that the returned model is compatible with the requested Voice architecture. If it exists, preserve services.<ai-project-service>.deployments[], do not add a duplicate, and reference the exact name:

services:
  advisor-voice:
    host: azure.ai.agent
    uses: [ai-project]
    kind: voice
    name: advisor-voice
    modelType: self_deployed
    model:
      id: <existing-deployment-name>
    instructions: Respond naturally and concisely.

If the deployment is missing and the user intends creation:

  1. Read Foundry Model Reference and resolve the exact model version, format, supported SKU/capacity, lifecycle, and available quota. Never guess these values.
  2. State the billable/quota-consuming deployment plan and obtain confirmation unless creation was explicit.
  3. Preserve existing deployment entries and unrelated infrastructure, then append the resolved deployment to the existing ai-project service. Set model.id to the exact deployments[].name.
services:
  ai-project:
    host: azure.ai.project
    deployments:
      - name: <exact-deployment-name>
        model:
          format: <catalog-format>
          name: <catalog-model-name>
          version: "<catalog-model-version>"
        sku:
          name: <supported-sku>
          capacity: <confirmed-capacity>

  advisor-voice:
    host: azure.ai.agent
    uses: [ai-project]
    kind: voice
    name: advisor-voice
    modelType: self_deployed
    model:
      id: <exact-deployment-name>
    instructions: Respond naturally and concisely.

Illustrative only: A verified realtime deployment used gpt-realtime version 2025-08-28, GlobalStandard, capacity 1. Re-query the catalog, lifecycle, regional support, and quota before authoring; these values are not universal defaults.

For an existing azd project, edit deployments[] in place; do not rerun azd ai agent init. Do not use az cognitiveservices account deployment create, because it creates infrastructure outside the azd lifecycle. Run azd provision --preview --no-prompt, review that only intended model infrastructure changes, then run azd provision --no-prompt and deploy the Voice service.

Optional Configuration

When requested settings require YAML edits, load Voice Agent YAML settings. Preserve unrelated existing fields and edit only requested paths.

Common defaults include PCM at 24 kHz, Azure Speech transcription, server VAD, and audio output. Omit voice unless requested or required by an existing definition so azd applies its default.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

3 warningstoday4 checks · Risk SAFE
  • Gen Agent Trust Hubtoday

    This skill provides a comprehensive suite of tools for managing AI agents and models on Microsoft Foundry. It includes security considerations such as the dynamic execution of user-provided Python scripts for model evaluation and the processing of production traces for dataset creation. These features are aligned with the skill's primary purpose and include appropriate user warnings and human-in-the-loop review steps to mitigate risk. See the detailed analysis for additional context.

  • Sockettoday

    2 alerts: gptSecurity, gptAnomaly

  • Snyktoday

    Risk: MEDIUM · 2 issues

  • Runlayer9mo

    36/36 files flagged

Signed by skilld at 0d60658. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 5 days ago
metadata
{
  "author": "Microsoft",
  "version": "1.2.36"
}

README badge

README badge for microsoft/skills/microsoft-foundry