You do not need to specify the node image, as this is selected automatically and you cannot change it. You create node pools using the az aks nodepool
command, you cannot create them just by creating a scaleset.
Get correct SKU and URN to dynamically create node in node pool AKS
In AKS the Node image version is displayed like AKSUbuntu-1804gen2containerd-2022.06.08, it is inside the field nodeImageVersion in the JSON.
To dynamically create a new node to that pool using a similar image it is necessary to find the proper SKU / URN and pass via azure rest api. For example, I would need something like microsoft-aks:aks:aks-ubuntu-1804-2022-q1:2022.01.01.
How can I get the correct image name from nodeImageVersion?
NOTE:
I can't even find that image when using the azure cli command:
az vm image list --publisher Microsoft --sku aks --output table --all
2 answers
Sort by: Most helpful
-
Sam Cogan 10,347 Reputation points MVP
2022-06-21T16:37:11.347+00:00 -
srbhatta-MSFT 8,551 Reputation points Microsoft Employee
2022-06-22T06:05:47.857+00:00 Hello @Filipe Augusto Lima de Souza ,
Thanks for reaching out to Microsoft QnA.
To add to Sam's above answer, yes by default AKS will use the latest node image present, you cannot explicitly select that. The only scenario where that does happen is when you are using nodepool snapshots. In this case, the new node will be based on whatever image version is referenced by the snapshot.
https://learn.microsoft.com/en-us/azure/aks/node-pool-snapshotHope this helps.