Skip to content

Kubelogin error inside a container while trying to use managed identity #524

Description

@RomanChaitanya

I am inside a pod of Cluster A
then I did
az login --identity --username xxxxx-xxx-xxx-xxxxx managed identity
az aks get-credentials --resource-group [Resource group Name] --name [ClusterB] --overwrite-existing
kubelogin convert-kubeconfig -l azurecli

Kubectl get namespaces

Error: failed to get token: expected an empty error but received: AzureCLICredential: ERROR: az: error: unrecognized arguments: --tenant 4b36e3d2-ce8b-409d-a538-f1da61732b5f
usage: az [-h] [--verbose] [--debug] [--output {json,jsonc,table,tsv,yaml}]
[--query JMESPATH]
{account} ...

Can someone please help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions