azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az aks get-credentials --format "exec" default to azurecli?

Open ehrnst opened this issue 1 year ago • 1 comments

Related command az aks get-credentials --format "exec"

Is your feature request related to a problem? Please describe.

After the release of kubelogin and the deprecation of Azure credentials. I assume most people use azurecli token as their default access . Today the --format "exec" defaults to device code. Describe the solution you'd like

Instead of being forced to do a kubeconfig convert, I would like to have azure cli as the default.

Describe alternatives you've considered

either change the --format "exec" to be azure CLI, or allow other formats so we can choose what method we want to use without the convert

ehrnst avatar Jan 20 '23 12:01 ehrnst

route to CXP team

yonzhan avatar Jan 20 '23 14:01 yonzhan

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm.

Issue Details

Related command az aks get-credentials --format "exec"

Is your feature request related to a problem? Please describe.

After the release of kubelogin and the deprecation of Azure credentials. I assume most people use azurecli token as their default access . Today the --format "exec" defaults to device code. Describe the solution you'd like

Instead of being forced to do a kubeconfig convert, I would like to have azure cli as the default.

Describe alternatives you've considered

either change the --format "exec" to be azure CLI, or allow other formats so we can choose what method we want to use without the convert

Author: ehrnst
Assignees: -
Labels:

Service Attention, AKS, customer-reported, needs-team-attention, feature-request, Auto-Assign

Milestone: -

ghost avatar Jan 23 '23 02:01 ghost

@Azure/aks-pm Could you please look into this request and provide some pointers ? Thanks in advance.

navba-MSFT avatar Jan 23 '23 02:01 navba-MSFT

would also prefer to use "azurecli" as default or an option to provide the needed "exec" format

huf1 avatar Feb 20 '23 13:02 huf1

IMO az aks get-credentials should set up the kubeconfig to use the default credentials of the already signed in azure cli. How someone logs into azure cli using az login is up to them. But I doubt anyone wants this set to device code, that should be an override option if needed.

Perhaps this should follow a similar pattern to the DefaultAzureCredential Class?

If the instructions always involve running kubelogin convert-kubeconfig -l azurecli then why not just set it up right in the first place? Adding an additional step is unintuitive.

bizrad avatar Jul 07 '23 13:07 bizrad

Is this still relevant? i'm not sure if we still need to do the convert dance, or not, I just do it (hopefully) out of old habits.

ehrnst avatar May 14 '24 07:05 ehrnst