Setup Azure CLI and Install kubectl

ForĀ other OS checkout “Ref” at the end of this blog.

Install Azure CLI on macOS

brew update && brew install azure-cli

Then you need to SignIn using:

az login

Sign in with your account credentials in the browser.

Install kubectl on macOS

brew install kubectl

Connect to cluster using kubectl

az aks get-credentials –resource-group myResourceGroup –name myAKSCluster

Now you can interact with kubernete, e.g:

$ kubectl get nodes

$ kubectl get pods

Ref: