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-agentcreatereferencestoolsprompt-agenttool-azure-ai-search.md

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

Azure AI Search Tool

Ground agent responses with data from an Azure AI Search vector index. Requires a project connection and proper RBAC setup.

Prerequisites

  • Azure AI Search index with vector search configured:
    • One or more Edm.String fields (searchable + retrievable)
    • One or more Collection(Edm.Single) vector fields (searchable)
    • At least one retrievable text field with content for citations
    • A retrievable field with source URL for citation links
  • A project connection between your Foundry project and search service
  • azure-ai-projects package (pip install azure-ai-projects --pre)

Required RBAC Roles

For keyless authentication (recommended), assign these roles to the Foundry project's managed identity on the Azure AI Search resource:

Role Scope Purpose
Search Index Data Contributor AI Search resource Read/write index data
Search Service Contributor AI Search resource Manage search service config

If RBAC assignment fails: Ask the user to manually assign roles in Azure portal → AI Search resource → Access control (IAM). They need Owner or User Access Administrator on the search resource.

Connection Setup

A project connection between your Foundry project and the Azure AI Search resource is required. See Project Connections for connection management via Foundry MCP tools.

Query Types

Value Description
SIMPLE Keyword search
VECTOR Vector similarity only
SEMANTIC Semantic ranking
VECTOR_SIMPLE_HYBRID Vector + keyword
VECTOR_SEMANTIC_HYBRID Vector + keyword + semantic (default, recommended)

Tool Parameters

Parameter Required Description
project_connection_id Yes Connection ID (resolve via project_connection_get, typically after discovering the connection with project_connection_list)
index_name Yes Search index name
top_k No Number of results (default: 5)
query_type No Search type (default: vector_semantic_hybrid)
filter No OData filter applied to all queries

Limitations

  • Only one index per tool instance. For multiple indexes, use connected agents each with their own index.
  • Search resource and Foundry agent must be in the same tenant.
  • Private AI Search resources require standard agent deployment with vNET injection.

Troubleshooting

Error Cause Fix
401/403 accessing index Missing RBAC roles Assign Search Index Data Contributor + Search Service Contributor to project managed identity
Index not found Name mismatch Verify AI_SEARCH_INDEX_NAME matches exactly (case-sensitive)
No citations in response Instructions don't request them Add citation instructions to agent prompt
Wrong connection endpoint Connection points to different search resource Re-create connection with correct endpoint

References

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 19 hours ago.

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

README badge

README badge for microsoft/skills/microsoft-foundry