I faced below error when I tried to create AKS with Windows OS following steps in here
az aks create \
--resource-group DockerResourceGroup \
--name win-test-aks \
--node-count 2 \
--enable-addons monitoring \
--kubernetes-version 1.14.6 \
--generate-ssh-keys \
--windows-admin-password "P@ssw0rd12345" \
--windows-admin-username testuser \
--enable-vmss \
--network-plugin azure
Error:
Operation failed with status: 'Bad Request'. Details: Virtual Machine Scale Set agent nodes are not allowed since feature "Microsoft.ContainerService/WindowsPreview" is not enabled. Please see https://aka.ms/aks/previews for how to enable features.
I tried to run az feature list -o table
with below features installed already:
Microsoft.ContainerService/MultiAgentpoolPreview Registered
Microsoft.ContainerService/VMSSPreview Registered
Microsoft.ContainerService/WindowsPreview Registered
Microsoft.Web/CentralUSRegionEnabled Registered
Did you refresh your registration of the AKS resource provider?
az provider register -n Microsoft.ContainerService