AKS kubeconfig credentials

Merge AKS context into kubeconfig; --admin bypasses Azure AD RBAC if enabled

az aks get-credentials -g <name> -n <cluster> --overwrite-existing

tool
az4 commands
tags
azk8scloud

More az commands

  • az keyvault secret show --vault-name <name> --name <name> --query value -o tsv

    Extract raw secret with no quotes via --query/-o tsv; safe to pipe into env

  • az vm list -d -o table --query "[].{name:name,ip:publicIps,state:powerState}"

    -d enriches with runtime IP/power state; plain list omits these fields

  • az login --service-principal -u <id> -p "$AZ_SECRET" --tenant <id>

    Non-interactive auth for CI; modern: use --federated-token for OIDC, no secret

all 4 az commands