Interview Prep/Azure/AKS and Containers

A Windows .NET Framework app must run on AKS. What changes?

IntermediateScenarioAKS and Containers
Answer

Situation read → Windows node pool alongside Linux system pool.

What I'd do →

  1. Add a Windows pool: az aks nodepool add -g rg --cluster-name aks -n win22 --os-type Windows --os-sku Windows2022
  2. Pool names for Windows max 6 characters
  3. Use nodeSelector: kubernetes.io/os: windows on Windows workloads; ensure Linux workloads select Linux
  4. Build images on mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2022 matching the node OS version
  5. Plan for larger images and slower pulls

Why → Windows containers must match the host OS version and need explicit scheduling.

Interview tip → Mention Azure CNI is required (kubenet doesn't support Windows).

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on AKS and Containers