- Replicated: configure the gateway in the Admin Console.
- Helm: configure the gateway through your installation values.
Choose the Provider Route
Azure AI Foundry includes Azure OpenAI and other model deployments. Use the route that matches your deployment’s inference API, rather than choosing by the portal name alone.
An installation can expose both routes as separate model aliases in the same
bundled gateway. Each route can use its own endpoint and Secret.
Configure the Gateway
- Replicated
- Helm
Confirm Azure OpenAI support for your installed Replicated release before using
these settings. The API-version rendering issue tracked in
OpenHands-Cloud #1337
remains unresolved. The Helm configuration below sets the API version directly.
- Open the Admin Console LLM configuration.
-
Select
Azurefor Azure OpenAI. -
Under
Azure Authentication Method, selectAPI Keyand enter your resource key inAzure OpenAI API Key. To use a service principal, selectMicrosoft Entra ID — Service Principaland complete the authentication fields shown by the Admin Console. -
In
Azure OpenAI Endpoint, enter your resource endpoint, such ashttps://<resource-name>.openai.azure.com/. -
In
Azure OpenAI API Version, enter a version that supports your model and selected API mode. For the Responses example in this guide, enter2025-04-01-previewinstead of the displayed2024-10-21default. -
In
Azure OpenAI Deployments, enter one deployment name per line. Use the deployment names from your Azure resource, without anazure/prefix. For example:All deployments must be reachable at the endpoint and API version above. Deployment names can differ from the underlying model names. - Save the configuration and deploy the updated version.
Select the Model in OpenHands
For a Replicated installation, select the Azure model configured in the Admin Console. For a Helm installation, save a separate LLM profile for each gateway alias you want to use. For the GPT-4.1-mini Helm routes above, use these settings:
The Foundry example uses Chat Completions, while the Azure OpenAI example uses
Responses. Choose the API mode supported by your configured inference route.
Use your installation’s internal LiteLLM Service DNS name. The profile base URL
points to the bundled gateway; the Azure resource endpoint belongs in Helm
litellm_params.api_base.
Start Using the Model
- Select the profile you configured and start a conversation. Ask the agent to run
pwd, write a file containing a literal test string, and read it back. - Confirm the sandbox starts, tool actions succeed, and the agent completes.
- If you use automations, follow
Enable Automations with Helm. Select
the saved profile name, such as
Azure-GPT-4.1-miniorFoundry-GPT-4.1-mini, dispatch one test run, and verify its status reachesCOMPLETEDand its output is correct. Disable any test schedule afterward.
Troubleshooting
Azure 404
Azure 404
Check the resource endpoint, deployment name and API version. Chat Completions support does not establish Responses support; use a version that supports your selected API mode.
Managed gateway-token authentication error
Managed gateway-token authentication error
Set the profile base URL to the internal LiteLLM Service URL shown above if your release does not supply it automatically.
Azure credential or permission error
Azure credential or permission error
Check the resource key and Secret injection. For Entra authentication, grant the required inference permissions; subscription Contributor access alone does not grant model inference access.
Azure 429, repeated retries, or a conversation that keeps waiting
Azure 429, repeated retries, or a conversation that keeps waiting
Check deployment token quota, request limits and available capacity. Agent prompts and tool definitions can require more capacity than short direct completions.
Unsupported model parameters
Unsupported model parameters
Check provider support;
drop_params: true can omit unsupported optional parameters, but does not add tool support to a modelA different Foundry model fails
A different Foundry model fails
Check its endpoint path, supported API and LiteLLM provider configuration. Some model families require a different route, such as an Anthropic endpoint for Claude.
Sandbox cannot start
Sandbox cannot start
Check Kubernetes events and runtime registration. Inspect the configured sandbox runtime and node placement through your installation values.

