1---2name: azure-ai-foundry-local3description: Azure AI Foundry Local Skill4---5# Azure AI Foundry Local Skill67This skill provides expert guidance for Azure AI Foundry Local. Covers troubleshooting, best practices, decision making, configuration, and integrations & coding patterns. It combines local quick-reference content with remote documentation fetching capabilities.89## How to Use This Skill1011> **IMPORTANT for Agent**: Use the **Category Index** below to locate relevant sections. For categories with line ranges (e.g., `L35-L120`), use `read_file` with the specified lines. For categories with file links (e.g., `[security.md](security.md)`), use `read_file` on the linked reference file1213> **IMPORTANT for Agent**: If `metadata.generated_at` is more than 3 months old, suggest the user pull the latest version from the repository. If `mcp_microsoftdocs` tools are not available, suggest the user install it: [Installation Guide](https://github.com/MicrosoftDocs/mcp/blob/main/README.md)1415This skill requires **network access** to fetch documentation content:16- **Preferred**: Use `mcp_microsoftdocs:microsoft_docs_fetch` with query string `from=learn-agent-skill`. Returns Markdown.17- **Fallback**: Use `fetch_webpage` with query string `from=learn-agent-skill&accept=text/markdown`. Returns Markdown.1819## Category Index2021| Category | Lines | Description |22|----------|-------|-------------|23| Troubleshooting | L33-L37 | Troubleshooting setup and runtime issues when installing and running Azure AI Foundry Local specifically on Windows Server 2025. |24| Best Practices | L38-L42 | Best practices for configuring, securing, and operating Foundry Local, plus troubleshooting setup, connectivity, performance, and common runtime or deployment issues. |25| Decision Making | L43-L47 | Guidance for upgrading code and workflows from the legacy Foundry Local SDK to the current SDK, including API changes, migration steps, and compatibility considerations. |26| Configuration | L48-L56 | Installing and configuring Foundry Local, compiling Hugging Face models with Olive, using the CLI, and referencing SDK APIs and configuration options (including legacy SDK). |27| Integrations & Coding Patterns | L57-L67 | Patterns and code samples for calling Foundry Local via REST/SDKs, OpenAI-compatible clients, LangChain, tool calling, transcription, model catalog, and building chat UIs. |2829### Troubleshooting30| Topic | URL |31|-------|-----|32| Run Foundry Local on Windows Server 2025 | https://learn.microsoft.com/en-us/azure/foundry-local/reference/windows-server-frequently-asked-questions |3334### Best Practices35| Topic | URL |36|-------|-----|37| Apply best practices and troubleshoot Foundry Local | https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-best-practice |3839### Decision Making40| Topic | URL |41|-------|-----|42| Migrate from legacy to current Foundry Local SDK | https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-sdk-migration |4344### Configuration45| Topic | URL |46|-------|-----|47| Install and configure Foundry Local on your device | https://learn.microsoft.com/en-us/azure/foundry-local/get-started |48| Compile Hugging Face models for Foundry Local with Olive | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-compile-hugging-face-models |49| Use Foundry Local CLI commands and options | https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-cli |50| Foundry Local SDK API and configuration reference | https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-sdk-current |51| Legacy Foundry Local SDK API reference | https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-sdk-legacy |5253### Integrations & Coding Patterns54| Topic | URL |55|-------|-----|56| Create a chat UI using Open WebUI and Foundry Local | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-chat-application-with-open-web-ui |57| Integrate Foundry Local with OpenAI-compatible SDKs | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-integrate-with-inference-sdks |58| Transcribe audio using Foundry Local transcription API | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-transcribe-audio |59| Build a LangChain translation app with Foundry Local | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-use-langchain-with-foundry-local |60| Implement native chat completions with Foundry Local SDK | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-use-native-chat-completions |61| Use tool calling with Foundry Local models | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-use-tool-calling-with-foundry-local |62| Integrate with Foundry Local Model Catalog API | https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-catalog-api |63| Invoke Foundry Local via REST API endpoints | https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-rest |