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
Post your comment on this topic.