text:
Network Manager - Unable to add a network group to a connectivity configuration

Describe the bug
I'm trying to add a network group to an existing connectivity configuration
command:
Related command
az network manager connect-config update
Errors
The command failed with an unexpected error. Here is the traceback:
('Unable to build a model: ('Unable to deserialize response data. Data: [<azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E08520>, <azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E08388>, <azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E087F0>, \'{\\\\\', \'groupConnectivity\\\\: \\\\DirectlyConnected\\\\,\'], [ConnectivityGroupItem], DeserializationError: ("Unable to deserialize to object: type, AttributeError: \'str\' object has no attribute \'get\'", AttributeError("\'str\' object has no attribute \'get\'"))', DeserializationError("Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'", AttributeError("'str' object has no attribute 'get'"))), DeserializationError: ('Unable to deserialize response data. Data: [<azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E08520>, <azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E08388>, <azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E087F0>, \'{\\\\\', \'groupConnectivity\\\\: \\\\DirectlyConnected\\\\,\'], [ConnectivityGroupItem], DeserializationError: ("Unable to deserialize to object: type, AttributeError: \'str\' object has no attribute \'get\'", AttributeError("\'str\' object has no attribute \'get\'"))', DeserializationError("Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'", AttributeError("'str' object has no attribute 'get'")))', DeserializationError('Unable to deserialize response data. Data: [<azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E08520>, <azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E08388>, <azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E087F0>, '{\\', 'groupConnectivity\\: \\DirectlyConnected\\,'], [ConnectivityGroupItem], DeserializationError: ("Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'", AttributeError("'str' object has no attribute 'get'"))', DeserializationError("Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'", AttributeError("'str' object has no attribute 'get'"))))
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1436, in _deserialize
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1201, in rest_key_case_insensitive_extractor
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1230, in attribute_key_case_insensitive_extractor
AttributeError: 'str' object has no attribute 'get'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1626, in deserialize_data
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1657, in deserialize_iter
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1657, in
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1639, in deserialize_data
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1454, in _deserialize
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/exceptions.py", line 51, in raise_with_traceback
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1436, in _deserialize
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1201, in rest_key_case_insensitive_extractor
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1230, in attribute_key_case_insensitive_extractor
azure.core.exceptions.DeserializationError: ("Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'", AttributeError("'str' object has no attribute 'get'"))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 622, in body
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1406, in _deserialize
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1415, in _deserialize
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1637, in deserialize_data
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/exceptions.py", line 51, in raise_with_traceback
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1626, in deserialize_data
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1657, in deserialize_iter
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1657, in
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1639, in deserialize_data
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1454, in _deserialize
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/exceptions.py", line 51, in raise_with_traceback
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1436, in _deserialize
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1201, in rest_key_case_insensitive_extractor
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1230, in attribute_key_case_insensitive_extractor
azure.core.exceptions.DeserializationError: ('Unable to deserialize response data. Data: [<azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E08520>, <azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E08388>, <azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E087F0>, '{\\', 'groupConnectivity\\: \\DirectlyConnected\\,'], [ConnectivityGroupItem], DeserializationError: ("Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'", AttributeError("'str' object has no attribute 'get'"))', DeserializationError("Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'", AttributeError("'str' object has no attribute 'get'")))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 663, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 697, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 333, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 242, in handler
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 452, in cached_put
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 446, in _put_operation
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/tracing/decorator.py", line 78, in wrapper_use_tracer
File "C:\Users.azure\cliextensions\virtual-network-manager\azext_network_manager\vendored_sdks\operations_operations.py", line 46757, in create_or_update
_json = self._serialize.body(connectivity_configuration, 'ConnectivityConfiguration')
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 624, in body
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/exceptions.py", line 51, in raise_with_traceback
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 622, in body
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1406, in _deserialize
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1415, in _deserialize
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1637, in deserialize_data
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/exceptions.py", line 51, in raise_with_traceback
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1626, in deserialize_data
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1657, in deserialize_iter
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1657, in
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1639, in deserialize_data
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1454, in _deserialize
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/exceptions.py", line 51, in raise_with_traceback
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1436, in _deserialize
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1201, in rest_key_case_insensitive_extractor
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/serialization.py", line 1230, in attribute_key_case_insensitive_extractor
azure.core.exceptions.SerializationError: ('Unable to build a model: ('Unable to deserialize response data. Data: [<azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E08520>, <azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E08388>, <azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E087F0>, \'{\\\\\', \'groupConnectivity\\\\: \\\\DirectlyConnected\\\\,\'], [ConnectivityGroupItem], DeserializationError: ("Unable to deserialize to object: type, AttributeError: \'str\' object has no attribute \'get\'", AttributeError("\'str\' object has no attribute \'get\'"))', DeserializationError("Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'", AttributeError("'str' object has no attribute 'get'"))), DeserializationError: ('Unable to deserialize response data. Data: [<azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E08520>, <azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E08388>, <azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E087F0>, \'{\\\\\', \'groupConnectivity\\\\: \\\\DirectlyConnected\\\\,\'], [ConnectivityGroupItem], DeserializationError: ("Unable to deserialize to object: type, AttributeError: \'str\' object has no attribute \'get\'", AttributeError("\'str\' object has no attribute \'get\'"))', DeserializationError("Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'", AttributeError("'str' object has no attribute 'get'")))', DeserializationError('Unable to deserialize response data. Data: [<azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E08520>, <azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E08388>, <azext_network_manager.vendored_sdks.models._models_py3.ConnectivityGroupItem object at 0x05E087F0>, '{\\', 'groupConnectivity\\: \\DirectlyConnected\\,'], [ConnectivityGroupItem], DeserializationError: ("Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'", AttributeError("'str' object has no attribute 'get'"))', DeserializationError("Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'", AttributeError("'str' object has no attribute 'get'"))))
Issue script & Debug output
az network manager connect-config update -g xxxxx --configuration-name yyyyy --name zzzzz --add appliesToGroups "{"groupConnectivity": "DirectlyConnected", "isGlobal": "False", "networkGroupId": "/subscriptions/xxxxxxxxx/resourceGroups/xxxxxxx/providers/Microsoft.Network/networkManagers/zzzzzzz/networkGroups/somenetworkgroup", "useHubGateway": "True"}" --debug
debug.txt
Expected behavior
the network group should be added to the connectivity configuration
Environment Summary
azure-cli                         2.49.0
core                              2.49.0
telemetry                          1.0.8
Extensions:
virtual-network-manager               0.6.0
Dependencies:
msal                              1.20.0
azure-mgmt-resource               22.0.0
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\username.azure\cliextensions'
Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb  7 2023, 17:05:00) [MSC v.1929 32 bit (Intel)]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
No response

Please replace parameter --add with parameter --applies-to-groups and try again. For example: az network manager connect-config update --applies-to-groups  network-group-id="/subscriptions/xxxxxxxxx/resourceGroups/xxxxxxx/providers/Microsoft.Network/networkManagers/zzzzzzz/networkGroups/somenetworkgroup" use-hub-gateway="True" is-global=False group-connectivity=DirectlyConnected

Hello Zeng,
The update command just replace an existing configuration, I need to add a new definition block under the applies-to-groups object.
To make it more clear, to add a new network group in an existing configuration, without losing it.
cf. attached file for result
debug.txt

Hi ph-hector, update cannot add a new applies-to-group, only modify it.

authors: ZengTaoxu ph-hector


text:
SSL Error (_ssl.c:1006) when running az keyvault key list locally with Azure CLI

Describe the bug
I try with the CLI for key vault below locally and an SSL error returned.
Related command
az keyvault key list --subscription my-sub-id --vault-name my-kv-name

Errors
[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)
Issue script & Debug output
Script:
az keyvault key list --subscription my-subs-id --vault-name my-kv-name

Debug Output:
cli.knack.cli: Command arguments: ['keyvault', 'key', 'list', '--subscription', 'my-subs-id', '--vault-name', 'my-kv-name', '--debug']
cli.knack.cli: __init__ debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x101538d60>, <function OutputProducer.on_global_arguments at 0x1015ebec0>, <function CLIQuery.on_global_arguments at 0x1016399e0>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'keyvault': ['azure.cli.command_modules.keyvault']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name                  Load Time    Groups  Commands
cli.azure.cli.core: keyvault                  0.052        20       113
cli.azure.cli.core: Total (1)                 0.052        20       113
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 20 groups, 113 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command  : keyvault key list
cli.azure.cli.core: Command table: keyvault key list
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x10239d3a0>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/Users/myusername/.azure/commands/2024-01-02.14-27-20.keyvault_key_list.50672.log'.
az_command_data_logger: command args: keyvault key list --subscription {} --vault-name {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x1024020c0>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x102402160>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x1024022a0>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x1015ebf60>, <function CLIQuery.handle_query_parameter at 0x101639a80>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x102402200>]
cli.azure.cli.core.auth.persistence: build_persistence: location='/Users/myusername/.azure/msal_token_cache.json', encrypt=False
cli.azure.cli.core.auth.binary_cache: load: /Users/myusername/.azure/msal_http_cache.bin
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: openid_config = {'token_endpoint': 'https://login.microsoftonline.com/my-tenant-id/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/my-tenant-id/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/my-tenant-id/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/my-tenant-id/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/my-tenant-id/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/my-tenant-id/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/my-tenant-id/kerberos', 'tenant_region_scope': 'EU', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? False
urllib3.connectionpool: Starting new HTTPS connection (1): my-kv-name.vault.azure.net:443
urllib3.connectionpool: Starting new HTTPS connection (2): my-kv-name.vault.azure.net:443
urllib3.connectionpool: Starting new HTTPS connection (3): my-kv-name.vault.azure.net:443
urllib3.connectionpool: Starting new HTTPS connection (4): my-kv-name.vault.azure.net:443
cli.azure.cli.core.azclierror: Traceback (most recent call last):
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/cli/command_modules/keyvault/_command_type.py", line 112, in keyvault_command_handler
    result = op(**command_args)
             ^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/cli/command_modules/keyvault/custom.py", line 1155, in list_keys
    return [_ for _ in result if not getattr(_, 'managed')] if result else result
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/cli/command_modules/keyvault/custom.py", line 1155, in <listcomp>
    return [_ for _ in result if not getattr(_, 'managed')] if result else result
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/core/paging.py", line 128, in __next__
    return next(self._page_iterator)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/core/paging.py", line 76, in __next__
    self._response = self._get_next(self.continuation_token)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/keyvault/keys/_generated/operations/_key_vault_client_operations.py", line 1510, in get_next
    pipeline_response: PipelineResponse = self._client._pipeline.run(  # pylint: disable=protected-access
                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/core/pipeline/_base.py", line 211, in run
    return first_node.send(pipeline_request)  # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/core/pipeline/_base.py", line 71, in send
    response = self.next.send(request)
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/core/pipeline/_base.py", line 71, in send
    response = self.next.send(request)
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/core/pipeline/_base.py", line 71, in send
    response = self.next.send(request)
               ^^^^^^^^^^^^^^^^^^^^^^^
  [Previous line repeated 2 more times]
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/core/pipeline/policies/_redirect.py", line 158, in send
    response = self.next.send(request)
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/core/pipeline/policies/_retry.py", line 468, in send
    raise err
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/core/pipeline/policies/_retry.py", line 446, in send
    response = self.next.send(request)
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/core/pipeline/policies/_authentication.py", line 118, in send
    response = self.next.send(request)
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/core/pipeline/_base.py", line 71, in send
    response = self.next.send(request)
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/core/pipeline/_base.py", line 71, in send
    response = self.next.send(request)
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/core/pipeline/_base.py", line 71, in send
    response = self.next.send(request)
               ^^^^^^^^^^^^^^^^^^^^^^^
  [Previous line repeated 1 more time]
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/core/pipeline/_base.py", line 103, in send
    self._sender.send(request.http_request, **request.context.options),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/core/pipeline/transport/_requests_basic.py", line 361, in send
    raise error
azure.core.exceptions.ServiceRequestError: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 663, in execute
    raise ex
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 697, in _run_job
    result = cmd_copy(params)
             ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 333, in __call__
    return self.handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/cli/command_modules/keyvault/_command_type.py", line 138, in keyvault_command_handler
    return keyvault_exception_handler(self.command_loader, ex)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/cli/command_modules/keyvault/_command_type.py", line 51, in keyvault_exception_handler
    raise CLIError(ex)
knack.util.CLIError: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)

cli.azure.cli.core.azclierror: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)
az_command_data_logger: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x10239d620>]
az_command_data_logger: exit code: 1
cli.__main__: Command ran in 11.352 seconds (init: 1.373, invoke: 9.979)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 3628 in cache
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "/opt/homebrew/Cellar/azure-cli/2.55.0/libexec/bin/python /opt/homebrew/Cellar/azure-cli/2.55.0/libexec/lib/python3.11/site-packages/azure/cli/telemetry/__init__.py /Users/myusername/.azure"
telemetry.process: Return from creating process
telemetry.main: Finish creating telemetry upload process.

Expected behavior
It should return list of keys.
Environment Summary
az version
{
  "azure-cli": "2.55.0",
  "azure-cli-core": "2.55.0",
  "azure-cli-telemetry": "1.1.0",
  "extensions": {
    "account": "0.2.5"
  }
}

MacOS version: 13.6.3 (22G436)
Additional context
We are using homebrew to install azure cli and we are behind proxy, related CA is added to /opt/homebrew/Cellar/azure-cli/*/libexec/lib/*/site-packages/certifi/cacert.pem regards to doc

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

Have you run az login successfully?

@evelyn-ys , Yes
I can run az login and az group list successfully.

Need Keyvault data plane Python SDK to triage if there's anything wrong with continuous token when getting next page of keys

This seems related to firewall issue of KV, I will close this issue now.

source: gharchive/issue

authors: evelyn-ys ikhvjs yonzhan

repo: Azure/azure-cli

license: MIT

license_type: permissive

license_source: github-api


text:
Not able to download latest Azure DevOps Extension 1.0.0

Describe the bug
I am not able to download the Azure DevOps CLI 1.0.0 extension
Related command
az extension update --name azure-devops
Errors
~> az extension add --name azure-devops
Extension 'azure-devops' 0.26.0 is already installed.
~> az extension update --name azure-devops
Latest version of 'azure-devops' is already installed.
Use --debug for more information
~> az extension add --name azure-devops --version 1.0.0
Version '1.0.0' not found for extension 'azure-devops'
Use --debug for more information
Issue script & Debug output
~> az extension add --name azure-devops --debug
cli.knack.cli: Command arguments: ['extension', 'add', '--name', 'azure-devops', '--debug']
cli.knack.cli: __init__ debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x01E4B460>, <function OutputProducer.on_global_arguments at 0x02018BF8>, <function CLIQuery.on_global_arguments at 0x0203A850>]
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.006         1         7
cli.azure.cli.core: Total (1)                 0.006         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 add
cli.azure.cli.core: Command table: extension add
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x0423B388>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\joreynes\.azure\commands\2024-02-22.15-13-55.extension_add.28988.log'.
az_command_data_logger: command args: extension add --name {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x04287850>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x04287A00>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x04287A90>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x02018C40>, <function CLIQuery.handle_query_parameter at 0x0203A898>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x04287A48>]
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 3700941
cli.azure.cli.core.extension._resolve: Candidates ['azure_devops-0.12.0-py2.py3-none-any.whl', 'azure_devops-0.17.0-py2.py3-none-any.whl', 'azure_devops-0.21.0-py2.py3-none-any.whl', 'azure_devops-0.26.0-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['azure_devops-0.12.0-py2.py3-none-any.whl', 'azure_devops-0.17.0-py2.py3-none-any.whl', 'azure_devops-0.21.0-py2.py3-none-any.whl', 'azure_devops-0.26.0-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['azure_devops-0.12.0-py2.py3-none-any.whl', 'azure_devops-0.17.0-py2.py3-none-any.whl', 'azure_devops-0.21.0-py2.py3-none-any.whl', 'azure_devops-0.26.0-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['azure_devops-0.12.0-py2.py3-none-any.whl', 'azure_devops-0.17.0-py2.py3-none-any.whl', 'azure_devops-0.21.0-py2.py3-none-any.whl', 'azure_devops-0.26.0-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Chosen {'downloadUrl': 'https://github.com/Azure/azure-devops-cli-extension/releases/download/20230127.2/azure_devops-0.26.0-py2.py3-none-any.whl', 'filename': 'azure_devops-0.26.0-py2.py3-none-any.whl', 'metadata': {'azext.minCliCoreVersion': '2.30.0', 'classifiers': ['Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'License :: OSI Approved :: MIT License'], 'extensions': {'python.details': {'contacts': [{'email': 'VSTS_Social@microsoft.com', 'name': 'Microsoft', 'role': 'author'}], 'document_names': {'description': 'DESCRIPTION.rst'}, 'project_urls': {'Home': 'https://github.com/Microsoft/azure-devops-cli-extension'}}}, 'extras': [], 'generator': 'bdist_wheel (0.30.0)', 'license': 'MIT', 'metadata_version': '2.0', 'name': 'azure-devops', 'run_requires': [{'requires': ['distro (==1.3.0)']}], 'summary': 'Tools for managing Azure DevOps.', 'version': '0.26.0'}, 'sha256Digest': '565fc207f1740c26957f382fe2eefabec254011fb2d1b50c0e540f894f47dcbe'}
cli.azure.cli.core.extension.operations: Extension 'azure-devops' 0.26.0 is already installed.
cli.knack.cli: Event: CommandInvoker.OnTransformResult [<function _resource_group_transform at 0x04260BB0>, <function _x509_from_base64_to_hex_transform at 0x04260BF8>]
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 0x0423B4A8>]
az_command_data_logger: exit code: 0
cli.__main__: Command ran in 2.688 seconds (init: 0.602, invoke: 2.087)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 3391 in cache
telemetry.check: Negative: The C:\Users\joreynes\.azure\telemetry.txt was modified at 2024-02-22 15:10:25.883799, which in less than 600.000000 s
~> az extension update --name azure-devops --debug
cli.knack.cli: Command arguments: ['extension', 'update', '--name', 'azure-devops', '--debug']
cli.knack.cli: __init__ debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x01ABB460>, <function OutputProducer.on_global_arguments at 0x01B88BF8>, <function CLIQuery.on_global_arguments at 0x01BAA850>]
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.005         1         7
cli.azure.cli.core: Total (1)                 0.005         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 0x03EAB388>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\joreynes\.azure\commands\2024-02-22.15-14-12.extension_update.37068.log'.
az_command_data_logger: command args: extension update --name {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x03EF7850>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x03EF7A00>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x03EF7A90>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x01B88C40>, <function CLIQuery.handle_query_parameter at 0x01BAA898>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x03EF7A48>]
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 3700941
cli.azure.cli.core.extension._resolve: Candidates ['azure_devops-0.12.0-py2.py3-none-any.whl', 'azure_devops-0.17.0-py2.py3-none-any.whl', 'azure_devops-0.21.0-py2.py3-none-any.whl', 'azure_devops-0.26.0-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['azure_devops-0.12.0-py2.py3-none-any.whl', 'azure_devops-0.17.0-py2.py3-none-any.whl', 'azure_devops-0.21.0-py2.py3-none-any.whl', 'azure_devops-0.26.0-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Skipping 'azure_devops-0.12.0-py2.py3-none-any.whl' as 0.12.0 not greater than current version 0.26.0
cli.azure.cli.core.extension._resolve: Skipping 'azure_devops-0.17.0-py2.py3-none-any.whl' as 0.17.0 not greater than current version 0.26.0
cli.azure.cli.core.extension._resolve: Skipping 'azure_devops-0.21.0-py2.py3-none-any.whl' as 0.21.0 not greater than current version 0.26.0
cli.azure.cli.core.extension._resolve: Skipping 'azure_devops-0.26.0-py2.py3-none-any.whl' as 0.26.0 not greater than current version 0.26.0
cli.azure.cli.core.extension.operations: Latest version of 'azure-devops' is already installed.
cli.azure.cli.core.extension.operations: Latest version of 'azure-devops' is already installed.

Use --debug for more information
cli.knack.cli: Event: CommandInvoker.OnTransformResult [<function _resource_group_transform at 0x03ED0BB0>, <function _x509_from_base64_to_hex_transform at 0x03ED0BF8>]
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 0x03EAB4A8>]
az_command_data_logger: exit code: 0
cli.__main__: Command ran in 2.892 seconds (init: 0.587, invoke: 2.305)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 3320 in cache
telemetry.check: Negative: The C:\Users\joreynes\.azure\telemetry.txt was modified at 2024-02-22 15:10:25.883799, which in less than 600.000000 s
~> az extension add --name azure-devops --version 1.0.0 --debug
cli.knack.cli: Command arguments: ['extension', 'add', '--name', 'azure-devops', '--version', '1.0.0', '--debug']
cli.knack.cli: __init__ debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x021CB460>, <function OutputProducer.on_global_arguments at 0x02298BF8>, <function CLIQuery.on_global_arguments at 0x022B9850>]
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.006         1         7
cli.azure.cli.core: Total (1)                 0.006         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 add
cli.azure.cli.core: Command table: extension add
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x045BB388>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\joreynes\.azure\commands\2024-02-22.15-14-25.extension_add.24372.log'.
az_command_data_logger: command args: extension add --name {} --version {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x04608850>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x04608A00>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x04608A90>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x02298C40>, <function CLIQuery.handle_query_parameter at 0x022B9898>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x04608A48>]
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 3700941
cli.azure.cli.core.extension._resolve: Candidates ['azure_devops-0.12.0-py2.py3-none-any.whl', 'azure_devops-0.17.0-py2.py3-none-any.whl', 'azure_devops-0.21.0-py2.py3-none-any.whl', 'azure_devops-0.26.0-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['azure_devops-0.12.0-py2.py3-none-any.whl', 'azure_devops-0.17.0-py2.py3-none-any.whl', 'azure_devops-0.21.0-py2.py3-none-any.whl', 'azure_devops-0.26.0-py2.py3-none-any.whl']
cli.azure.cli.core.extension.operations: Version '1.0.0' not found for extension 'azure-devops'
cli.azure.cli.core.azclierror: Traceback (most recent call last):
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/extension/operations.py", line 318, in add_extension
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/extension/_resolve.py", line 149, in resolve_from_index
azure.cli.core.extension._resolve.NoExtensionCandidatesError: Version '1.0.0' not found for extension 'azure-devops'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 663, in execute
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 697, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 333, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/extension/custom.py", line 16, in add_extension_cmd
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/extension/operations.py", line 322, in add_extension
knack.util.CLIError: Version '1.0.0' not found for extension 'azure-devops'

Use --debug for more information

cli.azure.cli.core.azclierror: Version '1.0.0' not found for extension 'azure-devops'

Use --debug for more information
az_command_data_logger: Version '1.0.0' not found for extension 'azure-devops'

Use --debug for more information
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x045BB4A8>]
az_command_data_logger: exit code: 1
cli.__main__: Command ran in 2.666 seconds (init: 0.601, invoke: 2.065)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 3478 in cache
telemetry.check: Negative: The C:\Users\joreynes\.azure\telemetry.txt was modified at 2024-02-22 15:10:25.883799, which in less than 600.000000 s

Expected behavior
az extension update --name azure-devops and az extension add --name azure-devops --version 1.0.0 should be able to install the new version found here https://github.com/Azure/azure-devops-cli-extension/releases/tag/20240206.1
Environment Summary
az --version
azure-cli                         2.49.0 *
core                              2.49.0 *
telemetry                          1.0.8 *
Extensions:
azure-devops                      0.26.0
datafactory                        0.5.0
db-up                              0.2.3
spring                            1.13.2
Dependencies:
msal                              1.20.0
azure-mgmt-resource               22.0.0
Additional context
I also do not see the new extension here https://raw.githubusercontent.com/Azure/azure-cli-extensions/main/src/index.json

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

Hi @jontreynes,
2.49.0 is not the latest Azure CLI(2.57.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.

same result when upgrading to 2.57

authors: jontreynes yonzhan


text:
No package for Ubuntu 16.04.3 LTS (Xenial)

Description
Outline the issue here:
There is no available package for Xenial. Only a Wheezy (previous Ubuntu LTS 14) package is offered.
https://packages.microsoft.com/repos/azure-cli/dists/
Even if it is only a copy of the existing package, a Xenial offering should be made.

This doesn't seem to be an issue for the installation. Going to go ahead and close this. Whatever the problem/warning was, it must have been resolved in a package update.


text:
ModuleNotFoundError: No module named 'knack'

Describe the bug
Cloned the code and trying to run it in VS2015 and getting error after setting the env.

Is there anything apart from configuring guide that I am missing while installation.

Found the solution. Used "pip install knack"


text:
Ignore errors in UTF-8 decoding process

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

[x] I adhere to the Command Guidelines.

This PR is for fixing issue #10705

@qwordy please help review this PR.

This PR is not necessary.

source: gharchive/pull-request

authors: bim-msft yonzhan


text:
{ARM} Fix some test issues for live test

Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

ARM

authors: yonzhan zhoxing-ms


text:
[CDN] Migrate azure-mgmt-cdn to track2 SDK

Description

Migrate azure-mgmt-cdn to track2 SDK
Testing Guide

az cdn --help
az afd --help
History Notes

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

CDN

LGTM.

authors: jsntcy t-bzhan yonzhan


text:
{ARM} Update customized policy for template

Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

ARM

Could you add the PR description so that others can trace and understand this change in the future?

Replaced by #22169

authors: msyyc yonzhan zhoxing-ms


text:
{Network} az network watcher packet-capture: Migrate commands to codegen v2

Related command

az network watcher packet-capture
Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

Network

authors: necusjz yonzhan


text:
[ARM] Fix issue with deployment parameter parsing

Fixes #3729.
Ensures that --parameters <JSON String> or --parameters @<file> no longer are ignored if the contents contain an = sign.  Enhances existing test to protect against regressions for this scenario.

This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines

[X] The PR has modified HISTORY.rst with an appropriate description of the change (see Modifying change log).

Command Guidelines

[N/A] Each command and parameter has a meaningful description.
[N/A] Each new command has a test.

(see Authoring Command Modules)

Codecov Report

Merging #3743 into master will not change coverage.
The diff coverage is 50%.

@@           Coverage Diff           @@
##           master    #3743   +/-   ##
=======================================
  Coverage   72.09%   72.09%
=======================================
  Files         422      422
  Lines       26259    26259
  Branches     3995     3995
=======================================
  Hits        18932    18932
  Misses       6099     6099
  Partials     1228     1228

Impacted Files
Coverage Δ

.../azure/cli/command_modules/resource/_validators.py
71.95% <50%> (ø)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ff20840...2d89597. Read the comment docs.

Any idea when this will make it to a release?

Typically when the current milestone ends (which is the first week of July).  We may short-circuit this one due to an unrelated fix.

authors: bencalegari codecov-io tjprescott


text:
BatchAI. Documentation fixes and minor cleanup

This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines

[x] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

Command Guidelines

[x] Each command and parameter has a meaningful description.
[x] Each new command has a test.

(see Authoring Command Modules)

Please re-open this PR against the dev branch instead of master.
(This was a recent change we made)

authors: AlexanderYukhanov derekbekoe


text:
Remove questions with only one answer until they are implemented.  Sh…

…orten telemetry text prompt.

:shipit:

authors: BurtBiel mayurid


text:
[core] undo help.yaml changes in #8325, #8503 and #8535

Due to the transitions and the high cost-to-benefit ratio, the help.yaml project is being reverted. help.yaml issues will be closed. None help.yaml issues should still be addressed.

[x] Undo changes in #8325, #8503 and #8535
[ ] Ensure that there is no diff in generated sphinx documentation before and after
[ ] Undo extensions documentation changes in https://github.com/Azure/azure-cli-extensions/pull/503/

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

[ ] I adhere to the Command Guidelines.

Hi @adewaleo , why do you add [Do Not Merge] label here?

Hi @adewaleo , why do you add [Do Not Merge] label here?

Hello @Juliehzl. I did so because we weren't sure if you wanted to keep the help.yaml changes or not. This PR is meant to undo it, but Travis suggested that we do not undo it because you might want to keep the changes. I will forward you a mail thread about this.

This PR stays for a long time. Close it right now. Please let us know if you still need this PR.

authors: Juliehzl adewaleo yonzhan


text:
Failed to start container: FailedSync

I create ACS by json below:

{
"apiVersion": "vlabs",
"properties": {
"orchestratorProfile": {
"orchestratorType": "Kubernetes",
"kubernetesConfig": {
"networkPolicy": "azure"
}
},
"masterProfile": {
"count": 1,
"dnsPrefix": "kubernetescni",
"vmSize": "Standard_D2_v2"
},
"agentPoolProfiles": [
{
"name": "agentpool",
"count": 2,
"vmSize": "Standard_D2_v2",
"availabilityProfile": "AvailabilitySet"
}
],
"linuxProfile": {
"adminUsername": "chenyl",
"ssh": {
"publicKeys": [
{
"keyData": "xxxxxxxxxxx"
}
]
}
},
"servicePrincipalProfile": {
"servicePrincipalClientID": "xxxxxxxxxxx",
"servicePrincipalClientSecret": "xxxxxxxxxxx"
}
}
}

Then I run the command kubectl run nginx --image nginx
However the container start error:

Events:
FirstSeen     LastSeen        Count   From                                    SubObjectPath   Type            Reason          Message

1m            1m              1       default-scheduler                                       Normal          Scheduled       Successfully assigned nginx-2371676037-2qbpj to k8s-agentpool-40914460-0
53s           53s             1       kubelet, k8s-agentpool-40914460-0                       Warning         FailedSync      Error syncing pod, skipping: failed to "KillPodSandbox" for "6cdc07e9-9c51-11e7-9b21-000d3aa09b41" with KillPodSandboxError: "rpc error: code = 2 desc = NetworkPlugin cni failed to teardown pod "nginx-2371676037-2qbpj_default" network: CNI failed to retrieve network namespace path: Error: No such container: a3b7efc4338a4132d832cc122936380bc7e0c67b6a8eba46dce5029115f76141"
51s   51s     1       kubelet, k8s-agentpool-40914460-0               Warning FailedSync      Error syncing pod, skipping: failed to "KillPodSandbox" for "6cdc07e9-9c51-11e7-9b21-000d3aa09b41" with KillPodSandboxError: "rpc error: code = 2 desc = NetworkPlugin cni failed to teardown pod "_" network: CNI failed to retrieve network namespace path: Error: No such container: 38b690d6457f9c0bd707f79d0d8bee6f85abe596bde2f74e6a386e83e2069c1a"
1m    1s      39      kubelet, k8s-agentpool-40914460-0               Warning FailedSync      Error syncing pod, skipping: failed to "CreatePodSandbox" for "nginx-2371676037-2qbpj_default(6cdc07e9-9c51-11e7-9b21-000d3aa09b41)" with CreatePodSandboxError: "CreatePodSandbox for pod "nginx-2371676037-2qbpj_default(6cdc07e9-9c51-11e7-9b21-000d3aa09b41)" failed: rpc error: code = 2 desc = NetworkPlugin cni failed to set up pod "nginx-2371676037-2qbpj_default" network: failed to find plugin "loopback" in path [/opt/loopback/bin /opt/cni/bin]"
1m    0s      41      kubelet, k8s-agentpool-40914460-0               Normal  SandboxChanged  Pod sandbox changed, it will be killed and re-created.

Hi Zackliu, Can you please check if the node (k8s-agentpool-40914460-0) has loopback plugin installed at /opt/cni/bin. Please list the files in /opt/cni/bin directory for the agent node above.

Hi Zackliu, Were you able to get the information that was asked and will help us debug this?

Hi, sorry for not replying at once. There is only azure-vnet and azure-vnet-ipam in /opt/cni/bin. And I have another problem that seems I can't add public IP for agent node (When I tried to associate to NIC of agent node, nothing happened).

@zackliu, acs-engine had a regression a few weeks ago where they uploaded an incorrect package that did not include the loopback plugin. We fixed that as soon as we noticed it. The easiest way to fix this is to git pull your acs-engine and recreate your cluster.

OK, resolved. Thanks.

authors: ofiliz sharmasushant zackliu

repo: Azure/azure-container-networking


text:
Fix Business Rule name in the example of the Recommendations API Documentation

Rule type BlockList was used two times. In the second occurrence there should be Upsale.

Hi @StanislawSwierc, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;

@StanislawSwierc
Thank you for this contribution to Azure documentation. The Machine Learning team reviewed this and wants it accepted as is.
--Carolyn
Azure Documentation

authors: StanislawSwierc azurecla cjgronlund

repo: Azure/azure-content


text:
[Hackadoc] Add a workspace-OpInsights

Created an article for setting up a workspace

Hi @leylakazemi, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.azure.com.

TTYL, AZPRBOT;

changed tag to indicate microsoft contributor

authors: azurecla leylakazemi mollybostic


text:
Update mobile-engagement-user-interface-settings.md

Fix some wording in the UI Settings article (and add some missing links).

Hi @v-micada, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (v-micada). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, or work for Microsoft Open Technologies, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

authors: azurecla v-micada


text:
3.7.0-preview2 Changelog

Changelog for 3.7.0-preview2

@kirankumarkolli Can we close on these notes and move forward with the release?


text:
MissingMethodException thrown from BulkExecutor when using the latest MS.Azure.DocumentDB package

While looking at newer versions of packages in the repro for #617, I found that when using the latest Microsoft.Azure.CosmosDB.BulkExecutor package (1.1.1) and the latest Microsoft.Azure.DocumentDB package (2.1.3), the same repro steps throws a MissingMethodException:

Message: System.MissingMethodException : Method not found: 'System.Threading.Tasks.Task`1<Microsoft.Azure.Documents.Routing.CollectionRoutingMap> Microsoft.Azure.Documents.Routing.PartitionKeyRangeCache.TryLookupAsync(System.String, Microsoft.Azure.Documents.Routing.CollectionRoutingMap, System.Threading.CancellationToken)'.

Result StackTrace:
at Microsoft.Azure.CosmosDB.BulkExecutor.BulkExecutor.<InitializeAsync>d__17.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.Azure.CosmosDB.BulkExecutor.BulkExecutor.InitializeAsync()
   at Microsoft.Azure.CosmosDB.BulkExecutor.Graph.GraphBulkExecutor.<InitializeAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at GremlinExportTests.<Foo1>d__7.MoveNext() in D:\git\VSCloudKernel\src\DumpLanguageServer.Tests\GremlinExportTests.cs:line 80
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Result Message:	System.MissingMethodException : Method not found: 'System.Threading.Tasks.Task`1<Microsoft.Azure.Documents.Routing.CollectionRoutingMap> Microsoft.Azure.Documents.Routing.PartitionKeyRangeCache.TryLookupAsync(System.String, Microsoft.Azure.Documents.Routing.CollectionRoutingMap, System.Threading.CancellationToken)'.

This is not the first time that newer Azure SDK packages have broken other Azure SDK packages. #577 is another one that happened recently. Are these packages consuming internals of each other, or are these packages actually breaking public API in minor releases as it appears to be?

Our apologies. The bulk executor with a fix for this issue will be released by tomorrow Thu 18th.
The root cause here is bulk executor library is a preview functionality built on a separate system, but it is consuming internal API from the Cosmos SDK. Our plan is to pull this library into SDK in the near future to clean this up.

Getting the same issue on the .net core version 2.0.0-preview2 (only version that supports .net core so must use preview version)

I'm getting the same issue on the .net core version. I'm using the 2.0.0-preview2 (compatible with the documentdb core), I was developing a POC to see if is it possible to replace or mongo driver (used for bulks) by this (2.0.0-preview2) BulkExecutor. I think it's better wait for the stable version

Any news on that? Have the same issues with Azure Functions 2.0 (.net core 2.1)
Microsoft.Azure.CosmosDB.BulkExecutor: Method not found: 'System.Threading.Tasks.Task`1<Microsoft.Azure.Documents.Routing.CollectionRoutingMap> Microsoft.Azure.Documents.Routing.PartitionKeyRangeCache.TryLookupAsync(System.String, Microsoft.Azure.Documents.Routing.CollectionRoutingMap, System.Threading.CancellationToken, Boolean)'.

same issue in 2.3.0-preview2

Same here, packages
Microsoft.Azure.CosmosDB.BulkExecutor -Version 2.3.0-preview2
Install-Package Microsoft.Azure.DocumentDB.Core -Version 2.3.0
Give me this exception

Still repros.  Our projects are a few minor versions behind in many of the Azure storage packages and we can't upgrade them because of this one.

same here with:

Microsoft.Azure.CosmosDB.BulkExecutor 2.3.0-preview2
Microsoft.Azure.DocumentDB.Core 2.4.0

Method not found: 'System.Threading.Tasks.Task`1<Microsoft.Azure.Documents.Routing.CollectionRoutingMap> Microsoft.Azure.Documents.Routing.PartitionKeyRangeCache.TryLookupAsync(System.String, Microsoft.Azure.Documents.Routing.CollectionRoutingMap, System.Threading.CancellationToken, Boolean)'.

error persists with:

Microsoft.Azure.CosmosDB.BulkExecutor 2.3.0-preview2
Microsoft.Azure.DocumentDB.Core 2.5.1

I can confirm that only this combination works for me:

Microsoft.Azure.CosmosDB.BulkExecutor 2.3.0-preview2
Microsoft.Azure.DocumentDB.Core 2.1.3

authors: AArnott Gaploid JamesBrightley Morgma adamlepkowski igor-toporet kirillg nickwood2009 ocipro rifuller steveatsap

repo: Azure/azure-cosmosdb-dotnet