-
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
Exception raised when executing any Azure CLI command after upgrading to version 2.57. #28312
Comments
Thank you for opening this issue, we will look into it. |
Please run I'll look into this issue ASAP! Thanks for reporting! |
Hi @ptsapralis, This is a exception trace of suppressed exception. Your CLI command won't be affected and will successfully return as expected. This is a small issue on collecting telemetry and we will fix in next version |
Hi Yishi - thank you very much for these replies. The “az config” work-around works fine. Fixing this in the next versio of Azure CLI toolbox seems reasonable enough.
Thanks again & kind regards,
—
Panos Tsapralis
Principal Engineer
Buyagift & Red Letter Days
Mobile: 07507477883
Email: ***@***.***
10 Back Hill, London, EC1R 5EN
 
Buyagift & Red Letter Days are trading names of Experience More Ltd.Registered in England and Wales.
Company No: 03883868 Registered Address:10 Back Hill, London, EC1R 5EN
This message and any attachments are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, you must not copy this message or attachment or disclose the contents to any other person.
… On 7 Feb 2024, at 02:50, Yishi Wang ***@***.***> wrote:
Hi @ptsapralis <https://github.com/ptsapralis>, This is a exception traceback of suppressed exception. Your CLI command won't be affected and will successfully return as expected.
This is a small issue on collecting telemetry and we will fix in next version
—
Reply to this email directly, view it on GitHub <#28312 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADLRXZKGBLR7JLS37PW7DWLYSLTV7AVCNFSM6AAAAABC4ZDHOKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZRGE3TIMJZHA>.
You are receiving this because you were mentioned.
|
Describe the bug
After upgrading to Azure CLI, version 2.57, when executing any command, I receive the following error message:
Suppress exception:
Traceback (most recent call last):
File "/opt/az/lib/python3.11/site-packages/azure/cli/main.py", line 62, in
raise ex
File "/opt/az/lib/python3.11/site-packages/azure/cli/main.py", line 55, in
sys.exit(exit_code)
SystemExit: 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/decorators.py", line 79, in _wrapped_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/telemetry.py", line 532, in _get_secrets_warning_config
show_secrets_warning = _get_config().getboolean('clients', 'show_secrets_warning', fallback=None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/knack/config.py", line 147, in getboolean
raise ValueError('Not a boolean: {}'.format(val))
ValueError: Not a boolean: None
Commands seem to execute successfully (I could list/deallocate/start virtual machines, manage virtual networks, etc.). The issue occurs on different platforms: I tested on Ubuntu Linux server ver.22.04, Mac OS Sonoma (on Apple Silicon), WSL on Windows Server 2022 Enterprise Azure Edition, command window on Windows Server 2022 Enterprise Azure Edition).
Related command
Examples:
az vm list --subscription SUB-DEVANDTEST --verbose -o table
az network vnet subnet list --subscription SUB-DEVANDTEST --verbose -o table -g RG_BAGVIRTUALNETWORKS --vnet-name BAGVIRTUALNETWORK
The issue appears with almost every Azure CLI command.
Errors
Suppress exception:
Traceback (most recent call last):
File "/opt/az/lib/python3.11/site-packages/azure/cli/main.py", line 62, in
raise ex
File "/opt/az/lib/python3.11/site-packages/azure/cli/main.py", line 55, in
sys.exit(exit_code)
SystemExit: 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/decorators.py", line 79, in _wrapped_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/telemetry.py", line 532, in _get_secrets_warning_config
show_secrets_warning = _get_config().getboolean('clients', 'show_secrets_warning', fallback=None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/knack/config.py", line 147, in getboolean
raise ValueError('Not a boolean: {}'.format(val))
ValueError: Not a boolean: None
Issue script & Debug output
Output with --debug option is much too long to enter in here - can be shared in a separate e-mail message if required.
Expected behavior
Expecting Azure CLI statements to execute successfully without raising an exception.
Environment Summary
{
"azure-cli": "2.57.0",
"azure-cli-core": "2.57.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {}
}
Additional context
No response
The text was updated successfully, but these errors were encountered: