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

Issues working with Azure CLI

Open LiftedWorx opened this issue 3 years ago • 4 comments

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az find

Errors:

The command failed with an unexpected error. Here is the traceback:
HTTPSConnectionPool(host='app.aladdin.microsoft.com', port=443): Max retries exceeded with url: /api/v1.0/examples?query=blob&clientType=AzureCli&context=%7B%22versionNumber%22%3A+%222.39.0%22%2C+%22correlationId%22%3A+%228130501e-3a84-4cdc-9996-096bf5e19d72%22%2C+%22eventId%22%3A+%2248eba920-8fa9-4cb3-842a-1e62fa2747c7%22%7D (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x06EF45E0>, 'Connection to app.aladdin.microsoft.com timed out. (connect timeout=None)'))
Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connection.py", line 174, in _new_conn
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/util/connection.py", line 96, in create_connection
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/util/connection.py", line 86, in create_connection
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 699, in urlopen
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 382, in _make_request
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 1010, in _validate_conn
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connection.py", line 358, in connect
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connection.py", line 179, in _new_conn
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x06EF45E0>, 'Connection to app.aladdin.microsoft.com timed out. (connect timeout=None)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 439, in send
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 755, in urlopen
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/util/retry.py", line 574, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='app.aladdin.microsoft.com', port=443): Max retries exceeded with url: /api/v1.0/examples?query=blob&clientType=AzureCli&context=%7B%22versionNumber%22%3A+%222.39.0%22%2C+%22correlationId%22%3A+%228130501e-3a84-4cdc-9996-096bf5e19d72%22%2C+%22eventId%22%3A+%2248eba920-8fa9-4cb3-842a-1e62fa2747c7%22%7D (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x06EF45E0>, 'Connection to app.aladdin.microsoft.com timed out. (connect timeout=None)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 663, in execute
  File "D:\a\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\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 697, in _run_job
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 333, in __call__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/find/custom.py", line 36, in process_query
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/find/custom.py", line 126, in call_aladdin_service
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/api.py", line 75, in get
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/api.py", line 61, in request
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 542, in request
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 655, in send
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 504, in send
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='app.aladdin.microsoft.com', port=443): Max retries exceeded with url: /api/v1.0/examples?query=blob&clientType=AzureCli&context=%7B%22versionNumber%22%3A+%222.39.0%22%2C+%22correlationId%22%3A+%228130501e-3a84-4cdc-9996-096bf5e19d72%22%2C+%22eventId%22%3A+%2248eba920-8fa9-4cb3-842a-1e62fa2747c7%22%7D (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x06EF45E0>, 'Connection to app.aladdin.microsoft.com timed out. (connect timeout=None)'))

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here...
  • az find {}

Expected Behavior

Environment Summary

Windows-10-10.0.19042-SP0
Python 3.10.5
Installer: MSI

azure-cli 2.39.0

Additional Context

LiftedWorx avatar Aug 03 '22 13:08 LiftedWorx

Thank you for your feedback. This has been routed to the support team for assistance.

ghost avatar Aug 03 '22 13:08 ghost

@LiftedWorx The command is working as expected for me in a similar environment. Can you please try again and let us know the parameter you used. az find "az storage" Finding examples...

Here are the most common ways to use [az storage]:

Copies a blob asynchronously. Use az storage blob show to check the status of the blobs. (autogenerated) az storage blob copy start --account-key 00000000 --account-name MyAccount --destination-blob MyDestinationBlob --destination-container MyDestinationContainer --source-uri https://storage.blob.core.windows.net/photos

Delete blobs or files from Azure Storage. (autogenerated) az storage remove --account-name myaccount --container-name MyContainer --only-show-errors --recursive

Restore blobs in the specified blob range without wait and query blob restore status with 'az storage account show'. time=date -u -d "30 minutes" '+%Y-%m-%dT%H:%MZ' az storage blob restore --account-name mystorageaccount -g MyResourceGroup -t $time -r container0/blob1 container0/blob2 --no-wait

Please let us know how we are doing: https://aka.ms/azureclihats

RakeshMohanMSFT avatar Aug 03 '22 13:08 RakeshMohanMSFT

route to CXP team

yonzhan avatar Aug 03 '22 14:08 yonzhan

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

ghost avatar Aug 10 '22 20:08 ghost

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

ghost avatar Aug 21 '22 08:08 ghost