azure-cli
azure-cli copied to clipboard
Command 'az aks nodepool show' does not show podSubnetID
Description
When running the command az aks nodepool show it does not return the podSubnetID information, and looking at the AKS REST API it should be available.
To Reproduce
Must create a node pool with the --vnet-subnet-id and --pod-subnet-id parameters.
Example:
az aks nodepool add \
--cluster-name dev-cluster-1 \
--resource-group my-rg \
--kubernetes-version 1.23.5 \
--mode System \
--name tmp \
--node-count 1 \
--min-count 1 \
--max-count 2 \
--max-pods 64 \
--max-surge 1 \
--node-osdisk-size 100 \
--node-vm-size Standard_DS3_v2 \
--vnet-subnet-id /subscriptions/<REDACTED>/resourceGroups/my-rg/providers/Microsoft.Network/virtualNetworks/my-vnet/subnets/dev-cluster-1-nodes-snet \
--pod-subnet-id /subscriptions/<REDACTED>/resourceGroups/my-rg/providers/Microsoft.Network/virtualNetworks/my-vnet/subnets/dev-cluster-1-pods-snet \
--node-osdisk-type Managed \
--labels foo=bar \
--tags environment=dev \
--enable-cluster-autoscaler \
--no-wait
Get node pool details and check the podSubnetID is missing.
az aks nodepool show --cluster-name dev-cluster-1 --name tmp --resource-group my-rg | jq
WARNING: The behavior of this command has been altered by the following extension: aks-preview
{
"availabilityZones": null,
"capacityReservationGroupId": null,
"count": 1,
"creationData": null,
"currentOrchestratorVersion": null,
"enableAutoScaling": true,
"enableCustomCaTrust": false,
"enableEncryptionAtHost": false,
"enableFips": false,
"enableNodePublicIp": false,
"enableUltraSsd": false,
"gpuInstanceProfile": null,
"hostGroupId": null,
"id": "/subscriptions/<REDACTED>/resourcegroups/my-rg/providers/Microsoft.ContainerService/managedClusters/dev-cluster-1/agentPools/tmp",
"kubeletConfig": null,
"kubeletDiskType": "OS",
"linuxOsConfig": null,
"maxCount": 2,
"maxPods": 64,
"messageOfTheDay": null,
"minCount": 1,
"mode": "System",
"name": "tmp",
"nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.07.18",
"nodeLabels": {
"foo": "bar"
},
"nodePublicIpPrefixId": null,
"nodeTaints": null,
"orchestratorVersion": "1.23.5",
"osDiskSizeGb": 100,
"osDiskType": "Managed",
"osSku": "Ubuntu",
"osType": "Linux",
"podSubnetId": null,
"powerState": {
"code": "Running"
},
"provisioningState": "Succeeded",
"proximityPlacementGroupId": null,
"resourceGroup": "my-rg",
"scaleDownMode": "Delete",
"scaleSetEvictionPolicy": null,
"scaleSetPriority": null,
"spotMaxPrice": null,
"tags": {
"environment": "dev"
},
"type": "Microsoft.ContainerService/managedClusters/agentPools",
"typePropertiesType": "VirtualMachineScaleSets",
"upgradeSettings": {
"maxSurge": "1"
},
"vmSize": "Standard_DS3_v2",
"vnetSubnetId": "/subscriptions/<REDACTED>/resourceGroups/my-rg/providers/Microsoft.Network/virtualNetworks/my-vnet/subnets/dev-cluster-1-nodes-snet",
"workloadRuntime": "OCIContainer"
}
Environment
$ az upgrade
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
You already have the latest azure-cli version: 2.39.0
Upgrading extensions
Checking update for aks-preview
Latest version of 'aks-preview' is already installed.
$ az version
{
"azure-cli": "2.39.0",
"azure-cli-core": "2.39.0",
"azure-cli-telemetry": "1.0.6",
"extensions": {
"aks-preview": "0.5.93"
}
}
route to CXP team