AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

microsoft-foundry

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).

Original source
microsoft
License
MIT
Pinned revision
3f5b461b2314e01c400564051e92469114c5b68f

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

This skill also requires local files or dependencies. Remote reading alone may not be enough.

Ask your assistant

Use Agentic Memory skills to read microsoft--microsoft-foundry at revision 3f5b461b2314e01c400564051e92469114c5b68f, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 151

foundry-agent/create/references/tools/prompt-agent/tool-file-search.md

File Search Tool

Enables agents to search through uploaded files using semantic and keyword search from vector stores. Supports a wide range of file formats including PDF, Markdown, Word, and more.

⚠️ Important: Before creating an agent with file search, you must read the official documentation linked in the References section to understand prerequisites, supported file types, and vector store setup.

Prerequisites

  • A basic or standard agent environment
  • A vector store must be created before the agent — the file_search tool requires vector_store_ids
  • Files must be uploaded to the vector store before the agent can search them

Key Concepts

| Concept | Description | |---------|-------------| | Vector Store | A container that indexes uploaded files for semantic search. Must be created first. | | vector_store_ids | Required parameter on the file_search tool — references the vector store(s) to search. | | File upload | Files are uploaded to the project, then attached to a vector store for indexing. |

Setup Workflow

1. Create a vector store (REST API: POST /vector_stores)
   │
   ▼
2. (Optional) Upload files and attach to vector store
   │
   ▼
3. Create agent with file_search tool referencing the vector_store_ids
   │
   ▼
4. Agent can now search files in the vector store

⚠️ Warning: Creating an agent with file_search without providing vector_store_ids will fail with a 400 BadRequest error: required: Required properties ["vector_store_ids"] are not present.

REST API Notes

When creating vector stores via az rest:

| Parameter | Value | |-----------|-------| | Endpoint | https://<resource>.services.ai.azure.com/api/projects/<project>/vector_stores | | API version | v1 | | Auth resource | https://ai.azure.com |

Troubleshooting

| Error | Cause | Fix | |-------|-------|-----| | vector_store_ids not present | Agent created without vector store | Create a vector store first, then pass its ID | | 401 Unauthorized | Wrong auth resource for REST API | Use --resource "https://ai.azure.com" with az rest | | Bad API version | Using ARM-style API version | Use api-version=v1 for the data-plane vector store API | | No search results | Vector store is empty | Upload files to the vector store before querying |

References