az aks get-credentials
Get access credentials for a managed Kubernetes cluster. Azure CLI reference
6 options Its page in the Azure CLI reference
Options
--admin, -aGet cluster administrator credentials.--contextIf specified, overwrite the default context name.--file, -fKubernetes configuration file to update.--formatSpecify the format of the returned credential.--overwrite-existingOverwrite any existing cluster entry with the same name.--public-fqdnGet private cluster credential with server address to be public fqdn.