How to run”kubectl get nodes” to authenticate against Azure Active Directory?

Dear Sir/Madam,

To test the reference implementation of “”aks-fabrikam-dronedelivery”, after AKS cluster deployment I am configuring a GitOps management solution Flux on the cluster.

I did the following steps:

……

“az aks get-credentials -g -n $AKS_CLUSTER_NAME”

and

“”kubectl get nodes”

then got error: failed to authenticate: DeviceCodeCredential: context deadline exceeded

shown as the picture attached .

Please advise me on how to do the authentication against AAD successfully for the cluster management.

Thanks,

Lili

Read more here: Source link