How to define os type during aks create

Nikheel Jain 136 Reputation points
2022-06-21T07:02:33.557+00:00

Currently i am using azure subscriptions that allows only 4 core quota limit. But the commands:
az aks create --resource-group $resourceGroupName --name $AKSClusterName --node-count 1 --enable-addons monitoring --generate-ssh-keys --windows-admin-password $PASSWORD_WIN --windows-admin-username azureuser --vm-set-type VirtualMachineScaleSets --network-plugin azure --service-principal $env:SP_ID --client-secret $env:SP_SECRET

az aks nodepool add --resource-group $resourceGroupName --cluster-name $AKSClusterName --os-type Windows --name scale --node-count 1 --node-vm-size Standard_DS3_v2

when runned together first will create a nodepool with 2 default cores and then add Standard_DS3_v2 in nodepool which has 4 cores , so it fails since total 6 cores will be required.
I don't need linux nodepool of Standard_DS2_v2 which is created during aks create. I tried using :

az aks create --resource-group $resourceGroupName --name $AKSClusterName --node-count 1 --enable-addons monitoring --generate-ssh-keys --windows-admin-password $PASSWORD_WIN --windows-admin-username azureuser --vm-set-type VirtualMachineScaleSets --network-plugin azure --service-principal $SP_ID --client-secret $SP_SECRET --os-type Windows --nodepool-name scale --node-vm-size Standard_DS3_v2
but this create nodepool with linux operating system is there way to define os type in aks-create as windows

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,877 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sam Cogan 10,157 Reputation points MVP
    2022-06-21T16:30:24.72+00:00

    You cannot create an AKS cluster with only windows nodes, the system node pool must be a Linux one and then additional node pools can be windows. You will need to increase your core quota to get this to work by raising a support request.

    0 comments No comments

0 additional answers

Sort by: Most helpful