AKS example

Create an AKS cluster using New-AzAksCluster. The following example creates a cluster named myAKSCluster in the resource group named myResourceGroup.

New-AzAksCluster -ResourceGroupName myResourceGroup -Name myAKSCluster -NodeCount 2 -GenerateSshKey -AcrNameToAttach <acrName>
Install-AzAksKubectl
Import-AzAksCredential -ResourceGroupName myResourceGroup -Name myAKSCluster
kubectl get nodes

Example repo on GitHub: https://github.com/Azure/azure-docs-powershell-samples

Last updated