workload identity
AKS: Login with Azure CLI and Workload Identity
·972 words·5 mins
azure
kubernetes
aks
terraform
azure cli
workload identity
aad
azure active directory
In this post I’ll show you how to setup Workload Identity in an AKS cluster using terraform and then deploy a pod with Azure CLI that you will use to login to Azure.
Long story short: once workload identity is configured and enabled, kubernetes will inject 3 environment variables needed to login with Azure CLI: