AI Proxy Advanced

AI License Required

Authenticate to Azure OpenAI Service with an Azure Managed Identityv3.8+

Configure a chat route using Azure OpenAI Service with the GPT-4o model, and authenticate using an Azure Managed Identity.

To connect to Azure AI, you’ll need three values from your Azure OpenAI resource:

  1. Deployment ID — The unique name of your deployed model.
    • In the Azure AI Foundry Portal sidebar, select a resource and go to: Shared Resources > Deployments > Model deployments and click the deployment name.
    • You can also see the deployment ID in the Azure OpenAI URL when calling the API, for example: https://{AZURE_INSTANCE_NAME}.openai.azure.com/openai/deployments/{AZURE_DEPLOYMENT_ID}/...
  2. Instance name — The name of your Azure OpenAI resource.
    • This is the prefix in your API endpoint URL, for example: https://{AZURE_INSTANCE_NAME}.openai.azure.com
  3. API Key — The key used to authenticate requests to your Azure OpenAI deployment in Azure AI Foundry.
    • In the Azure AI Foundry Portal sidebar, select a resource and go to: Shared Resources > Deployments > Model deployments, then click the deployment name.
    • The API key is visible in the Endpoint tile.

Environment variables

  • AZURE_INSTANCE_NAME: The name of the Azure OpenAI instance.

  • AZURE_DEPLOYMENT_ID: The ID of the Azure OpenAI deployment.

  • AZURE_OPENAI_API_KEY: The API key to use to connect to Azure OpenAI.

Set up the plugin

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!