azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Warning not understood when trying to update extension; needs to be reworded to make more clear

Open pschow-qtm opened this issue 9 months ago • 3 comments

Describe the bug

Tried this command but got a warning message that is unclear, cannot comprehend what it is trying to say. az extension update -n quantum

(see message below, first sentence "Default enabled including ..." is confusing. What does it mean?

Related command

az extension update -n quantum

Errors

image

Issue script & Debug output

PS C:\Users\Peter.Schow> az extension update -n quantum --debug cli.knack.cli: Command arguments: ['extension', 'update', '-n', 'quantum', '--debug'] cli.knack.cli: init debug log: Enable color in terminal. Enable VT mode. cli.knack.cli: Event: Cli.PreExecute [] cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x033AD938>, <function OutputProducer.on_global_arguments at 0x036D7A28>, <function CLIQuery.on_global_arguments at 0x036F77F8>] cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate [] cli.azure.cli.core: Modules found from index for 'extension': ['azure.cli.command_modules.extension'] cli.azure.cli.core: Loading command modules: cli.azure.cli.core: Name Load Time Groups Commands cli.azure.cli.core: extension 0.004 1 7 cli.azure.cli.core: Total (1) 0.004 1 7 cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next'] cli.azure.cli.core: Loading extensions: cli.azure.cli.core: Name Load Time Groups Commands Directory cli.azure.cli.core: Total (0) 0.000 0 0 cli.azure.cli.core: Loaded 1 groups, 7 commands. cli.azure.cli.core: Found a match in the command table. cli.azure.cli.core: Raw command : extension update cli.azure.cli.core: Command table: extension update cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x046546B8>] cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x0467EED8>] cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad [] cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x04692A28>, <function register_cache_arguments..add_cache_arguments at 0x04692A78>] cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded [] cli.knack.cli: Event: CommandInvoker.OnPreParseArgs [] cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x036D7A78>, <function CLIQuery.handle_query_parameter at 0x036F7848>, <function register_ids_argument..parse_ids_arguments at 0x04692938>] cli.azure.cli.core.extension.operations: Default enabled including preview versions for extension installation now. Disabled in May 2024. Use '--allow-preview true' to enable it specifically if needed. Use '--allow-preview false' to install stable version only. urllib3.connectionpool: Starting new HTTPS connection (1): aka.ms:443 urllib3.connectionpool: https://aka.ms:443 "GET /azure-cli-extension-index-v1 HTTP/1.1" 301 0 urllib3.connectionpool: Starting new HTTPS connection (1): azcliextensionsync.blob.core.windows.net:443 urllib3.connectionpool: https://azcliextensionsync.blob.core.windows.net:443 "GET /index1/index.json HTTP/1.1" 200 3998638 cli.azure.cli.core.extension._resolve: Candidates ['quantum-0.1.0-py3-none-any.whl', 'quantum-0.2.0-py3-none-any.whl', 'quantum-0.3.0-py3-none-any.whl', 'quantum-0.4.0-py3-none-any.whl', 'quantum-0.5.0-py3-none-any.whl', 'quantum-0.6.0-py3-none-any.whl', 'quantum-0.6.1-py3-none-any.whl', 'quantum-0.7.0-py3-none-any.whl', 'quantum-0.8.0-py3-none-any.whl', 'quantum-0.9.0-py3-none-any.whl', 'quantum-0.10.0-py3-none-any.whl', 'quantum-0.11.0-py3-none-any.whl', 'quantum-0.12.0-py3-none-any.whl', 'quantum-0.13.0-py3-none-any.whl', 'quantum-0.14.0-py3-none-any.whl', 'quantum-0.15.0-py3-none-any.whl', 'quantum-0.16.0-py3-none-any.whl', 'quantum-0.17.0-py3-none-any.whl', 'quantum-0.18.0-py3-none-any.whl', 'quantum-0.19.0-py3-none-any.whl', 'quantum-0.20.0-py3-none-any.whl', 'quantum-0.21.0-py3-none-any.whl', 'quantum-1.0.0b1-py3-none-any.whl', 'quantum-1.0.0b2-py3-none-any.whl', 'quantum-1.0.0b3-py3-none-any.whl'] cli.azure.cli.core.extension._resolve: Candidates ['quantum-0.1.0-py3-none-any.whl', 'quantum-0.2.0-py3-none-any.whl', 'quantum-0.3.0-py3-none-any.whl', 'quantum-0.4.0-py3-none-any.whl', 'quantum-0.5.0-py3-none-any.whl', 'quantum-0.6.0-py3-none-any.whl', 'quantum-0.6.1-py3-none-any.whl', 'quantum-0.7.0-py3-none-any.whl', 'quantum-0.8.0-py3-none-any.whl', 'quantum-0.9.0-py3-none-any.whl', 'quantum-0.10.0-py3-none-any.whl', 'quantum-0.11.0-py3-none-any.whl', 'quantum-0.12.0-py3-none-any.whl', 'quantum-0.13.0-py3-none-any.whl', 'quantum-0.14.0-py3-none-any.whl', 'quantum-0.15.0-py3-none-any.whl', 'quantum-0.16.0-py3-none-any.whl', 'quantum-0.17.0-py3-none-any.whl', 'quantum-0.18.0-py3-none-any.whl', 'quantum-0.19.0-py3-none-any.whl', 'quantum-0.20.0-py3-none-any.whl', 'quantum-0.21.0-py3-none-any.whl', 'quantum-1.0.0b1-py3-none-any.whl', 'quantum-1.0.0b2-py3-none-any.whl', 'quantum-1.0.0b3-py3-none-any.whl'] cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.1.0-py3-none-any.whl' as 0.1.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.2.0-py3-none-any.whl' as 0.2.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.3.0-py3-none-any.whl' as 0.3.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.4.0-py3-none-any.whl' as 0.4.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.5.0-py3-none-any.whl' as 0.5.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.6.0-py3-none-any.whl' as 0.6.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.6.1-py3-none-any.whl' as 0.6.1 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.7.0-py3-none-any.whl' as 0.7.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.8.0-py3-none-any.whl' as 0.8.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.9.0-py3-none-any.whl' as 0.9.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.10.0-py3-none-any.whl' as 0.10.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.11.0-py3-none-any.whl' as 0.11.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.12.0-py3-none-any.whl' as 0.12.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.13.0-py3-none-any.whl' as 0.13.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.14.0-py3-none-any.whl' as 0.14.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.15.0-py3-none-any.whl' as 0.15.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.16.0-py3-none-any.whl' as 0.16.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.17.0-py3-none-any.whl' as 0.17.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.18.0-py3-none-any.whl' as 0.18.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.19.0-py3-none-any.whl' as 0.19.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.20.0-py3-none-any.whl' as 0.20.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-0.21.0-py3-none-any.whl' as 0.21.0 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-1.0.0b1-py3-none-any.whl' as 1.0.0b1 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-1.0.0b2-py3-none-any.whl' as 1.0.0b2 not greater than current version 1.0.0b3 cli.azure.cli.core.extension._resolve: Skipping 'quantum-1.0.0b3-py3-none-any.whl' as 1.0.0b3 not greater than current version 1.0.0b3 cli.azure.cli.core.extension.operations: Latest version of 'quantum' is already installed. cli.azure.cli.core.extension.operations: Latest version of 'quantum' is already installed.

Use --debug for more information cli.knack.cli: Event: CommandInvoker.OnTransformResult [<function _resource_group_transform at 0x04680118>, <function _x509_from_base64_to_hex_transform at 0x04680168>] cli.knack.cli: Event: CommandInvoker.OnFilterResult [] cli.knack.cli: Event: Cli.SuccessfulExecute [] cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x046547F8>] cli.main: Command ran in 2.638 seconds (init: 0.739, invoke: 1.899)

Expected behavior

Expected the extension to be updated, if available

Environment Summary

az --version azure-cli 2.59.0 *

core 2.59.0 * telemetry 1.1.0

Extensions: quantum 1.0.0b3

Dependencies: msal 1.27.0 azure-mgmt-resource 23.1.0b2

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe' Extensions directory 'C:\Users\Peter.Schow.azure\cliextensions'

Python (Windows) 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 21:52:07) [MSC v.1937 32 bit (Intel)]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

No other context

pschow-qtm avatar May 01 '24 15:05 pschow-qtm

Hi @pschow-qtm,

2.59.0 is not the latest Azure CLI(2.60.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.

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

yonzhan avatar May 01 '24 15:05 yonzhan

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @ricardo-espinoza.

@pschow-qtm This warning message comes with arg --allow-preview for az extension add/update: default value is True which means extension searches through all the released packages, no matter whether it is preview or stable. However cli plan to change this arg's default value to be False in future releases. By then, az extension add only search through stable versions by default. If users want to install preview package, they need to use allow-preview: True to specify it.

For details about this arg, please refer to this doc: https://github.com/Azure/azure-cli/blob/dev/doc/extensions/versioning_guidelines.md#extension-installation-upgrade

AllyW avatar May 14 '24 03:05 AllyW