> ## Documentation Index
> Fetch the complete documentation index at: https://relevanceai.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting up Azure OpenAI

> How to set up Azure OpenAI

## Pre-requiste

You'll need 3 things:

1. The URL of the azure endpoint, for example: [https://my-test-env.openai.azure.com/](https://my-test-env.openai.azure.com/)
2. The API Key
3. The Deployment ID of your model

## Integration Setup

Insert your URL and API key here in the integrations page.

<img src="https://mintcdn.com/relevanceai/c92n16pLC3iTZmPg/images/build-custom-tools/provider-setup/integration_azure.png?fit=max&auto=format&n=c92n16pLC3iTZmPg&q=85&s=8891a069002681253373b06c6451a712" alt="Insert the secret values" width="1014" height="388" data-path="images/build-custom-tools/provider-setup/integration_azure.png" />

## LLM Setup

* Select "Custom Azure Deployment (OpenAI)" for "Your model".
* Go to advanced settings and enter in your Deployment ID to "Azure OpenAI Deployment ID".
  <img src="https://mintcdn.com/relevanceai/c92n16pLC3iTZmPg/images/build-custom-tools/provider-setup/llm_step.png?fit=max&auto=format&n=c92n16pLC3iTZmPg&q=85&s=833881a96ad204a495c2e250f8c0da81" alt="Configure the LLM step" width="1269" height="633" data-path="images/build-custom-tools/provider-setup/llm_step.png" />

## Agent Setup

* Select "Custom Azure Deployment (OpenAI)" for "Language model" in the Agents page.
  <img src="https://mintcdn.com/relevanceai/c92n16pLC3iTZmPg/images/build-custom-tools/provider-setup/agent_azure.png?fit=max&auto=format&n=c92n16pLC3iTZmPg&q=85&s=96b2041ad72a637bbdaae33669180ee8" alt="Configure the LLM step" width="2232" height="1202" data-path="images/build-custom-tools/provider-setup/agent_azure.png" />
