All skills
microsoft avatar

/microsoft-foundry

@04110d9
by microsoftmicrosoft/skills3.1k stars
351

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 create, create agent, update agent, add tool to agent, invoke agent, agent.yaml, agent insights, pull agent insights, evaluate agent, batch eval, continuous eval, continuous monitoring, agent CI/CD, optimize prompt, improve prompt, prompt optimizer, optimize agent instructions, Agent Optimizer scaffold, 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

This session only. Nothing lands on disk.

foundry-agentdeployreferencescontainer-deploy.md

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

Container Deploy Precheck

Complete every applicable check before running azd deploy.

1. Select and configure the build path

Follow the existing docker.remoteBuild configuration. If it is not set, default to remote build without asking. Use local build when the user explicitly requires the image to be built locally.

Build path When to use azure.yaml
Remote build Existing configuration selects it, or no build path is configured Under the service's docker block, set remoteBuild: true.
Local build Existing configuration selects it, or the user explicitly requires local build Under the service's docker block, set remoteBuild: false.
Pre-built image The user supplies an existing image Set the service-level image to a fully qualified image reference. Under the service's docker block, set imagePassthrough: true and remoteBuild: false.

2. Validate azure.yaml

  • The intended azure.ai.agent service is clearly identified.
  • codeConfiguration: is absent and language: docker is present.
  • The selected build path matches the docker or image configuration.
  • Container CPU, memory, and declared protocols are supported.
  • azd env get-values shows the intended project, model deployment, and ACR. For an existing ACR, its name, endpoint, and resource ID identify the same registry.

3. Validate the container files and code

For remote and local builds:

  • The Dockerfile uses the correct build context, copies every required file, installs dependencies, and starts the agent server on port 8088.
  • .dockerignore excludes .env, credentials, virtual environments, caches, and other local-only files without excluding required application files.
  • The entry point and dependency files match the application source.

4. Validate the ACR connection

If azd provision created or connected the ACR, continue after provision succeeds. For an existing ACR, verify that the Foundry project has a Container Registry connection targeting it; otherwise, configure and provision the connection before deploy.

Source: SKILL.md on GitHub

2 warnings3d4 checks · Risk SAFE
  • Gen Agent Trust Hub3d

    This skill provides a comprehensive environment for managing the end-to-end lifecycle of AI agents, models, and infrastructure on Microsoft Foundry. It includes sub-skills for deployment, evaluation, fine-tuning, and troubleshooting. The skill utilizes dynamic code execution and shell command wrappers, which are used within the context of local development and cloud orchestration. All external resources and dependencies originate from trusted organizations and well-known services.

  • Socket3d

    2 alerts: gptSecurity, gptAnomaly

  • Snyk3d

    Risk: LOW · No issues

  • Runlayer7mo

    36/36 files flagged

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

Last checked against GitHub 20 hours ago.

Activeupdated last week
metadata
{
  "author": "Microsoft",
  "version": "1.2.26"
}

README badge

README badge for microsoft/skills/microsoft-foundry