Azure-docs: Creating a Windows AKS cluster w/ an ARM template

Created on 1 Aug 2019  Â·  10Comments  Â·  Source: MicrosoftDocs/azure-docs

I've spent the last couple days trying to get a Windows AKS cluster set up using an ARM template. I've succeeded in creating a cluster with only one Linux node pool. When I include both a Linux and a Windows node pool profile, though, the node pools are created in the portal, the node pool resource group is created, however, the VMSS objects are never created.

My current workaround is to create a single pool cluster, then use az aks nodepool add to add a second pool with the Windows OS type. Thankfully, this seems to work nicely but I'd really rather be able to make a cluster all in one deployment.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 container-servicsvc cxp product-question triaged

Most helpful comment

This is possible today.

All 10 comments

Thanks for the question. We are currently investigating and will update you shortly.

@sauryadas Can you please share your insights on this question. Thanks :)

We do not support creating multiple node pools in one deployment at this point in time, this is coming soon however - @jluk.

Regarding

When I include both a Linux and a Windows node pool profile, though, the node pools are created in the portal, the node pool resource group is created, however, the VMSS objects are never created.

Do you have the default / first node pool successfully created?

Thanks for the update, @MikkelHegn. I'll look forward to this feature in the future. It would make deploying Windows clusters, where two node pools appear to be a requirement, so much simpler.

Do you have the default / first node pool successfully created?

No, I do not. When I include two node pools in my ARM template (i.e. two entries under agentPoolProfiles), neither of the pools' machines are created. The node pools show up in the portal when you browse the details of the cluster, the resource group meant to contain them is created, however availability sets (or VMSS's) are not created in the node resource group. Running kubectl get nodes succeeds but returns zero nodes. The cluster is unusable at that point.

Look forward to be able to deploy multiple node pools with one deployment. Experienced the same issue(Linux and Windows node pools show up but VMSS not created in the node resource group) with Terraform.

@neilhuiz and @bobhlo Thank you for providing valuable feedback.
As shared above, We do not support creating multiple node pools in one deployment at this point in time, but this is coming soon. We will share here once we have an update on this functionality.
We will now close this issue. If there are further questions regarding this matter, please tag me in a comment. I will reopen it and we will gladly continue the discussion.

You closed this without updating as to when this feature was planned. When is this limitation going to be removed

This is possible today.

I am trying to find a working ARM template sample for Windows AKS. @neilhuiz.. would you mind sharing a sample. thanks

This doc might help: https://docs.microsoft.com/en-us/azure/aks/use-multiple-node-pools#manage-node-pools-using-a-resource-manager-template

Was this page helpful?
0 / 5 - 0 ratings

Related issues

behnam89 picture behnam89  Â·  3Comments

AronT-TLV picture AronT-TLV  Â·  3Comments

paulmarshall picture paulmarshall  Â·  3Comments

DeepPuddles picture DeepPuddles  Â·  3Comments

jebeld17 picture jebeld17  Â·  3Comments