Looks like there is an open issue regarding this situation.
The problem is while creating the cluster for the first time, you didn't provide any --windows-admin-password
and --windows-admin-username
. Therefore, when you try to create a new windows node pool that will create VM's, The VM's don't have any Windows authentication profile
.
If you look at the cluster resource az aks show
and don't see the Window profile, then you would have to create a new cluster, for example using AZ CLI:
az aks create -g MyResourceGroup -n MyManagedCluster --load-balancer-sku Standard --network-plugin azure --windows-admin-username azure --windows-admin-password 'replacePassword1234$'
If you created your cluster using terraform, you can add this section:
# Create AKS Cluster
resource "azurerm_kubernetes_cluster" "akscluster" {
# Code goes here..
windows_profile {
admin_username = "azure"
admin_password = "azure"
}
}
Pay attention to this thread as well.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…