[Bug] az extension add gives 'ERROR: An error occurred. Pip failed with status code 1. Use --debug for more information.'
See original GitHub issueDescribe the bug Since March 31 I am failing to install an az extension using my DevOps pipeline. I am managing a Digital Twin Instance so I need to ‘azure-iot’ extension to be installed on my hosted agent vs2017-win2016. Until March 31 everything went fine and the extension got installed correctly so I could use it in following scripts. When I try to install the extension using: ‘az extension add --name azure-iot --debug’ I get the following error: ‘ERROR: An error occurred. Pip failed with status code 1. Use --debug for more information.’
To Reproduce Azure Cli Version: 2.21.2 Use az --version Look for something like-
Azure-Devops extension version: 0.18.0 Use az --version Look for something like-
Steps to reproduce the behavior:
- create cmd script in DevOps Release pipeline
- add command ‘az extension add --name azure-iot --debug’ to the cmd script
- Run DevOps release pipeline with Hosted Agent vs2017-win2016
- See error
Expected behavior I expected the ‘azure-iot’ extension to install for the pipeline run.
Debug logs
2021-04-06T17:36:48.4681509Z ##[section]Starting: Script4
2021-04-06T17:36:48.4933283Z ==============================================================================
2021-04-06T17:36:48.4933655Z Task : Command line
2021-04-06T17:36:48.4934022Z Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
2021-04-06T17:36:48.4934342Z Version : 2.182.0
2021-04-06T17:36:48.4934599Z Author : Microsoft Corporation
2021-04-06T17:36:48.4934961Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
2021-04-06T17:36:48.4935401Z ==============================================================================
2021-04-06T17:36:51.6903772Z Generating script.
2021-04-06T17:36:51.7054461Z Script contents:
2021-04-06T17:36:51.7100902Z az extension add --name azure-iot --debug
2021-04-06T17:36:51.7546865Z ========================== Starting Command Output ===========================
2021-04-06T17:36:51.7956514Z ##[command]"C:\Windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\fdaa2470-d7a1-4f60-9575-fd820cac200b.cmd""
2021-04-06T17:36:54.9715072Z DEBUG: cli.knack.cli: Command arguments: ['extension', 'add', '--name', 'azure-iot', '--debug']
2021-04-06T17:36:54.9717019Z DEBUG: cli.knack.cli: __init__ debug log:
2021-04-06T17:36:54.9717854Z Cannot enable color.
2021-04-06T17:36:54.9718251Z DEBUG: cli.knack.cli: Event: Cli.PreExecute []
2021-04-06T17:36:54.9719013Z DEBUG: cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x0367B2B8>, <function OutputProducer.on_global_arguments at 0x03717738>, <function CLIQuery.on_global_arguments at 0x037326A8>]
2021-04-06T17:36:55.1116201Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
2021-04-06T17:36:55.1118395Z DEBUG: cli.azure.cli.core: Command index version or cloud profile is invalid or doesn't match the current command.
2021-04-06T17:36:55.1134625Z DEBUG: cli.azure.cli.core: Command index has been invalidated.
2021-04-06T17:36:55.1136025Z DEBUG: cli.azure.cli.core: No module found from index for '['extension', 'add', '--name', 'azure-iot', '--debug']'
2021-04-06T17:36:55.1136966Z DEBUG: cli.azure.cli.core: Loading all modules and extensions
2021-04-06T17:36:55.3924431Z DEBUG: cli.azure.cli.core: Discovered command modules: ['acr', 'acs', 'advisor', 'ams', 'apim', 'appconfig', 'appservice', 'aro', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'config', 'configure', 'consumption', 'container', 'cosmosdb', 'databoxedge', 'deploymentmanager', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'interactive', 'iot', 'keyvault', 'kusto', 'lab', 'managedservices', 'maps', 'monitor', 'natgateway', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbms', 'redis', 'relay', 'reservations', 'resource', 'role', 'search', 'security', 'servicebus', 'servicefabric', 'signalr', 'sql', 'sqlvm', 'storage', 'synapse', 'util', 'vm']
2021-04-06T17:36:55.3926547Z DEBUG: cli.azure.cli.core: Loading command modules:
2021-04-06T17:36:55.3927078Z DEBUG: cli.azure.cli.core: Name Load Time Groups Commands
2021-04-06T17:36:55.4176854Z DEBUG: cli.azure.cli.core: acr 0.025 27 112
2021-04-06T17:36:56.0957408Z DEBUG: cli.azure.cli.core: acs 0.678 7 51
2021-04-06T17:36:56.1084585Z DEBUG: cli.azure.cli.core: advisor 0.013 3 6
2021-04-06T17:36:56.1706155Z DEBUG: cli.azure.cli.core: ams 0.062 20 90
2021-04-06T17:36:56.1938519Z DEBUG: cli.azure.cli.core: apim 0.022 9 50
2021-04-06T17:36:56.2212464Z DEBUG: cli.azure.cli.core: appconfig 0.027 7 33
2021-04-06T17:36:56.2573992Z DEBUG: cli.azure.cli.core: appservice 0.036 62 220
2021-04-06T17:36:56.2764638Z DEBUG: cli.azure.cli.core: aro 0.019 1 7
2021-04-06T17:36:56.2948776Z DEBUG: cli.azure.cli.core: backup 0.018 13 49
2021-04-06T17:36:56.3988571Z DEBUG: cli.azure.cli.core: batch 0.104 31 90
2021-04-06T17:36:56.4103635Z DEBUG: cli.azure.cli.core: batchai 0.011 10 32
2021-04-06T17:36:56.4369994Z DEBUG: cli.azure.cli.core: billing 0.027 19 52
2021-04-06T17:36:56.4498094Z DEBUG: cli.azure.cli.core: botservice 0.013 12 42
2021-04-06T17:36:56.4707042Z DEBUG: cli.azure.cli.core: cdn 0.021 39 132
2021-04-06T17:36:56.4826825Z DEBUG: cli.azure.cli.core: cloud 0.012 1 7
2021-04-06T17:36:56.4897249Z DEBUG: cli.azure.cli.core: cognitiveservices 0.007 5 17
2021-04-06T17:36:56.4978687Z DEBUG: cli.azure.cli.core: config 0.008 2 7
2021-04-06T17:36:56.5104412Z DEBUG: cli.azure.cli.core: configure 0.012 3 9
2021-04-06T17:36:56.5330584Z DEBUG: cli.azure.cli.core: consumption 0.022 8 9
2021-04-06T17:36:56.5482910Z DEBUG: cli.azure.cli.core: container 0.015 1 11
2021-04-06T17:36:56.5961803Z DEBUG: cli.azure.cli.core: cosmosdb 0.047 32 123
2021-04-06T17:36:56.6236773Z DEBUG: cli.azure.cli.core: databoxedge 0.028 5 27
2021-04-06T17:36:56.6663475Z DEBUG: cli.azure.cli.core: deploymentmanager 0.042 7 30
2021-04-06T17:36:56.7008910Z DEBUG: cli.azure.cli.core: dla 0.034 23 62
2021-04-06T17:36:56.7192648Z DEBUG: cli.azure.cli.core: dls 0.018 7 41
2021-04-06T17:36:56.7312382Z DEBUG: cli.azure.cli.core: dms 0.012 3 22
2021-04-06T17:36:56.7507244Z DEBUG: cli.azure.cli.core: eventgrid 0.019 18 61
2021-04-06T17:36:56.8083659Z DEBUG: cli.azure.cli.core: eventhubs 0.057 14 51
2021-04-06T17:36:56.8193750Z DEBUG: cli.azure.cli.core: extension 0.011 1 7
2021-04-06T17:36:56.8229920Z DEBUG: cli.azure.cli.core: feedback 0.004 1 1
2021-04-06T17:36:56.8289191Z DEBUG: cli.azure.cli.core: find 0.006 1 1
2021-04-06T17:36:56.8394316Z DEBUG: cli.azure.cli.core: hdinsight 0.010 7 36
2021-04-06T17:36:56.8413252Z DEBUG: cli.azure.cli.core: interactive 0.002 1 1
2021-04-06T17:36:56.8608901Z DEBUG: cli.azure.cli.core: iot 0.019 15 68
2021-04-06T17:36:56.8946339Z DEBUG: cli.azure.cli.core: keyvault 0.033 19 116
2021-04-06T17:36:56.9027164Z DEBUG: cli.azure.cli.core: kusto 0.008 3 14
2021-04-06T17:36:56.9286827Z DEBUG: cli.azure.cli.core: lab 0.017 11 34
2021-04-06T17:36:56.9364028Z DEBUG: cli.azure.cli.core: managedservices 0.016 3 8
2021-04-06T17:36:56.9448118Z DEBUG: cli.azure.cli.core: maps 0.008 3 7
2021-04-06T17:36:56.9746880Z DEBUG: cli.azure.cli.core: monitor 0.029 32 132
2021-04-06T17:36:56.9839589Z DEBUG: cli.azure.cli.core: natgateway 0.009 3 6
2021-04-06T17:36:57.0052472Z DEBUG: cli.azure.cli.core: netappfiles 0.021 13 53
2021-04-06T17:36:57.1927105Z DEBUG: cli.azure.cli.core: network 0.187 130 598
2021-04-06T17:36:57.2074868Z DEBUG: cli.azure.cli.core: policyinsights 0.012 6 12
2021-04-06T17:36:57.2200891Z DEBUG: cli.azure.cli.core: privatedns 0.015 14 66
2021-04-06T17:36:57.2312875Z DEBUG: cli.azure.cli.core: profile 0.011 2 9
2021-04-06T17:36:57.7953138Z DEBUG: cli.azure.cli.core: rdbms 0.564 43 188
2021-04-06T17:36:57.8054329Z DEBUG: cli.azure.cli.core: redis 0.010 4 24
2021-04-06T17:36:57.8241244Z DEBUG: cli.azure.cli.core: relay 0.018 10 37
2021-04-06T17:36:57.8387384Z DEBUG: cli.azure.cli.core: reservations 0.015 5 12
2021-04-06T17:36:57.8721837Z DEBUG: cli.azure.cli.core: resource 0.033 36 171
2021-04-06T17:36:57.9378415Z DEBUG: cli.azure.cli.core: role 0.066 17 61
2021-04-06T17:36:57.9491230Z DEBUG: cli.azure.cli.core: search 0.011 7 20
2021-04-06T17:36:57.9634930Z DEBUG: cli.azure.cli.core: security 0.014 36 81
2021-04-06T17:36:57.9780182Z DEBUG: cli.azure.cli.core: servicebus 0.014 17 64
2021-04-06T17:36:57.9926817Z DEBUG: cli.azure.cli.core: servicefabric 0.014 21 51
2021-04-06T17:36:58.0328537Z DEBUG: cli.azure.cli.core: signalr 0.040 5 16
2021-04-06T17:36:58.0569840Z DEBUG: cli.azure.cli.core: sql 0.024 42 169
2021-04-06T17:36:58.0760158Z DEBUG: cli.azure.cli.core: sqlvm 0.019 4 17
2021-04-06T17:36:58.1626315Z DEBUG: cli.azure.cli.core: storage 0.086 52 239
2021-04-06T17:36:58.1935380Z DEBUG: cli.azure.cli.core: synapse 0.031 33 142
2021-04-06T17:36:58.2086731Z DEBUG: cli.azure.cli.core: util 0.015 2 4
2021-04-06T17:36:58.2709224Z DEBUG: cli.azure.cli.core: vm 0.062 44 224
2021-04-06T17:36:58.2710389Z DEBUG: cli.azure.cli.core: Total (63) 2.865 1032 4132
2021-04-06T17:36:58.5434634Z DEBUG: cli.azure.cli.core: Loading extensions:
2021-04-06T17:36:58.5435479Z DEBUG: cli.azure.cli.core: Name Load Time Groups Commands Directory
2021-04-06T17:36:58.7255877Z DEBUG: cli.azure.cli.core: azure-devops 0.166 60 191 C:\Program Files\Common Files\AzureCliExtensionDirectory\azure-devops
2021-04-06T17:36:58.7257025Z DEBUG: cli.azure.cli.core: Total (1) 0.166 60 191
2021-04-06T17:36:58.7259695Z DEBUG: cli.azure.cli.core: Loaded 1082 groups, 4323 commands.
2021-04-06T17:36:58.7343424Z DEBUG: cli.azure.cli.core: Updated command index in 0.006 seconds.
2021-04-06T17:36:58.7344409Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x0395DA08>]
2021-04-06T17:36:58.7368246Z INFO: az_command_data_logger: command args: extension add --name {} --debug
2021-04-06T17:36:58.7369217Z DEBUG: cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\VssAdministrator\.azure\commands'.
2021-04-06T17:36:58.7378058Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x033D01E0>, <function register_global_query_examples_argument.<locals>.register_query_examples at 0x04376540>]
2021-04-06T17:36:58.7476012Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
2021-04-06T17:36:58.7478643Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x04376588>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x04376618>]
2021-04-06T17:36:58.7537919Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
2021-04-06T17:36:58.7538664Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreParseArgs [<function _documentdb_deprecate at 0x04D92A50>]
2021-04-06T17:36:58.7539866Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x03717780>, <function CLIQuery.handle_query_parameter at 0x037326F0>, <function register_global_query_examples_argument.<locals>.handle_example_parameter at 0x04376228>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x043765D0>, <function handler at 0x04EBA8E8>, <function DevCommandsLoader.post_parse_args at 0x05B03DB0>]
2021-04-06T17:36:58.8487092Z DEBUG: urllib3.connectionpool: Starting new HTTPS connection (1): aka.ms:443
2021-04-06T17:36:59.2095822Z DEBUG: urllib3.connectionpool: https://aka.ms:443 "GET /azure-cli-extension-index-v1 HTTP/1.1" 301 0
2021-04-06T17:36:59.2183983Z DEBUG: urllib3.connectionpool: Starting new HTTPS connection (1): azcliextensionsync.blob.core.windows.net:443
2021-04-06T17:36:59.8652416Z DEBUG: urllib3.connectionpool: https://azcliextensionsync.blob.core.windows.net:443 "GET /index1/index.json HTTP/1.1" 200 854728
2021-04-06T17:37:00.8827926Z DEBUG: cli.azure.cli.core.extension._resolve: Candidates ['azure_iot-0.10.10-py3-none-any.whl', 'azure_iot-0.9.7-py2.py3-none-any.whl', 'azure_iot-0.9.4-py2.py3-none-any.whl']
2021-04-06T17:37:00.8829280Z DEBUG: cli.azure.cli.core.extension._resolve: Candidates ['azure_iot-0.10.10-py3-none-any.whl', 'azure_iot-0.9.7-py2.py3-none-any.whl', 'azure_iot-0.9.4-py2.py3-none-any.whl']
2021-04-06T17:37:00.8831990Z DEBUG: cli.azure.cli.core.extension._resolve: Candidates ['azure_iot-0.10.10-py3-none-any.whl', 'azure_iot-0.9.7-py2.py3-none-any.whl', 'azure_iot-0.9.4-py2.py3-none-any.whl']
2021-04-06T17:37:00.8836034Z DEBUG: cli.azure.cli.core.extension._resolve: Candidates ['azure_iot-0.10.10-py3-none-any.whl', 'azure_iot-0.9.7-py2.py3-none-any.whl', 'azure_iot-0.9.4-py2.py3-none-any.whl']
2021-04-06T17:37:00.8837261Z DEBUG: cli.azure.cli.core.extension._resolve: Choosing the latest of the remaining candidates.
2021-04-06T17:37:00.8845343Z DEBUG: cli.azure.cli.core.extension._resolve: Chosen {'downloadUrl': 'https://github.com/Azure/azure-iot-cli-extension/releases/download/v0.10.10/azure_iot-0.10.10-py3-none-any.whl', 'filename': 'azure_iot-0.10.10-py3-none-any.whl', 'metadata': {'azext.minCliCoreVersion': '2.3.1', 'classifiers': ['Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'License :: OSI Approved :: MIT License'], 'extensions': {'python.details': {'contacts': [{'email': 'iotupx@microsoft.com', 'name': 'Microsoft', 'role': 'author'}], 'document_names': {'description': 'DESCRIPTION.rst'}, 'project_urls': {'Home': 'https://github.com/azure/azure-iot-cli-extension'}}}, 'extras': [], 'generator': 'bdist_wheel (0.30.0)', 'license': 'MIT', 'metadata_version': '2.0', 'name': 'azure-iot', 'requires_python': '>=3.6,<4', 'run_requires': [{'requires': ['jsonschema (==3.0.2)', 'paho-mqtt (==1.5.0)', 'setuptools']}], 'summary': 'The Azure IoT extension for Azure CLI.', 'version': '0.10.10'}, 'sha256Digest': '77a82d1b60fa1664a15cef6dff7bfbdb65b0675d101a2b015aa7eb855064a520'}
2021-04-06T17:37:00.8869651Z DEBUG: cli.azure.cli.core.extension.operations: Extension source is url? True
2021-04-06T17:37:00.8895581Z DEBUG: cli.azure.cli.core.extension.operations: Downloading https://github.com/Azure/azure-iot-cli-extension/releases/download/v0.10.10/azure_iot-0.10.10-py3-none-any.whl to C:\Users\VSSADM~1\AppData\Local\Temp\tmpqenffrb6\azure_iot-0.10.10-py3-none-any.whl
2021-04-06T17:37:00.8938925Z DEBUG: urllib3.connectionpool: Starting new HTTPS connection (1): github.com:443
2021-04-06T17:37:01.1933942Z DEBUG: urllib3.connectionpool: https://github.com:443 "GET /Azure/azure-iot-cli-extension/releases/download/v0.10.10/azure_iot-0.10.10-py3-none-any.whl HTTP/1.1" 302 642
2021-04-06T17:37:01.1986160Z DEBUG: urllib3.connectionpool: Starting new HTTPS connection (1): github-releases.githubusercontent.com:443
2021-04-06T17:37:01.3401130Z DEBUG: urllib3.connectionpool: https://github-releases.githubusercontent.com:443 "GET /103456760/979c8080-7c0c-11eb-8653-b8130085a23c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210406%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210406T173701Z&X-Amz-Expires=300&X-Amz-Signature=2e028b3f6e7abe706babcb9ac5dbc659118861730efc60b51f4edb0861e144d6&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=103456760&response-content-disposition=attachment%3B%20filename%3Dazure_iot-0.10.10-py3-none-any.whl&response-content-type=application%2Foctet-stream HTTP/1.1" 200 603750
2021-04-06T17:37:01.3804287Z DEBUG: cli.azure.cli.core.extension.operations: Downloaded to C:\Users\VSSADM~1\AppData\Local\Temp\tmpqenffrb6\azure_iot-0.10.10-py3-none-any.whl
2021-04-06T17:37:01.3805324Z DEBUG: cli.azure.cli.core.extension.operations: Validating the extension C:\Users\VSSADM~1\AppData\Local\Temp\tmpqenffrb6\azure_iot-0.10.10-py3-none-any.whl
2021-04-06T17:37:01.3867055Z DEBUG: cli.azure.cli.core.extension.operations: Checksum of C:\Users\VSSADM~1\AppData\Local\Temp\tmpqenffrb6\azure_iot-0.10.10-py3-none-any.whl is OK
2021-04-06T17:37:03.4476372Z DEBUG: cli.azure.cli.core.extension.operations: Validation successful on C:\Users\VSSADM~1\AppData\Local\Temp\tmpqenffrb6\azure_iot-0.10.10-py3-none-any.whl
2021-04-06T17:37:04.4421709Z DEBUG: cli.azure.cli.core.extension.operations: Executing pip with args: ['install', '--target', 'C:\\Program Files\\Common Files\\AzureCliExtensionDirectory\\azure-iot', 'C:\\Users\\VSSADM~1\\AppData\\Local\\Temp\\tmpqenffrb6\\azure_iot-0.10.10-py3-none-any.whl']
2021-04-06T17:37:04.4425007Z DEBUG: cli.azure.cli.core.extension.operations: Running: ['C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\python.exe', '-m', 'pip', 'install', '--target', 'C:\\Program Files\\Common Files\\AzureCliExtensionDirectory\\azure-iot', 'C:\\Users\\VSSADM~1\\AppData\\Local\\Temp\\tmpqenffrb6\\azure_iot-0.10.10-py3-none-any.whl', '-vv', '--disable-pip-version-check', '--no-cache-dir']
2021-04-06T17:37:06.5915156Z DEBUG: cli.azure.cli.core.extension.operations: Using pip 21.0.1 from C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\pip (python 3.6)
2021-04-06T17:37:06.5916318Z Non-user install due to --prefix or --target option
2021-04-06T17:37:06.5917285Z Created temporary directory: C:\Users\VSSADM~1\AppData\Local\Temp\pip-target-x0rdbziv
2021-04-06T17:37:06.5918258Z Created temporary directory: C:\Users\VSSADM~1\AppData\Local\Temp\pip-ephem-wheel-cache-_1a3lh22
2021-04-06T17:37:06.5919571Z Created temporary directory: C:\Users\VSSADM~1\AppData\Local\Temp\pip-req-tracker-dsm11eh0
2021-04-06T17:37:06.5920752Z Initialized build tracking at C:\Users\VSSADM~1\AppData\Local\Temp\pip-req-tracker-dsm11eh0
2021-04-06T17:37:06.5921547Z Created build tracker: C:\Users\VSSADM~1\AppData\Local\Temp\pip-req-tracker-dsm11eh0
2021-04-06T17:37:06.5922105Z Entered build tracker: C:\Users\VSSADM~1\AppData\Local\Temp\pip-req-tracker-dsm11eh0
2021-04-06T17:37:06.5923642Z Created temporary directory: C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-19k_bfis
2021-04-06T17:37:06.5924309Z Processing c:\users\vssadm~1\appdata\local\temp\tmpqenffrb6\azure_iot-0.10.10-py3-none-any.whl
2021-04-06T17:37:06.5925618Z Added azure-iot==0.10.10 from file:///C:/Users/VSSADM%7E1/AppData/Local/Temp/tmpqenffrb6/azure_iot-0.10.10-py3-none-any.whl to build tracker 'C:\\Users\\VSSADM~1\\AppData\\Local\\Temp\\pip-req-tracker-dsm11eh0'
2021-04-06T17:37:06.5926978Z Removed azure-iot==0.10.10 from file:///C:/Users/VSSADM%7E1/AppData/Local/Temp/tmpqenffrb6/azure_iot-0.10.10-py3-none-any.whl from build tracker 'C:\\Users\\VSSADM~1\\AppData\\Local\\Temp\\pip-req-tracker-dsm11eh0'
2021-04-06T17:37:06.5927889Z 1 location(s) to search for versions of paho-mqtt:
2021-04-06T17:37:06.5928321Z * https://pypi.org/simple/paho-mqtt/
2021-04-06T17:37:06.5928797Z Fetching project page and analyzing links: https://pypi.org/simple/paho-mqtt/
2021-04-06T17:37:06.5929267Z Getting page https://pypi.org/simple/paho-mqtt/
2021-04-06T17:37:06.5930616Z Found index url https://pypi.org/simple
2021-04-06T17:37:06.5938959Z Starting new HTTPS connection (1): pypi.org:443
2021-04-06T17:37:06.5939696Z https://pypi.org:443 "GET /simple/paho-mqtt/ HTTP/1.1" 200 1761
2021-04-06T17:37:06.5940938Z Found link https://files.pythonhosted.org/packages/4f/4a/7cacf78295fe9e9c8ee4edce2b817c9f506b218c44cae28d727807f935b3/paho-mqtt-0.4.90.tar.gz#sha256=6cbb955c504eefe02526aed063e51b646ad0e7a02642a0f6637690ae27941e9c (from https://pypi.org/simple/paho-mqtt/), version: 0.4.90
2021-04-06T17:37:06.5942244Z Found link https://files.pythonhosted.org/packages/91/27/3764e239991acc8a202064e113be776fbd941320bde357b9e40b29fbcea7/paho-mqtt-0.4.91.tar.gz#sha256=b7fb297d1cb44ebab320d6ef44ff4d9ed32999a92b7caa9158d45a44d782c2e9 (from https://pypi.org/simple/paho-mqtt/), version: 0.4.91
2021-04-06T17:37:06.5946062Z Found link https://files.pythonhosted.org/packages/02/59/4d183f02e06e9150be4d6f7fc76576301bd188227e0cb451979fdc1a0c6d/paho-mqtt-0.4.92.tar.gz#sha256=337967543be5d6555151114acf4d94cb9001de35b23d3dc9e3f8ad4d07cc62d5 (from https://pypi.org/simple/paho-mqtt/), version: 0.4.92
2021-04-06T17:37:06.5948488Z Found link https://files.pythonhosted.org/packages/9c/fb/d1cdca82dc88edd7562bfa0f6795600e5352c10f5c1c5abf0e9963e8fe2f/paho-mqtt-0.4.94.tar.gz#sha256=70e4e2d43e714c23fbc70ba97b9ca31279a2dc2a893374c696237c547c4a2dad (from https://pypi.org/simple/paho-mqtt/), version: 0.4.94
2021-04-06T17:37:06.5949747Z Found link https://files.pythonhosted.org/packages/e8/dc/4acbf85f11f1545eddadefa13f5ab858aa9a7f2a508413e6091ec316d307/paho-mqtt-0.9.tar.gz#sha256=e4592f205cbb63f1c67fb22307519dadd9af1c9453c1a9ddebca1ccfa7579c33 (from https://pypi.org/simple/paho-mqtt/), version: 0.9
2021-04-06T17:37:06.5950990Z Found link https://files.pythonhosted.org/packages/51/ea/6c65fd07f5e77b9303fe4948caf81f6618a9e3e68a5f98c7dc0269d4dce0/paho-mqtt-0.9.1.tar.gz#sha256=97808e4bc0af628e7d8608bbc9d256726a12d5290c6a155064d54bdfa4041636 (from https://pypi.org/simple/paho-mqtt/), version: 0.9.1
2021-04-06T17:37:06.5952235Z Found link https://files.pythonhosted.org/packages/ec/4d/834faa69313deec0d3414bdc276ec2e49d8b34e2305b6dbc70cf47d41f9a/paho-mqtt-1.0.tar.gz#sha256=b9d936ad11770c3168becddc4fce706eb369d4cab8273fbc435cc2d4052b3e8a (from https://pypi.org/simple/paho-mqtt/), version: 1.0
2021-04-06T17:37:06.5953458Z Found link https://files.pythonhosted.org/packages/83/96/dacc2b78bc9c5cd83eed178e9ce35d7bceecf2dd38db079c0190423efd4a/paho-mqtt-1.1.tar.gz#sha256=0f7a629efe6e3a2c61b59d3550aa9f2c4529b5689a65fde45e6f1ac36b9a261e (from https://pypi.org/simple/paho-mqtt/), version: 1.1
2021-04-06T17:37:06.5955317Z Found link https://files.pythonhosted.org/packages/82/d9/7064d3a0a1d62756a1a809c85b99f864c641b66de84c15458f72193b7708/paho-mqtt-1.2.tar.gz#sha256=9100a6aa706ab699d414ec02705a21eb66f436184691d0bf1f2a85a6213c6c1f (from https://pypi.org/simple/paho-mqtt/), version: 1.2
2021-04-06T17:37:06.5956574Z Found link https://files.pythonhosted.org/packages/e0/fb/13680584b3781faf9da3eb5c4728e171d89357cb00cdf1cad6b4e30c8cc8/paho-mqtt-1.2.1.tar.gz#sha256=94f35ffc38ca1668b5c57dc47612284bf95b105d43d0cecd4c06896e2508779a (from https://pypi.org/simple/paho-mqtt/), version: 1.2.1
2021-04-06T17:37:06.5957840Z Found link https://files.pythonhosted.org/packages/31/0f/53f71dc9033b492ba6546c452c35722621f9120cee6b905808d893fa0d97/paho-mqtt-1.2.2.tar.gz#sha256=cf297194d2a716010b5ff975f735d025ac3cdb4a317e9330abde4f73a006f1b0 (from https://pypi.org/simple/paho-mqtt/), version: 1.2.2
2021-04-06T17:37:06.5959054Z Found link https://files.pythonhosted.org/packages/ce/27/28ac0859fb8d63754ec51659be265bf3b89d1568c5f6736d21026e11ea85/paho-mqtt-1.2.3.tar.gz#sha256=0fd746d8650563290f1bd0fec01e74cb57c3ab7406bdb58e5d9252bb5fa5ca44 (from https://pypi.org/simple/paho-mqtt/), version: 1.2.3
2021-04-06T17:37:06.5960293Z Found link https://files.pythonhosted.org/packages/33/7f/3ce1ffebaa0343d509aac003800b305d821e89dac3c11666f92e12feca14/paho-mqtt-1.3.0.tar.gz#sha256=2c9ef5494cfc1e41a9fff6544c5a2cd59ea5d401d9119a06ecf7fad6a2ffeb93 (from https://pypi.org/simple/paho-mqtt/), version: 1.3.0
2021-04-06T17:37:06.5961661Z Found link https://files.pythonhosted.org/packages/2a/5f/cf14b8f9f8ed1891cda893a2a7d1d6fa23de2a9fb4832f05cef02b79d01f/paho-mqtt-1.3.1.tar.gz#sha256=31911f6031de306c27ed79dc77b690d7c55b0dcb0f0434ca34ec6361d0371122 (from https://pypi.org/simple/paho-mqtt/), version: 1.3.1
2021-04-06T17:37:06.5963055Z Found link https://files.pythonhosted.org/packages/25/63/db25e62979c2a716a74950c9ed658dce431b5cb01fde29eb6cba9489a904/paho-mqtt-1.4.0.tar.gz#sha256=e440a052b46d222e184be3be38676378722072fcd4dfd2c8f509fb861a7b0b79 (from https://pypi.org/simple/paho-mqtt/), version: 1.4.0
2021-04-06T17:37:06.5964298Z Found link https://files.pythonhosted.org/packages/59/11/1dd5c70f0f27a88a3a05772cd95f6087ac479fac66d9c7752ee5e16ddbbc/paho-mqtt-1.5.0.tar.gz#sha256=e3d286198baaea195c8b3bc221941d25a3ab0e1507fc1779bdb7473806394be4 (from https://pypi.org/simple/paho-mqtt/), version: 1.5.0
2021-04-06T17:37:06.5965913Z Found link https://files.pythonhosted.org/packages/32/d3/6dcb8fd14746fcde6a556f932b5de8bea8fedcb85b3a092e0e986372c0e7/paho-mqtt-1.5.1.tar.gz#sha256=9feb068e822be7b3a116324e01fb6028eb1d66412bf98595ae72698965cb1cae (from https://pypi.org/simple/paho-mqtt/), version: 1.5.1
2021-04-06T17:37:06.5967659Z Given no hashes to check 1 links for project 'paho-mqtt': discarding no candidates
2021-04-06T17:37:06.5981707Z Collecting paho-mqtt==1.5.0
2021-04-06T17:37:06.5982261Z Created temporary directory: C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpack-jeqzsupr
2021-04-06T17:37:06.5982830Z Starting new HTTPS connection (1): files.pythonhosted.org:443
2021-04-06T17:37:06.5984064Z https://files.pythonhosted.org:443 "GET /packages/59/11/1dd5c70f0f27a88a3a05772cd95f6087ac479fac66d9c7752ee5e16ddbbc/paho-mqtt-1.5.0.tar.gz HTTP/1.1" 200 99525
2021-04-06T17:37:06.5987087Z Downloading paho-mqtt-1.5.0.tar.gz (99 kB)
2021-04-06T17:37:06.5990227Z Added paho-mqtt==1.5.0 from https://files.pythonhosted.org/packages/59/11/1dd5c70f0f27a88a3a05772cd95f6087ac479fac66d9c7752ee5e16ddbbc/paho-mqtt-1.5.0.tar.gz#sha256=e3d286198baaea195c8b3bc221941d25a3ab0e1507fc1779bdb7473806394be4 (from azure-iot==0.10.10) to build tracker 'C:\\Users\\VSSADM~1\\AppData\\Local\\Temp\\pip-req-tracker-dsm11eh0'
2021-04-06T17:37:06.5993813Z Running setup.py (path:C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-19k_bfis\paho-mqtt_03f5275b016e4ae5a4df073db26e1114\setup.py) egg_info for package paho-mqtt
2021-04-06T17:37:06.5994903Z Created temporary directory: C:\Users\VSSADM~1\AppData\Local\Temp\pip-pip-egg-info-xu2nsavz
2021-04-06T17:37:06.5997503Z Running command python setup.py egg_info
2021-04-06T17:37:06.5998158Z C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'include_package_data'
2021-04-06T17:37:06.6003252Z C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'install_requires'
2021-04-06T17:37:06.6004161Z C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'zip_safe'
2021-04-06T17:37:06.6007746Z C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'test_suite'
2021-04-06T17:37:06.6009641Z C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'tests_require'
2021-04-06T17:37:06.6010841Z C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'extras_require'
2021-04-06T17:37:06.6012337Z usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
2021-04-06T17:37:06.6012808Z or: setup.py --help [cmd1 cmd2 ...]
2021-04-06T17:37:06.6013195Z or: setup.py --help-commands
2021-04-06T17:37:06.6013543Z or: setup.py cmd --help
2021-04-06T17:37:06.6013715Z
2021-04-06T17:37:06.6014211Z error: invalid command 'egg_info'
2021-04-06T17:37:06.6019649Z WARNING: Discarding https://files.pythonhosted.org/packages/59/11/1dd5c70f0f27a88a3a05772cd95f6087ac479fac66d9c7752ee5e16ddbbc/paho-mqtt-1.5.0.tar.gz#sha256=e3d286198baaea195c8b3bc221941d25a3ab0e1507fc1779bdb7473806394be4 (from https://pypi.org/simple/paho-mqtt/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
2021-04-06T17:37:06.6022051Z ERROR: Could not find a version that satisfies the requirement paho-mqtt==1.5.0 (from azure-iot)
2021-04-06T17:37:06.6022615Z ERROR: No matching distribution found for paho-mqtt==1.5.0
2021-04-06T17:37:06.6029872Z Exception information:
2021-04-06T17:37:06.6031190Z Traceback (most recent call last):
2021-04-06T17:37:06.6031793Z File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 122, in resolve
2021-04-06T17:37:06.6032379Z requirements, max_rounds=try_to_avoid_resolution_too_deep,
2021-04-06T17:37:06.6032987Z File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 453, in resolve
2021-04-06T17:37:06.6033574Z state = resolution.resolve(requirements, max_rounds=max_rounds)
2021-04-06T17:37:06.6034164Z File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 357, in resolve
2021-04-06T17:37:06.6035870Z raise ResolutionImpossible(causes)
2021-04-06T17:37:06.6037365Z pip._vendor.resolvelib.resolvers.ResolutionImpossible: [RequirementInformation(requirement=SpecifierRequirement('paho-mqtt==1.5.0'), parent=LinkCandidate('file:///C:/Users/VSSADM%7E1/AppData/Local/Temp/tmpqenffrb6/azure_iot-0.10.10-py3-none-any.whl'))]
2021-04-06T17:37:06.6038102Z
2021-04-06T17:37:06.6038557Z The above exception was the direct cause of the following exception:
2021-04-06T17:37:06.6038826Z
2021-04-06T17:37:06.6039192Z Traceback (most recent call last):
2021-04-06T17:37:06.6039788Z File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\pip\_internal\cli\base_command.py", line 189, in _main
2021-04-06T17:37:06.6040349Z status = self.run(options, args)
2021-04-06T17:37:06.6040939Z File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\pip\_internal\cli\req_command.py", line 178, in wrapper
2021-04-06T17:37:06.6041509Z return func(self, options, args)
2021-04-06T17:37:06.6042078Z File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\pip\_internal\commands\install.py", line 317, in run
2021-04-06T17:37:06.6042845Z reqs, check_supported_wheels=not options.target_dir
2021-04-06T17:37:06.6043492Z File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 127, in resolve
2021-04-06T17:37:06.6044063Z six.raise_from(error, e)
2021-04-06T17:37:06.6044457Z File "<string>", line 3, in raise_from
2021-04-06T17:37:06.6046077Z pip._internal.exceptions.DistributionNotFound: No matching distribution found for paho-mqtt==1.5.0
2021-04-06T17:37:06.6047805Z Removed paho-mqtt==1.5.0 from https://files.pythonhosted.org/packages/59/11/1dd5c70f0f27a88a3a05772cd95f6087ac479fac66d9c7752ee5e16ddbbc/paho-mqtt-1.5.0.tar.gz#sha256=e3d286198baaea195c8b3bc221941d25a3ab0e1507fc1779bdb7473806394be4 (from azure-iot==0.10.10) from build tracker 'C:\\Users\\VSSADM~1\\AppData\\Local\\Temp\\pip-req-tracker-dsm11eh0'
2021-04-06T17:37:06.6048875Z Removed build tracker: 'C:\\Users\\VSSADM~1\\AppData\\Local\\Temp\\pip-req-tracker-dsm11eh0'
2021-04-06T17:37:06.6049153Z
2021-04-06T17:37:06.6050335Z DEBUG: cli.azure.cli.core.extension.operations: Command '['C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\python.exe', '-m', 'pip', 'install', '--target', 'C:\\Program Files\\Common Files\\AzureCliExtensionDirectory\\azure-iot', 'C:\\Users\\VSSADM~1\\AppData\\Local\\Temp\\tmpqenffrb6\\azure_iot-0.10.10-py3-none-any.whl', '-vv', '--disable-pip-version-check', '--no-cache-dir']' returned non-zero exit status 1.
2021-04-06T17:37:06.6051854Z DEBUG: cli.azure.cli.core.extension.operations: Pip failed so deleting anything we might have installed at C:\Program Files\Common Files\AzureCliExtensionDirectory\azure-iot
2021-04-06T17:37:06.6053070Z DEBUG: cli.azure.cli.core.util: azure.cli.core.util.handle_exception is called with an exception:
2021-04-06T17:37:06.6053670Z DEBUG: cli.azure.cli.core.util: Traceback (most recent call last):
2021-04-06T17:37:06.6054254Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
2021-04-06T17:37:06.6055307Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 660, in execute
2021-04-06T17:37:06.6056096Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 723, in _run_jobs_serially
2021-04-06T17:37:06.6056794Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 716, in _run_job
2021-04-06T17:37:06.6057449Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\six.py", line 703, in reraise
2021-04-06T17:37:06.6058089Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 694, in _run_job
2021-04-06T17:37:06.6058831Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 331, in __call__
2021-04-06T17:37:06.6059505Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/__init__.py", line 811, in default_command_handler
2021-04-06T17:37:06.6060235Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/extension/custom.py", line 18, in add_extension_cmd
2021-04-06T17:37:06.6060961Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/extension/operations.py", line 327, in add_extension
2021-04-06T17:37:06.6061672Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/extension/operations.py", line 163, in _add_whl_ext
2021-04-06T17:37:06.6062315Z knack.util.CLIError: An error occurred. Pip failed with status code 1. Use --debug for more information.
2021-04-06T17:37:06.6062611Z
2021-04-06T17:37:06.6063069Z ERROR: cli.azure.cli.core.azclierror: An error occurred. Pip failed with status code 1. Use --debug for more information.
2021-04-06T17:37:06.6063753Z ERROR: cli.azure.cli.core.azclierror: An error occurred. Pip failed with status code 1. Use --debug for more information.
2021-04-06T17:37:06.6064769Z DEBUG: cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x0395DB28>]
2021-04-06T17:37:06.6065448Z INFO: az_command_data_logger: exit code: 1
2021-04-06T17:37:06.6065951Z INFO: cli.__main__: Command ran in 14.409 seconds (init: 2.774, invoke: 11.635)
2021-04-06T17:37:06.6863951Z INFO: cli.azure.cli.core.decorators: Suppress exception:
2021-04-06T17:37:06.6865018Z Traceback (most recent call last):
2021-04-06T17:37:06.6866383Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/__main__.py", line 60, in <module>
2021-04-06T17:37:06.6867423Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/__main__.py", line 53, in <module>
2021-04-06T17:37:06.6867938Z SystemExit: 1
2021-04-06T17:37:06.6868198Z
2021-04-06T17:37:06.6868866Z During handling of the above exception, another exception occurred:
2021-04-06T17:37:06.6869296Z
2021-04-06T17:37:06.6869643Z Traceback (most recent call last):
2021-04-06T17:37:06.6870198Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 509, in get_current_account_user
2021-04-06T17:37:06.6870916Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 518, in get_subscription
2021-04-06T17:37:06.6872921Z knack.util.CLIError: Please run 'az login' to setup account.
2021-04-06T17:37:06.6873138Z
2021-04-06T17:37:06.6873532Z During handling of the above exception, another exception occurred:
2021-04-06T17:37:06.6873774Z
2021-04-06T17:37:06.6874095Z Traceback (most recent call last):
2021-04-06T17:37:06.6874624Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/decorators.py", line 74, in _wrapped_func
2021-04-06T17:37:06.6875726Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/decorators.py", line 57, in _decorator
2021-04-06T17:37:06.6876461Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/telemetry.py", line 530, in _get_user_azure_id
2021-04-06T17:37:06.6877170Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 511, in get_current_account_user
2021-04-06T17:37:06.6877719Z knack.util.CLIError: There are no active accounts.
2021-04-06T17:37:06.6877931Z
2021-04-06T17:37:06.6878341Z INFO: cli.azure.cli.core.decorators: Suppress exception:
2021-04-06T17:37:06.6878785Z Traceback (most recent call last):
2021-04-06T17:37:06.6879304Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/__main__.py", line 60, in <module>
2021-04-06T17:37:06.6879931Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/__main__.py", line 53, in <module>
2021-04-06T17:37:06.6880394Z SystemExit: 1
2021-04-06T17:37:06.6880524Z
2021-04-06T17:37:06.6880920Z During handling of the above exception, another exception occurred:
2021-04-06T17:37:06.6894579Z
2021-04-06T17:37:06.6895576Z Traceback (most recent call last):
2021-04-06T17:37:06.6896207Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/decorators.py", line 74, in _wrapped_func
2021-04-06T17:37:06.6896921Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/telemetry.py", line 540, in _get_azure_subscription_id
2021-04-06T17:37:06.6897704Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 535, in get_subscription_id
2021-04-06T17:37:06.6898498Z File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 518, in get_subscription
2021-04-06T17:37:06.6899076Z knack.util.CLIError: Please run 'az login' to setup account.
2021-04-06T17:37:06.6899306Z
2021-04-06T17:37:06.6960010Z INFO: telemetry.save: Save telemetry record of length 2914 in cache
2021-04-06T17:37:06.6963235Z INFO: telemetry.check: Positive: The C:\Users\VssAdministrator\.azure\telemetry.txt does not exist.
2021-04-06T17:37:06.6964538Z INFO: telemetry.main: Begin creating telemetry upload process.
2021-04-06T17:37:06.6965968Z INFO: telemetry.process: Creating upload process: "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\telemetry\__init__.pyc C:\Users\VssAdministrator\.azure"
2021-04-06T17:37:06.7092750Z INFO: telemetry.process: Return from creating process
2021-04-06T17:37:06.7093765Z INFO: telemetry.main: Finish creating telemetry upload process.
2021-04-06T17:37:06.9545166Z ##[error]Cmd.exe exited with code '1'.
Additional context As explained this started happening on March 31. Worked fine before.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top GitHub Comments
This issue has been fixed by https://github.com/Azure/azure-cli/pull/17432 since Azure CLI 2.22.0.
Please see https://github.com/Azure/azure-cli/issues/17555#issuecomment-873866956.
@fgheysels @BramCoding I’m from the team owning hosted VMs administration and deployment. We’re investigating the issue in our repo here as well actions/virtual-environments#3143 Azure Cli has its own Python distribution, but the latest az-cli version seems to have a lack of setuptools and wheel python modules. The workaround is to install these modules in runtime via powershell: