-
We have our dev and prod AKS clusters in different azure tenancies, and I can't figure out a way that works with kubelogin. Before kubelogin I just needed to do a device code login for each cluster. But now only one tenancy works at a time. When I try to use I tried So at the moment I have had to revert back to the built-in behaviour of How are other people handling multiple tenancies? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
@pearj can you share the repro for |
Beta Was this translation helpful? Give feedback.
-
@pearj the conversion is based on what's provided in kubeconfig, and conversion from devicecode to azurecli will lose client-id as azure cli uses its own client id. when azurecli is used, get-token does nothing but invoking azure cli which doesn't support multi tenants. your best bet is do |
Beta Was this translation helpful? Give feedback.
@pearj the conversion is based on what's provided in kubeconfig, and conversion from devicecode to azurecli will lose client-id as azure cli uses its own client id. when azurecli is used, get-token does nothing but invoking azure cli which doesn't support multi tenants. your best bet is do
az login --tenant $tenantID