Skip to content

Azure

Terminal window
# Login
az login
# Show your current/default subscription
az account show
# List of subscriptions available to you
az account list --output table
## Select subscription
az account set --subscription <name or id>
## Set default location
az configure --defaults location=swedencentral
## Set default output as table
az config set core.output=table
# Kubeconfig
az aks get-credentials --name <name> --resource-group <resourceId>
kubelogin convert-kubeconfig -l azurecli
# Install kubectl & kubelogin if needed
az aks install-cli