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

# Azure AI Foundry integration

> Connect your Blaxel agents to LLMs deployed in Azure AI Inference, Azure OpenAI Service, and Azure AI Services through the Foundry integration.

The Azure AI Foundry integration allows Blaxel users to **call models deployments from [Azure AI Foundry](https://learn.microsoft.com/en-us/azure/ai-studio/what-is-ai-studio) services** (Azure AI Inference, Azure OpenAI Service, and Azure AI Services) through a Blaxel endpoint that unifies access control, credentials and observability management.

There are 2 types of integrations related to this service:

* **Azure AI Inference**: connect to a model endpoint deployed as an “Azure AI Services” model on Azure. This typically includes OpenAI models.
* **Azure AI Marketplace**: connect to a model deployed from the Azure Marketplace. This typically includes Llama models.

The integration must be set up by an [admin](../Security/Workspace-access-control) in the Integrations section in the [workspace settings](../Security/Workspace-access-control).

## Azure AI Inference

### Set up the integration

In order to use this integration, you must register an Azure AI Inference endpoint and access key into your Blaxel workspace settings.

First, go to the [Azure AI Foundry console](https://ai.azure.com/build/overview), and open your project. Select the “Azure AI Inference” capability, and retrieve both:

* the **API key**
* the **Azure AI model inference endpoint**

<img src="https://mintcdn.com/blaxel/OV8J20a-e6sNRxmO/Integrations/Azure-AI-Foundry/azure1.webp?fit=max&auto=format&n=OV8J20a-e6sNRxmO&q=85&s=959f9946a0448298eea998145f1d7c27" alt="azure1.webp" width="3440" height="1440" data-path="Integrations/Azure-AI-Foundry/azure1.webp" />

On Blaxel, in Workspace Settings > Azure AI Inference integration, create a new connection and paste the endpoint and the Access token there.

<img src="https://mintcdn.com/blaxel/OV8J20a-e6sNRxmO/Integrations/Azure-AI-Foundry/Screenshot_2025-01-31_at_2.29.05_PM.webp?fit=max&auto=format&n=OV8J20a-e6sNRxmO&q=85&s=ec1986a5555e3a3f0869c632c9870d84" alt="Screenshot 2025-01-31 at 2.29.05 PM.webp" width="749" height="633" data-path="Integrations/Azure-AI-Foundry/Screenshot_2025-01-31_at_2.29.05_PM.webp" />

### Connect to a model

Once you’ve set up the integration in the workspace, any workspace member can use it to reference an “Azure AI Services” model as an [external model API](../Models/External-model-apis).

When creating a model API, select “Azure AI Inference”. Then, input the **name** of your model just as it is deployed on Azure.

<img src="https://mintcdn.com/blaxel/OV8J20a-e6sNRxmO/Integrations/Azure-AI-Foundry/azure2.webp?fit=max&auto=format&n=OV8J20a-e6sNRxmO&q=85&s=269fc5dd8becdb4092ddd63906ea653b" alt="azure2.webp" width="3596" height="3022" data-path="Integrations/Azure-AI-Foundry/azure2.webp" />

<img src="https://mintcdn.com/blaxel/OV8J20a-e6sNRxmO/Integrations/Azure-AI-Foundry/azure3.webp?fit=max&auto=format&n=OV8J20a-e6sNRxmO&q=85&s=849022c895a9c4d81c5c2d39dcdc0d4f" alt="azure3.webp" width="810" height="460" data-path="Integrations/Azure-AI-Foundry/azure3.webp" />

After the model API is created, you will receive a dedicated global Blaxel endpoint to call the model. Blaxel will forward inference requests to Azure, using your Azure credentials for authentication and authorization.

<Info>Because your own credentials are used, any inference request on this endpoint will incur potential costs on your Azure account, as if you queried the model directly on Azure.</Info>

## Azure AI Marketplace

### Set up the integration & connect to a model

In order to use this integration, you must register an Azure endpoint and access token into your Blaxel workspace settings.

<Warning>The difference with most other model API integrations is that the integration will be tied to your model.</Warning>

First, go to the [Azure AI Foundry console](https://ai.azure.com/build/overview), and open your project. Go to your models, and open the model you want to connect to. Retrieve:

* the **API key**
* the **Azure AI model inference endpoint**

<img src="https://mintcdn.com/blaxel/OV8J20a-e6sNRxmO/Integrations/Azure-AI-Foundry/azure4.webp?fit=max&auto=format&n=OV8J20a-e6sNRxmO&q=85&s=2f58250c24beff85b2d2ada3e95298f9" alt="azure4.webp" width="3596" height="3022" data-path="Integrations/Azure-AI-Foundry/azure4.webp" />

On Blaxel, in Workspace Settings > Azure Marketplace integration, create a new connection and paste this token into the “Access token” section.

<img src="https://mintcdn.com/blaxel/OV8J20a-e6sNRxmO/Integrations/Azure-AI-Foundry/image.webp?fit=max&auto=format&n=OV8J20a-e6sNRxmO&q=85&s=d1c793fd010e88c6833d4f9e01ae1e36" alt="image.webp" width="761" height="595" data-path="Integrations/Azure-AI-Foundry/image.webp" />

Once you’ve set up the integration in the workspace, any workspace member can use it to connect to the model as an [external model API](../Models/External-model-apis).

When creating a model API, select Azure Marketplace, input the name of the endpoint as you want it on Blaxel, and finish creating the model.

<img src="https://mintcdn.com/blaxel/OV8J20a-e6sNRxmO/Integrations/Azure-AI-Foundry/image1.webp?fit=max&auto=format&n=OV8J20a-e6sNRxmO&q=85&s=fc547478329114aa4c40dd94497989da" alt="image.webp" width="809" height="549" data-path="Integrations/Azure-AI-Foundry/image1.webp" />

After the model API is created, you will receive a dedicated global Blaxel endpoint to call the model. Blaxel will forward inference requests to Azure, using your Azure credentials for authentication and authorization.

<Info>Because your own credentials are used, any inference request on this endpoint will incur potential costs on your Azure account, as if you queried the model directly on Azure.</Info>
