Client ID
The application (client) ID used to select the managed identity or Entra application during authentication.
Learning status: Not practiced
The moving parts
The client ID identifies the Microsoft Entra application or managed identity that a workload wants to authenticate as. For an app registration, the portal calls this the Application (client) ID. For a user-assigned managed identity, Azure exposes it as clientId.
It is an identifier, not a password or client secret. Knowing a client ID does not let a caller authenticate as that identity.
Where AKS uses it
Set the client ID on the Kubernetes service account:
metadata:
annotations:
azure.workload.identity/client-id: "<CLIENT_ID>"
For pods opted into Workload ID, the webhook injects this value as AZURE_CLIENT_ID. The Azure Identity SDK uses it with the projected token to request an Entra access token. The matching federated identity credential establishes trust.
For a user-assigned managed identity, retrieve both identifiers:
az identity show \
--resource-group <resource-group> \
--name <identity-name> \
--query '{clientId:clientId, principalId:principalId}' \
--output json
Client ID versus principal ID
| Value | Used for |
|---|---|
| Client ID | Selecting the identity in the service-account annotation and AZURE_CLIENT_ID |
| Principal ID | Identifying the tenant-local service principal that receives Azure RBAC permissions |
Do not put the principal ID, tenant ID, or identity's Azure resource ID in the client-ID annotation.
Sources: AKS Workload ID setup, Managed identity object and client IDs.
Connects to