az commands

4 commands, each with a one-line explanation. Click a command to copy it, or its title for details.

Commands 4 shown

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

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

    ci · secrets · cloud

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

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

    k8s · cloud

  • 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

    secrets · cloud

  • 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

    network · monitoring · cloud