-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"az aks update" ignores --load-balancer-outbound-ports 0 #27071
Comments
Hi @MaxHorstmann, 2.47.0 is not the latest Azure CLI(2.51.0). Please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli. |
Thank you for opening this issue, we will look into it. |
Thank you for your feedback. This has been routed to the support team for assistance. |
Re-confirmed issue after upgrade |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm. Issue DetailsDescribe the bugaz aks update ignores the We can clearly see in debug that the PUT request to Related commandaz aks update ErrorsNo error, the 0 parameter is silently ignored Issue script & Debug outputLet's set load-balancer-outbound-ports to a non-zero value (8000) first:
^^ This is correct. Now let's try setting load-balancer-outbound-ports to 0:
^^ We can see that the PUT request sent the current value (8000) instead of the desired new value (0). Expected behaviorThe PUT request should send Environment Summaryazure-cli 2.50.0 * core 2.50.0 * Extensions: Dependencies: Python location '/opt/homebrew/Cellar/azure-cli/2.50.0_1/libexec/bin/python' Python (Darwin) 3.10.12 (main, Jul 28 2023, 18:34:01) [Clang 14.0.3 (clang-1403.0.22.14.1)] Additional contextIcM 411113950
|
Non customer reported issue. Adding Service team to look into this. |
ack, taking a look |
Hi Fuming Zhang From my test az aks show --resource-group newResourceGroup --name testenew123 | grep allocatedOutboundPorts az aks update -g newResourceGroup -n testenew123 --load-balancer-outbound-ports 0 --debug but after this last command I can see that 2048 remains, when running show command Can you help please? |
@rabpoi, could you please uninstall aks-preview and try again? Also can you share which version aks-preview are you using ( @MartinForReal, the previous fix #27050 was applied in azure-cli 2.52.0, but aks-preview relies on 2.49.0, so maybe there is still this problem in aks-preview? |
@FumingZhang my aks-preview version is 1.0.0b2 az version |
@FumingZhang |
Describe the bug
az aks update ignores the
--load-balancer-outbound-ports
(load balancer outbound allocated ports) parameter if the intended new value is0
(which is valid).We can clearly see in debug that the PUT request to
Microsoft.ContainerService/managedClusters
sends the currently configured value instead of the desired value of 0.Related command
az aks update
Errors
No error, the 0 parameter is silently ignored
Issue script & Debug output
Let's set load-balancer-outbound-ports to a non-zero value (8000) first:
^^ This is correct.
Now let's try setting load-balancer-outbound-ports to 0:
^^ We can see that the PUT request sent the current value (8000) instead of the desired new value (0).
Expected behavior
The PUT request should send
{..."allocatedOutboundPorts": 0}...
Environment Summary
azure-cli 2.50.0 *
core 2.50.0 *
telemetry 1.0.8 *
Extensions:
containerapp 0.3.28
Dependencies:
msal 1.22.0
azure-mgmt-resource 23.1.0b2
Python location '/opt/homebrew/Cellar/azure-cli/2.50.0_1/libexec/bin/python'
Extensions directory '/Users/maxhorstmann/.azure/cliextensions'
Python (Darwin) 3.10.12 (main, Jul 28 2023, 18:34:01) [Clang 14.0.3 (clang-1403.0.22.14.1)]
Additional context
IcM 411113950
The text was updated successfully, but these errors were encountered: