You're hitting a region-specific limitation with the Ubuntu2404
OS SKU in AKS.
Even though you've registered the Ubuntu2404Preview
feature and are using AKS v1.33.0 (which technically supports Ubuntu 24.04), the error you're seeing:
'Ubuntu2404' is not a valid value for '--os-sku'. Allowed values: AzureLinux, Ubuntu, Ubuntu2204.
means that the Ubuntu 24.04 image hasn't been made available in your region (Central India) yet.
This is a known issue feature flag registration enables the capability at a subscription level, but the actual node images are rolled out gradually by Microsoft across different regions. So even if your subscription is configured correctly, the image simply might not be available in Central India yet. You can confirm this by running:
az aks nodepool get-upgrades \
--resource-group <your-rg> \
--cluster-name <your-cluster> \
--name <your-nodepool>
If Ubuntu2404
isn’t listed there, it’s not yet available to use in your region.
To fix:
If az version
shows anything older than 2.62.0
, upgrade using:
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
Remove and reinstall aks-preview
(cleanly)
az extension remove --name aks-preview
az extension add --name aks-preview --upgrade
az extension update --name aks-preview
Confirm CLI version and extension
az version
az extension show --name aks-preview --output table
Test in a supported region like eastus
or westeurope
by deploying a test cluster or node pool using:
az aks create \
--resource-group rg-preview \
--name aks-preview \
--location eastus \
--kubernetes-version 1.33.0 \
--node-os-sku Ubuntu2404 \
--node-count 1
Ref: https://github.com/Azure/AKS/issues/3970#issuecomment-1786974243
Please let me know your thoughts. will glad to help.