az aks create --resource-group <resourceGroupName> --name <clusterName> --node-count <node-count>  --generate-ssh-keys

At a minimum, node-count should be 3.

Update the local credentials to match the newly created cluster using:

az aks get-credentials --resource-group <resourceGroupName> --name <clusterName>


If kubectl is not installed, it can be easily installed using:

sudo az aks install-cli

To verify that the cluster was created, use:

kubectl get nodes

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment