Prerequisites
- A Microsoft Entra ID application registered in your Azure tenant
- Azure OpenAI or Azure AI Foundry resource deployed
- The TrueFoundry AI Gateway running on a Kubernetes cluster with a configured OIDC issuer URL, and the namespace and service account name used by the gateway pod
- The Kubernetes service account used by the gateway must have permission to issue
TokenRequestresources for itself (the TrueFoundry-provided Helm chart configures this RBAC automatically)
Azure Configuration
Get Application Details from Entra ID
Navigate to Azure Portal > Microsoft Entra ID >
App registrations and select your application.From the Overview page, note the following values:
- Application (client) ID
- Directory (tenant) ID
Add a Federated Identity Credential
In your app registration, navigate to Certificates & secrets > Federated credentials >
Add credential.For the Federated credential scenario, select Kubernetes accessing Azure resources, then
fill in:
Azure automatically builds the Subject identifier as
The Cluster issuer URL is your cluster’s OIDC issuer (on Amazon EKS it looks like

| Field | Description |
|---|---|
| Cluster issuer URL | The OIDC issuer URL of the cluster running the gateway |
| Namespace | The Kubernetes namespace of the gateway pod |
| Service account name | The Kubernetes service account name used by the gateway pod |
| Name | A descriptive name for this federated credential |
system:serviceaccount:<namespace>:<service-account-name> and uses the audience
api://AzureADTokenExchange.The namespace and service account name must match the gateway pod’s service account
(the
K8S_SERVICE_ACCOUNT_NAME the gateway is deployed with). If they don’t match, the token
exchange will fail.https://oidc.eks.<region>.amazonaws.com/id/EXAMPLED0123456789ABCDEF0123456789). The
Namespace is where the gateway pod runs (commonly truefoundry) and the Service account name
is the K8S_SERVICE_ACCOUNT_NAME it is deployed with (defaults to default).
Assign RBAC Role to App Registration
Navigate to your Azure resource > Access control (IAM) > Add role assignment.
- Azure OpenAI
- Azure AI Foundry
Assign Cognitive Services OpenAI User role to your app registration.Learn more about Azure OpenAI RBAC

Role assignments may take a few minutes to propagate.
TrueFoundry Configuration
Configure Workload Identity Authentication
- Azure OpenAI
- Azure AI Foundry
Navigate to AI Gateway > Models > Azure OpenAI, then click Add Account and
select Workload Identity Federation. Fill in the following:
No secret or certificate is required. The gateway exchanges its Kubernetes service account
token for an Entra ID access token using the federated identity credential you configured
above.
| Field | Description |
|---|---|
| Tenant ID | Directory (tenant) ID from app registration overview |
| Client ID | Application (client) ID from app registration overview |
Add Models and Test
Add your models as described in the Azure OpenAI or
Azure AI Foundry documentation.Test the connection using the Playground to verify authentication works.