Azure / azure-cli

Azure Command-Line Interface
MIT License
4.03k stars 3.01k forks source link

az aks nodepool add does not work #18093

Open the1bit opened 3 years ago

the1bit commented 3 years ago

Resource Provider AKS

Description of Feature or Work Requested

I would like add a spot node pool to an Azure Kubernetes Service (AKS) cluster according to the following documentation: https://docs.microsoft.com/en-us/azure/aks/spot-node-pool

When I want to execute the related command it doesn't accept the name parameter.

az aks nodepool add --resource-group <rgname> --cluster-name <aks cluster name> --name spotpool01 --priority Spot --eviction-policy Delete --spot-max-price -1 -enable-cluster-autoscaler --min-count 1 --max
-count 3 --no-wait

Error message:

--nodepool-name can contain at most 12 characters
az aks nodepool add --resource-group <rgname> --cluster-name <aks cluster name> --nodepool-name spotpool1 --priority Spot --eviction-policy Delete --spot-max-price -1 -enable-cluster-autoscaler --min-count 1 --max
-count 3 --no-wait

Error message:

unrecognized arguments: --nodepool-name spotpool01

Azure-Cli version

azure-cli                         2.23.0

core                              2.23.0
telemetry                          1.0.6

Python location '/opt/az/bin/python3'
Extensions directory '/home/the1bit/.azure/cliextensions'

Python (Linux) 3.6.10 (default, Apr 29 2021, 12:10:03)
[GCC 7.5.0]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Please provide me the right command.

Thanks in advance,.

ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm.

Issue Details
**Resource Provider** AKS **Description of Feature or Work Requested** I would like add a spot node pool to an Azure Kubernetes Service (AKS) cluster according to the following documentation: https://docs.microsoft.com/en-us/azure/aks/spot-node-pool When I want to execute the related command it doesn't accept the name parameter. - **Scenario 1** --name: ``` az aks nodepool add --resource-group --cluster-name --name spotpool01 --priority Spot --eviction-policy Delete --spot-max-price -1 -enable-cluster-autoscaler --min-count 1 --max -count 3 --no-wait ``` Error message: ``` --nodepool-name can contain at most 12 characters ``` - **Scenario 2** --nodepool-name : ``` az aks nodepool add --resource-group --cluster-name --nodepool-name spotpool1 --priority Spot --eviction-policy Delete --spot-max-price -1 -enable-cluster-autoscaler --min-count 1 --max -count 3 --no-wait ``` Error message: ``` unrecognized arguments: --nodepool-name spotpool01 ``` **Azure-Cli version** ``` azure-cli 2.23.0 core 2.23.0 telemetry 1.0.6 Python location '/opt/az/bin/python3' Extensions directory '/home/the1bit/.azure/cliextensions' Python (Linux) 3.6.10 (default, Apr 29 2021, 12:10:03) [GCC 7.5.0] Legal docs and information: aka.ms/AzureCliLegal Your CLI is up-to-date. ``` Please provide me the right command. Thanks in advance,.
Author: the1bit
Assignees: -
Labels: `AKS`, `Service Attention`, `needs-triage`, `question`
Milestone: -
yungezz commented 3 years ago

route to appropriate team