Azure / azure-cli

Azure Command-Line Interface
MIT License
3.96k stars 2.94k forks source link

az network application-gateway address-pool update does not return an error when call fails #29393

Open KAHM-sc opened 1 month ago

KAHM-sc commented 1 month ago

Describe the bug

After this change, one issue in the AGW has been solved, but now, if the error described in that issue occurs, rather than retrying, it just marks the task as completed. If a command is interrupted and not executed, we would expect an error message of some sort.

Related command

az network application-gateway address-pool update

Errors

We get no error message - that is the problem.

Issue script & Debug output

Run any 2 az network application-gateway address-pool update calls so close to each other that one interrupts the other.

Expected behavior

I would expect that when a call to update an address pool (or other part of the Azure application gateway) and the update gets interrupted, that I get an error message.

Environment Summary

WARNING: You have 2 update(s) available. Consider updating your CLI installation with 'az upgrade' azure-cli 2.61.0 *

core 2.61.0 * telemetry 1.1.0

Extensions: application-insights 1.2.1 azure-devops 1.0.1

Dependencies: msal 1.28.0 azure-mgmt-resource 23.1.1

Python location '/opt/az/bin/python3' Extensions directory '/opt/az/azcliextensions'

Python (Linux) 3.11.8 (main, May 16 2024, 03:47:28) [GCC 11.4.0]

Additional context

No response

azure-client-tools-bot-prd[bot] commented 1 month ago

Hi @KAHM-sc,

2.61.0 is not the latest Azure CLI(2.62.0).

If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

yonzhan commented 1 month ago

Thank you for opening this issue, we will look into it.

KAHM-sc commented 1 month ago

We have checked the code - there is no update for this in 2.62.0