Which self-hosted options replace Azure OpenAI when data cannot leave your environment
When a regulation, customer contract, residency rule or cost concern rules out sending data to Azure OpenAI, the closest self-hosted routes from the researched facts are Foundry Local on Azure Local for on-premises inference, and open-weight models such as OpenAI's gpt-oss served through vLLM or Ollama. Foundry Local on Azure Local runs inference on an Arc-enabled Kubernetes cluster in your own facility, deployed as an Azure Arc extension, with OpenAI-compatible REST APIs and support for disconnected environments. The main trade-off is that Microsoft's overview of Foundry Local on Azure Local does not list Azure OpenAI GPT models among its catalog models, so you give up those models and take on the operation of the hardware, cluster, model updates and access controls yourself.
This section is written for the head of IT, the platform engineering lead, the security architect and the compliance lead who must decide whether a self-hosted route can replace an Azure OpenAI deployment for a specific workload. Start by listing which models your applications call today and whether each one is available on the on-premises catalog. Foundry Local on Azure Local serves catalog models and bring-your-own models on CPU or GPU through an ONNX-GenAI engine, or on GPU through a vLLM engine. Confirm the current model list with Microsoft before you commit, because the catalog is the input that decides whether your application needs a model change.
For open-weight routes, the gpt-oss repository states that gpt-oss-120b (117B parameters) fits a single 80GB GPU and that gpt-oss-20b (21B parameters) runs within 16GB of memory. Both models are licensed Apache-2.0, and vLLM, also Apache-2.0, can serve them behind an OpenAI-compatible API so applications written for Azure OpenAI can switch endpoints. Ollama, licensed MIT, runs the same gpt-oss models locally. Confirm the license terms of any model you adopt, the hardware your throughput needs, and who in your organization owns patching, logging and incident response for the serving layer before you treat any of these as a replacement.
Which alternative fits which environment
A small team that wants a private assistant for drafting, summarizing or internal Q&A can often start with a single machine rather than a platform. Ollama is the lightest route: it runs gpt-oss-20b and gpt-oss-120b locally with the ollama run command, and the gpt-oss repository states that gpt-oss-20b runs within 16GB of memory, so a workstation or one server may be enough for a pilot. The model weights are Apache-2.0 licensed and the Ollama project is MIT licensed, which keeps licensing review simple.
- Scope of the pilot: Confirm which staff, which data classes and which workstation or server are in scope before any patient or EU personal data goes in.
- Access control: A single-user tool does not give you SSO, audit logs or role separation. Decide whether that gap is acceptable for the data involved.
- Model size: gpt-oss-120b fits a single 80GB GPU according to the gpt-oss repository. Check your hardware against that figure, not against the smaller model.
- Exit path: Keep the API shape in mind so a later move to a platform does not require rewriting the tool.
Before approving, confirm with your security team where the local model files, prompts and outputs are written on disk and who can read them.
A regulated or large organization usually needs central identity, logging, patching and a documented data flow. Foundry Local on Azure Local fits this profile because it runs AI inference on an Arc-enabled Kubernetes cluster on premises, is deployed as an Azure Arc extension, and exposes OpenAI-compatible REST APIs. Microsoft's overview lists catalog models and bring-your-own models on an ONNX-GenAI engine (CPU or GPU) or a vLLM engine (GPU), and it does not list Azure OpenAI GPT models among them, so the model choice is a separate decision from the platform choice.
- Platform dependencies: Confirm that Azure Local, Azure Arc and the Kubernetes cluster are already approved in your environment and under your control baseline.
- Model inventory: Ask Microsoft which models are supported on which engine for your hardware, in writing.
- Audit evidence: Require that inference logs, access logs and model version records are retained in a system your audit team reviews.
- Vendor scope: Confirm which Microsoft agreements and support terms apply to the on-premises components, separately from the Azure OpenAI terms.
- Operations: Plan for patching, capacity and model updates as recurring work.
Before approving, ask Microsoft and your own architects to confirm the exact list of supported models and the support boundary for each component.
Many internal applications already call the Azure OpenAI API. The lowest-change route is to keep the request format and point the application at a different endpoint. vLLM can serve gpt-oss and other open-weight models behind an OpenAI-compatible API, and Foundry Local on Azure Local also offers OpenAI-compatible REST APIs. The result is that the application code can often stay the same while the inference location moves into your own network. Confirm the behavior, not only the shape, because model output, tool calling and token limits can differ.
- vLLM: Licensed Apache-2.0, it serves open-weight models through an OpenAI-compatible endpoint that applications can target by changing the base address.
- Foundry Local: Offers OpenAI-compatible REST APIs when the platform is deployed on premises through Azure Local.
- Regression testing: Run your existing test prompts against the new endpoint and compare outputs for the cases that matter to you.
- Feature gaps: Check which Azure OpenAI features your application uses, such as specific response formats or tool calls, and confirm the replacement supports them.
- Configuration: Keep endpoint and model names in configuration, not code, so rollback stays simple.
Before switching, confirm with your application owners which Azure OpenAI features they rely on and test each one on the candidate endpoint.
Networks with no internet path need every component to run locally, including models, runtimes and updates. Foundry Local on Azure Local is documented with support for disconnected environments, which is the most direct Microsoft option for this case. Open-source options such as vLLM and Ollama run without a hosted service, but the organization must bring the model weights, container images and packages in through its own approved transfer process.
- Disconnected support: Confirm in writing which Foundry Local functions still work without connectivity, including model updates and licensing checks.
- Media transfer: Plan how model weights, container images and security patches enter the enclave and are scanned before use.
- Model provenance: Record the source, license and checksum of each model file, including the gpt-oss weights and their Apache-2.0 license.
- Hardware: Size GPUs against the gpt-oss figures in the repository, and test with your actual workload.
- Updates: Define who approves a model change and how a rollback is performed offline.
Before approving, have your security team test the disconnected setup end to end, including a patch and a model swap, and record the results.
What Foundry Local on Azure Local runs and what it does not
Foundry Local on Azure Local runs AI inference on your own premises, not in Microsoft's Azure regions. It is deployed as an Azure Arc extension on an Arc-enabled Kubernetes cluster that you operate, and it exposes OpenAI-compatible REST APIs. Microsoft's documentation also describes support for disconnected environments, which matters for a security reviewer because prompts can stay on your network instead of crossing to a cloud endpoint. Confirm with your Microsoft account team which Azure Arc, Azure Local and Kubernetes versions are supported, and whether the Arc connection is required for licensing, updates or telemetry in your disconnected design, since that determines what leaves your site.
The serving layer is the part to evaluate closely. According to Microsoft's overview, Foundry Local on Azure Local serves catalog models and bring-your-own models through an ONNX-GenAI engine on CPU or GPU, or through a vLLM engine on GPU. Ask which engine each model in your shortlist uses, what hardware it needs, and who is responsible for patching the model images and the runtime. Your team should also check how bring-your-own model weights are verified and where they are stored before they are loaded into the cluster.
The overview does not list Azure OpenAI GPT models among the models this offering serves. If your use case depends on a GPT model, this offering does not replace the Azure OpenAI deployment, and the data processing terms covered elsewhere on this page still apply to that deployment. Confirm current model availability in writing with Microsoft before you approve a design, because the catalog changes and a model listed today may not be listed when you procure. Treat any model you cannot confirm as unavailable for on-premises use.
License terms for the open-source servers and models
This table compares the license, the workload each component runs and the hardware facts the sources state for gpt-oss, vLLM and Ollama. Read the licenses as the starting point only: the right-hand column lists what your team must still verify before approving a deployment. The main takeaway is that permissive licenses and stated memory figures do not replace a review of your own security, support and data handling controls.
| Component | License | What it runs | Stated hardware fact | What the organization must still check |
|---|---|---|---|---|
| gpt-oss (gpt-oss-120b) | Apache-2.0 | Open-weight reasoning model with 117B parameters | Fits a single 80GB GPU, per the gpt-oss repository | Confirm the license terms of the weights you download match the repository, and test output quality on your own workloads |
| gpt-oss (gpt-oss-20b) | Apache-2.0 | Smaller open-weight model with 21B parameters | Runs within 16GB of memory, per the gpt-oss repository | Validate accuracy for clinical or customer tasks, since a smaller model may behave differently from Azure OpenAI GPT models |
| vLLM | Apache-2.0 | Inference server that can serve gpt-oss and other open-weight models behind an OpenAI-compatible API | GPU serving; sizing depends on the model chosen | Confirm authentication, network exposure and logging are configured by your team, since the server does not provide them by default for your environment |
| Ollama | MIT | Local runtime for gpt-oss-20b and gpt-oss-120b, started with the ollama run command | Runs the gpt-oss models locally; check the model page for memory needs | Review how model files are sourced, pinned and scanned, and whether the runtime is restricted to approved hosts |
| Foundry Local on Azure Local (for comparison) | Microsoft product terms | Catalog and bring-your-own models on an Arc-enabled Kubernetes cluster, with OpenAI-compatible REST APIs | Engines are ONNX-GenAI on CPU or GPU, or vLLM on GPU; Azure OpenAI GPT models are not listed | Confirm the licensing and support terms with Microsoft and whether your chosen models are in the catalog |
What is free and what your team must still run
Open-weight models and the open-source servers that run them usually carry no license fee, so the cost of a private deployment sits in hardware, operations and security work. Each card below separates what the software costs from what your team must staff, patch and monitor after go-live.
Model weights and server licenses
The gpt-oss models are licensed Apache-2.0, and vLLM and Ollama are licensed Apache-2.0 and MIT respectively. Using them carries no license fee from these sources, but you must still read each license and any model card terms before use. Confirm that the license of every model you pull, including quantized or community variants, matches what your legal team has approved.
gpt-oss repositoryGPU hardware and capacity
The gpt-oss-120b model (117B parameters) fits a single 80GB GPU, and gpt-oss-20b (21B parameters) runs within 16GB of memory. Hardware is a recurring or capital cost you own, and it scales with concurrent users, context length and throughput targets. Ask any partner to size the GPU tier against your real workload and to state whether the quote includes spares, power and cooling.
Arc and Kubernetes operation
Foundry Local on Azure Local runs inference on an Arc-enabled Kubernetes cluster deployed as an Azure Arc extension. Your team owns the cluster, node lifecycle, Arc connectivity and the Azure subscription that governs it, even when models run disconnected. Confirm which of these skills you already have in-house and which you must buy.
Foundry Local overviewUpgrades and security patching
Model runtimes, the inference engine, the Kubernetes layer and the operating system each receive updates, and each update can change behavior or open a vulnerability. Your team must test upgrades, schedule patch windows and keep a rollback path. Ask for a written patch cadence and a named owner for each layer before you approve production use.
Monitoring, logging and on-call
Self-hosting moves audit logging, prompt and response retention, access reviews and alerting from the vendor to you. Set retention periods for inference logs yourself, and confirm that logs containing patient or personal data are protected and deleted on schedule. Staff an on-call rota that covers outages and security alerts, because no vendor will page you for an internal model failure.
What to ask in a quote
A quote should list each cost component separately: hardware purchase or lease, data center or cloud hosting, Arc and Kubernetes setup, integration with SSO and logging, security testing, documentation for your auditors, and ongoing support. Mark which items are one-time and which recur. Ask for the written scope, deliverables and acceptance criteria before work starts, and confirm how changes to scope are priced.
What you give up compared with calling Azure OpenAI
Moving inference onto your own infrastructure changes what you are buying. The first trade-off is the model catalog: Microsoft's overview of Foundry Local on Azure Local serves catalog models and bring-your-own models on an ONNX-GenAI engine (CPU or GPU) or a vLLM engine (GPU), and it does not list the Azure OpenAI GPT models among them. If your application depends on a specific GPT model version, confirm with Microsoft whether that model is available for on-premises use before you design around it. Open-weight options such as gpt-oss are a different model family, so prompts, evaluations and output behavior will need to be retested.
The second trade-off is contractual and certification scope. The Microsoft Products and Services Data Protection Addendum governs Azure OpenAI processing, but it will not attach to a stack you run yourself. The same applies to Azure's FedRAMP and DoD authorizations and to the ISO/IEC 42001:2023 certification Microsoft announced for Azure AI Foundry Models. Those authorizations cover Microsoft's audited scope, not your cluster, your GPUs, your logging or your staff. Your compliance team must produce its own evidence for access control, logging, data handling and change management, and the auditor or certification body you use will assess that evidence on its own terms.
The third trade-off is operational ownership. Abuse controls, input filtering, content safety settings, model updates, patching of the serving software, GPU capacity planning and incident response all move to your team. Before approving the move, name an owner for each item, decide who signs off on a model version change, and ask any implementation partner for a written scope that covers these responsibilities. Costs are paid mainly for hardware or cloud capacity, staff time and support contracts, and most of them recur. The quote should separate the one-time build from the ongoing run cost.
Questions reviewers ask before approving a self-hosted replacement
Does gpt-oss match Azure OpenAI model quality for our workloads?
No published comparison in our sources settles this for your tasks, so you must test it yourself. OpenAI's gpt-oss models are open-weight and licensed Apache-2.0, and the gpt-oss repository lists gpt-oss-120b (117B parameters) as fitting a single 80GB GPU and gpt-oss-20b (21B parameters) as running within 16GB of memory. Those figures describe hardware fit, not output quality. Build an evaluation set from your own prompts, including redacted patient or customer records, score the outputs against your acceptance criteria, and compare the results with the Azure OpenAI deployment you use today. Repeat the test whenever you change model size, quantization or serving engine, because each change can move quality and latency in different directions.
Do our applications need code changes to switch from Azure OpenAI?
Often very little, because vLLM exposes an OpenAI-compatible API that lets applications written for Azure OpenAI switch endpoints. The vLLM repository, licensed Apache-2.0, can serve gpt-oss and other open-weight models behind that interface. Check the details that usually break in practice: the model name string sent in requests, authentication headers, API versions, and any use of Azure-specific features such as content filters, deployment-based routing or Azure identity. Test streaming, function calling and structured output separately, since compatibility of those features varies by server and model. Treat the endpoint switch as a configuration change that still needs regression testing.
Is Foundry Local on Azure Local required for a private deployment?
No. Foundry Local on Azure Local is one option, not a requirement. It runs AI inference on an Arc-enabled Kubernetes cluster on premises, deployed as an Azure Arc extension, with OpenAI-compatible REST APIs and support for disconnected environments. Microsoft's overview says it serves catalog models and bring-your-own models through an ONNX-GenAI engine on CPU or GPU, or a vLLM engine on GPU, and does not list Azure OpenAI GPT models among them. If your organization already runs Azure Local and Arc, it may reduce the integration work. If not, a plain vLLM or Ollama deployment on your own servers avoids the Arc dependency. Confirm the supported model list and hardware requirements with Microsoft before you commit.
What license obligations apply to Apache-2.0 and MIT components?
Apache-2.0 and MIT are permissive licenses that allow commercial internal use, but they still impose conditions. The gpt-oss models are licensed Apache-2.0, vLLM is Apache-2.0, and Ollama is MIT. Your legal team should confirm that each component's license notice and copyright attribution are preserved in the distributed or deployed software, and that any model cards or usage policies attached to specific model weights are reviewed separately, because model terms can differ from the code license. Keep a software bill of materials that records each model, server and library with its version and license. Also confirm that no patent or trademark terms in the license text conflict with your intended use.
How much staff effort does a self-hosted model require?
The main effort comes from people who run the stack, not from the software licenses, which are free to use. Cost components include GPU hardware or cloud GPU capacity, data center or network work, installation and configuration, identity and access integration, audit logging, patching, model and server upgrades, backups, and on-call support. Those costs recur, while setup is largely one-time. Costs rise with the model size you need, the number of concurrent users, the availability target you set, and how many environments you maintain. Ask any vendor or partner for a written scope that lists each of these items, who performs them, and which ones your own platform or security team must staff.
Should we hire outside help for a private AI deployment?
Hire outside help when your team lacks GPU operations, model serving or security testing experience, or when the review deadline is fixed and internal capacity is limited. DeployOpen plans, implements, hardens, backs up, upgrades and documents self-hosted open-source platforms inside the client's own infrastructure, and runs security testing that includes AI systems. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. DeployOpen prepares systems and evidence for compliance assessments but does not issue audit reports or certifications, so independent auditors still review the controls. Ask any partner to show how the evaluation, access control, audit logging and data handling will be documented for your compliance team, and whether ongoing support is offered as a retainer.
Does a self-hosted model change our compliance position?
Running a model in your own infrastructure moves the processing inside your control boundary, but it does not make the deployment compliant by itself. Your compliance program still has to document the data flows, access controls, logging, retention settings, vulnerability management and incident procedures for the new system. The Azure OpenAI terms cover prompts and completions only for the Microsoft service, so a self-hosted stack needs its own assessment against the frameworks that apply to your data, such as HIPAA or GDPR. Ask your compliance lead to map each control that Azure OpenAI supplied through Microsoft's documentation to a control your team owns after the change.
What to collect before approving a self-hosted route
This sequence turns the idea of running a model yourself into a reviewable decision, with licenses, hardware, platform support, data handling, application compatibility and a fallback path each documented before any approval is granted.
Confirm the license text for each component
The security or legal lead reads the license for every component in the stack: the model weights, the serving engine and any runtime or platform extension. The gpt-oss models are licensed Apache-2.0, vLLM is Apache-2.0 and Ollama is MIT, but a model may carry different terms from the software that serves it, and a bring-your-own model may carry its own license. Record each license name, version and source URL in the approval file, and confirm with counsel that the intended internal use and any customer-facing use are permitted. The step is done when every component has a written license entry that a reviewer can trace to the upstream repository.
Pick the model and check hardware fit
The platform team selects the model family that matches the workload and then compares its memory needs with the hardware the organization can actually provide. The gpt-oss repository states that gpt-oss-120b (117B parameters) fits a single 80GB GPU and that gpt-oss-20b (21B parameters) runs within 16GB of memory. Test these figures on your own hardware with representative prompts, since context length, batch size and concurrency change the memory footprint. The output is a one-page sizing note showing model, hardware, measured throughput and the workloads the setup is approved to handle.
Confirm Foundry Local support and Arc prerequisites with Microsoft
If the route uses Foundry Local on Azure Local, the cloud architect confirms with Microsoft the current support status, the required Azure Arc-enabled Kubernetes cluster setup and the extension deployment steps for your subscription and region. Microsoft's overview lists serving options (ONNX-GenAI on CPU or GPU, or vLLM on GPU) and says GPT models from Azure OpenAI are not among the catalog models, so confirm which model you will actually run. Ask for the written support position and any preview limits. The step closes when the vendor answer, the prerequisite list and the named model are filed together.
Define data handling and logging in your environment
The security and privacy teams decide, in writing, what enters prompts, what the serving layer logs, where logs are stored, who can read them, and how long they are kept. A self-hosted route moves processing into your infrastructure, but request logs, prompt caches, crash dumps and monitoring tools can still retain personal data, so each of those paths needs an owner and a retention rule. Confirm that audit logging, access control and SSO are in place for the endpoint. The output is a data flow diagram and a logging standard that the privacy office signs before any patient or EU personal data is sent.
Test OpenAI-compatible endpoints against your applications
The engineering team points a staging copy of one application at the self-hosted endpoint and runs its normal test cases. vLLM and Foundry Local both expose OpenAI-compatible APIs, but compatibility covers the request shapes they implement, so check streaming, function calling, embeddings, token limits and error codes against the calls your application makes. Record each difference and whether the application needs a code change. The step is done when the test report shows which features pass, which fail and what the fallback behavior is for each failure.
Write an exit path back to a hosted service
The platform owner documents how the organization would move back to a hosted service, or to a different self-hosted model, if the local route fails, falls behind on security patches or cannot meet capacity. The plan lists the endpoint configuration to change, the data that must be purged or migrated, the contract notice needed for the hosted service and the owner of each action. Record the approved hosted fallback and its data terms, so the exit path itself passes the same review as the original route. The output is a signed runbook that the risk owner accepts before go-live.
What catches buyers out with self-hosted AI
Running a model yourself removes the vendor's data handling terms but adds obligations that a hosted service carried for you. The four cards below cover the places where teams most often misjudge the effort, the license or the coverage before they commit to an on-premises or private alternative to Azure OpenAI.
Model licenses differ from server licenses
The serving software and the model weights carry separate licenses. vLLM and Ollama are Apache-2.0 and MIT, and OpenAI's gpt-oss models are Apache-2.0, but a third-party model you pull into the same server may carry its own terms with use restrictions or attribution duties. Before approval, record the license of each model artifact your team deploys, not only the server, and confirm that commercial use and internal redistribution are permitted for your use case. Re-check when you change model versions, because licenses can change between releases.
gpt-oss repositoryFoundry Local is not Azure OpenAI
Foundry Local on Azure Local serves catalog models and bring-your-own models through an ONNX-GenAI engine on CPU or GPU, or a vLLM engine on GPU. Microsoft's overview does not list Azure OpenAI GPT models among them. An application built against Azure OpenAI therefore cannot assume the same model names, behaviors or features on premises. Map each model your applications call to a supported catalog or open-weight equivalent, then retest outputs, tool calling and structured responses before you switch endpoints.
Foundry Local overviewServing software and models go stale
A self-hosted stack is only as current as its last update. Inference servers, container images, GPU drivers and the open-weight models themselves receive fixes and replacements on their own schedules, and none of them patch themselves inside your network. Assign an owner for each component, subscribe to upstream security advisories, and set a rule for when a model is retired. Ask the vendor or project which versions receive security fixes and for how long, since Microsoft's managed service carries that job for Azure OpenAI.
Upgrades and security testing need staff
Moving from a managed endpoint to your own servers shifts patching, capacity planning, access control, logging and incident response to your team. Teams often budget for the initial installation and not the recurring work. Estimate the staff hours for monthly upgrades, model evaluations, vulnerability scans and a periodic penetration test of the inference API and its access paths, and treat that as a standing cost. Ask any implementation partner for a written scope that lists these tasks, their owners and their frequency before you compare quotes.
How the self-hosted path fits together
The diagram starts with an internal application that sends requests to an OpenAI-compatible endpoint inside your network. That endpoint is either Foundry Local on an Arc-enabled Kubernetes cluster, or vLLM or Ollama running on your own servers, and each serves open-weight models such as gpt-oss. Logging and access control sit in your network around the endpoint. Check that no request leaves your boundary, that your SSO and audit logging apply to the serving layer, and that Foundry Local is serving the models you intend to approve, since Microsoft's overview does not list Azure OpenAI GPT models among its catalog.
Requests stay inside your network and reach open-weight models through one compatible endpoint.
How DeployOpen helps you run a private AI alternative
DeployOpen plans, implements and supports self-hosted open-source AI platforms inside your own cloud accounts, data centers or air-gapped networks, so your compliance and security teams can review the setup directly. We start from the data you need to keep off Azure OpenAI and the workloads that must stay on premises, then agree the scope in writing before any work begins.
How we scope
- We confirm which workloads, data classes and users would move off Azure OpenAI and which must stay.
- We map candidate runtimes, such as Foundry Local on Azure Local, vLLM or Ollama, against your hardware and connectivity constraints.
- We agree deliverables, timelines and acceptance criteria in writing, as engagements are fixed-scope.
How we build
- We deploy the chosen model server inside your infrastructure with SSO, access control and audit logging.
- We configure OpenAI-compatible endpoints so existing applications can point to the self-hosted service with minimal code change.
- We test prompt injection, data exposure, credential handling and admin settings before any user access is granted.
How we hand over
- We document architecture, data flows, retention settings and the logs your reviewers need for an assessment.
- We deliver a findings report with fixes and a retest, so open items are closed and recorded.
- We train your administrators to operate, patch and monitor the platform after handover.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- We prepare control evidence for your compliance team, though independent auditors issue any audit report or certification.
- We help you review model license terms and plan updates when open-weight models or servers change.

