Introduction
In today’s AI-driven world, many organizations and IT professionals are looking for local, offline, secure AI deployments rather than relying solely on the cloud. With Microsoft’s Azure AI Foundry Local, you can now run models on-premises or on-device, keeping your data private, performance high, and latency low.

This post walks you through how to install and run Azure AI Foundry Local on Windows Server 2025 either on physical hardware or in a Hyper-V VM and how to deploy local AI models without internet connectivity. You’ll learn the prerequisites, setup steps, configuration, and practical tips from real-world experience.
Do I need a big machine well that depends, but running this locally you can see how much power is needed to have these quick responses, In my test vm, I run quickly out off resources. Or just use a VM in Azure with a GPU if you want to see how it works on a VM.
Why Go Local with Foundry Local
Running Azure Foundry locally brings clear benefits:
- Data privacy and compliance: All inference happens locally no data leaves your network.
- Low latency and high performance: Local inference avoids network delays and dependency on external APIs.
- Reduced cloud costs: Use your own hardware and skip per-call inference costs.
- Offline operation: Ideal for edge, disconnected, or highly secure environments.
- Flexibility and control: Choose your own hardware, caching strategy, and integration flow.
Prerequisites: Hardware, Software & Environment
Software / OS
- Windows Server 2025 (fully updated)
- Administrator rights for installation
- Optional GPU/NPU drivers for acceleration (NVIDIA, AMD, Intel)
Hardware Requirements
- Minimum: 8 GB RAM
- Vram available
- For GPU/NPU acceleration: compatible hardware and updated drivers Use the powershell to see the available vram.
Get-WmiObject Win32_VideoController | Select-Object Name, @{Name=”VRAM (GB)”;Expression={[math]::Round($_.AdapterRAM / 1GB, 2)}}

Networking / Offline Considerations
- You’ll need internet temporarily to download installers and model packages.
- For fully disconnected environments, pre-download and transfer these files before setup.
Hyper-V / Virtualization Scenario
- Ensure the VM runs Windows Server 2025
- Allocate enough RAM, vCPUs, and storage
- Enable GPU passthrough or partitioning if needed
- Configure networking even if isolated, to allow API access
Where to get Windows Server Insiders Preview
If you’re a registered Insider, you can access the Windows Insider Preview Downloads page directly to view available Window Server Preview builds. If you’d like to participate as an Insider, you can refer to the Getting started with the Windows Insider Program for Windows Server.
Step-by-Step: Installing Foundry Local on Windows Server 2025
1. Prepare the Server or VM
Disconnect from the internet if your setup must remain offline. Install Windows Server 2025 and apply all updates. Verify that your GPU/NPU hardware and drivers are recognized. If using Hyper-V, configure the VM with 16 GB+ RAM, multiple vCPUs, and sufficient storage.
Running it in a VM make sure nested virtualisation is enabled
Set-VMProcessor -VMName “yourVM” -ExposeVirtualizationExtensions $true

2. Download and Install Foundry Local
Install via PowerShell using the package manager:
winget install Microsoft.FoundryLocal
If offline, download the installer from another system and transfer it to the server.
After installation, verify the service:
foundry service status
This shows the endpoint and port for your local Foundry service.

Web Interface via Open WebUI
Would you like a graphical interface? Combine Foundry Local with Open WebUI:
- Download the installer
GetOpenWebUIInstaller.exefrom GitHub. - Install Miniconda
Open PowerShell and run: winget install -e –id Anaconda.Miniconda3 –scope machine - Add Miniconda to your PATH
Ensure the Miniconda installation directory is added to your system’s PATH environment variable. - Run the installer
Execute the installer from PowerShell: C:TempOpenWebUIInstaller.exe - Configure Open WebUI
In the settings of Open WebUI, configure it to connect to Foundry Local.
3. Download and Cache Models
Use the CLI to download models:
foundry model download phi-4
Manage cached models with:
foundry cache list foundry cache remove <model-name> foundry cache cd <path>
If fully offline, copy the model packages into the cache directory before use.
4. Run the Model and Test Locally
If you don’t know a model use foundry model ls
Start a model session:
foundry model ls foundry model run <model-name> foundry model run phi-3.5-mini
Or test via REST API:
http://localhost:<port>/v1/chat/completions

Try a simple prompt like “Hello Foundry” to confirm everything works.


5. Integrate with Your Applications
Integrate using standard OpenAI-compatible SDKs or REST calls.
Example in .NET:
var client = new OpenAIClient(new Uri("http://localhost:8080/v1"));
var response = await client.GetChatCompletionsAsync(model: "phi-4",
messages: new[] { new ChatMessage("user", "Hello Foundry!") });
6. Configure Offline Mode & Maintenance
- Disable automatic updates if operating fully offline.
- Cache all required models before disconnecting.
- Regularly monitor CPU, GPU, RAM, and disk usage.
- Plan model updates via removable storage or controlled connectivity.
7. Optimize Performance
- Use quantized models (INT8, FP16) for faster inference.
- On GPUs, ensure the correct execution provider (ONNX runtime) is used.
- On Hyper-V, enable hardware acceleration and adjust vCPU/vRAM as needed.
Deployment Scenarios: Hardware vs Hyper-V
Bare-Metal Hardware
- Maximum performance and direct GPU/NPU access
- Best for production and high-load environments
- Requires dedicated maintenance
Hyper-V Virtual Machine
- More flexible — snapshot, clone, or scale easily
- Ideal for development, testing, or shared infrastructure
- Slightly lower performance due to virtualization overhead
Common Pitfalls & Troubleshooting
- Service not starting: Run
foundry service restartand verify your ports. - Driver issues: Reinstall or update GPU/NPU drivers.
- Cache full: Use
foundry cache removeto free up space. - Slow performance: Switch to quantized models or upgrade hardware.
- Offline model missing: Always pre-cache before going offline.
- Integration errors: Verify endpoint (
http://localhost:<port>/v1) and model name.
Summary & Next Steps
Running Azure AI Foundry Local on Windows Server 2025 unlocks a powerful, secure, and fully offline AI environment. Whether on bare-metal or Hyper-V, it gives you total control over your AI workloads with privacy, low latency, and reduced costs.
Foundry Local documentation
Safely design, customize, and manage AI applications and agents on-device.
Linkedin Profile Http://nl.linkedin.com/in/robertsmit
Author: Robert Smit [MVP]
Robert is also capable of transferring his knowledge to others which is a rare feature in the field of IT. He makes a point of not only solving issues but also of giving on the job training of his colleagues.
A customer says ” Robert has been a big influence on our technical staff and I have to come to know him as a brilliant specialist concerning Microsoft Products. He was Capable with his in-depth knowledge of Microsoft products to troubleshoot problems and develop our infrastructure to a higher level. I would certainly hire him again in the future. ”
Details of the Recommendation: “I have been coordinating with Robert implementing a very complex system. Although he was primarily a Microsoft infrastructure specialist; he was able to understand and debug .Net based complext Windows applications and websites. His input to improve performance of applications proved very helpful for the success of our project
View all posts by Robert Smit [MVP]
