Azure (Microsoft) logo

Skill

kickstart-workload-identity

setup AKS Workload Identity

Covers Azure Deployment RBAC Entra ID

Description

Workload Identity is mandatory for AKS Automatic. Covers managed identity setup, federated credentials, service account annotation, and Entra ID RBAC integration.

SKILL.md

AKS Identity

Azure Workload Identity

AKS Automatic uses Azure Workload Identity for pod-level Azure access. AADPODIDENTITY is deprecated — do not use it.

Setup

  1. Create a user-assigned managed identity.
  2. Create a federated credential linking the identity to the Kubernetes service account.
  3. Annotate the service account.
apiVersion: v1
kind: ServiceAccount
metadata:
  name: my-app-sa
  namespace: default
  annotations:
    azure.workload.identity/client-id: "<managed-identity-client-id>"
  1. Label the pod:
metadata:
  labels:
    azure.workload.identity/use: "true"
spec:
  serviceAccountName: my-app-sa

The Azure SDK picks up the token automatically via the OIDC projected volume.

Kubernetes RBAC

AKS Automatic integrates with Microsoft Entra ID for Kubernetes RBAC. Use group-based role bindings:

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: aks-admins
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
  - kind: Group
    apiGroup: rbac.authorization.k8s.io
    name: "<entra-group-object-id>"

Managed identity for the cluster

AKS Automatic uses a system-assigned managed identity for the control plane. Do not modify its role assignments.

Secret store

Use Azure Key Vault Provider for Secrets Store CSI Driver (pre-installed) to mount secrets from Azure Key Vault as Kubernetes volumes. Never store Azure credentials in Kubernetes secrets.

More from Azure (Microsoft)

View publisher

© 2026 YourAI.tools. Every skill from an identity-verified publisher.

Independent catalog. Not affiliated with, endorsed by, or sponsored by Anthropic or any listed publisher. All trademarks belong to their respective owners.