Skip to main content

Azure OpenAI Integration

1 min read Updated May 29, 2026
Share:
On this page (13sections)

Introduction

Spring AI supports Azure OpenAI, letting enterprises use OpenAI models hosted within their Azure environment. You configure the Azure endpoint, deployment name, and key, then call models through the familiar ChatClient. This combines OpenAI capabilities with Azure’s security, compliance, and networking.

Definition

Azure OpenAI integration provides access to OpenAI models through Azure’s managed service.

Types

Azure OpenAI Chat

Using GPT models through Azure

Azure OpenAI Embeddings

Creating embeddings via Azure

Azure OpenAI Completions

Text completion through Azure

Azure OpenAI Images

Image generation via Azure

Use Cases

  • Enterprise AI applications
  • Azure-based AI solutions
  • Compliance and security requirements
  • Managed AI services
  • Integration with Azure ecosystem

Implementation

Azure OpenAI integration uses Azure’s authentication and configuration patterns.

In Practice

Azure OpenAI integration uses your Azure resource endpoint and deployment names rather than the public OpenAI API, which keeps traffic within your Azure tenant. This appeals to organizations with data residency and compliance requirements, while the Spring AI API stays the same.

Key Points

  • Enterprise-grade security
  • Azure integration benefits
  • Managed service advantages
  • Compliance features

References

Frequently Asked Questions

What is Azure OpenAI in Spring AI?
It lets you call OpenAI models hosted in your Azure environment through Spring AI's ChatClient.
How is it configured?
With your Azure endpoint, deployment name, and key, instead of the public OpenAI API.
Why use Azure OpenAI over public OpenAI?
For Azure's security, compliance, data residency, and networking controls.

Related Tutorials

Search tutorials