Skip to content

Instantly share code, notes, and snippets.

@lindhe
Last active August 28, 2019 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lindhe/6ba001bf74f45b143a7e8d25e6d82d6b to your computer and use it in GitHub Desktop.
Save lindhe/6ba001bf74f45b143a7e8d25e6d82d6b to your computer and use it in GitHub Desktop.
Debug log of az devops user list --debug
DEBUG: Command arguments: ['devops', 'user', 'list', '--debug']
DEBUG: Event: Cli.PreExecute []
DEBUG: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7f550fadfd90>, <function OutputProducer.on_global_arguments at 0x7f550f618b70>, <function CLIQuery.on_global_arguments at 0x7f550f642bf8>]
DEBUG: Event: CommandInvoker.OnPreCommandTableCreate []
DEBUG: Installed command modules ['acr', 'acs', 'advisor', 'ams', 'appconfig', 'appservice', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'configure', 'consumption', 'container', 'cosmosdb', 'deploymentmanager', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'interactive', 'iot', 'iotcentral', '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', 'vm']
DEBUG: Loaded module 'acr' in 0.016 seconds.
DEBUG: Loaded module 'acs' in 0.005 seconds.
DEBUG: Loaded module 'advisor' in 0.001 seconds.
DEBUG: Event: CommandLoader.OnLoadCommandTable []
DEBUG: Loaded module 'ams' in 0.004 seconds.
DEBUG: Loaded module 'appconfig' in 0.001 seconds.
DEBUG: Loaded module 'appservice' in 0.009 seconds.
DEBUG: Loaded module 'backup' in 0.002 seconds.
DEBUG: Event: CommandLoader.OnLoadCommandTable []
DEBUG: Loaded module 'batch' in 0.007 seconds.
DEBUG: Loaded module 'batchai' in 0.002 seconds.
DEBUG: Loaded module 'billing' in 0.001 seconds.
DEBUG: Loaded module 'botservice' in 0.002 seconds.
DEBUG: Event: CommandLoader.OnLoadCommandTable []
DEBUG: Loaded module 'cdn' in 0.002 seconds.
DEBUG: Loaded module 'cloud' in 0.001 seconds.
DEBUG: Loaded module 'cognitiveservices' in 0.001 seconds.
DEBUG: Loaded module 'configure' in 0.001 seconds.
DEBUG: Loaded module 'consumption' in 0.002 seconds.
DEBUG: Loaded module 'container' in 0.001 seconds.
DEBUG: Loaded module 'cosmosdb' in 0.004 seconds.
DEBUG: Loaded module 'deploymentmanager' in 0.002 seconds.
DEBUG: Loaded module 'dla' in 0.003 seconds.
DEBUG: Loaded module 'dls' in 0.002 seconds.
DEBUG: Loaded module 'dms' in 0.001 seconds.
DEBUG: Loaded module 'eventgrid' in 0.002 seconds.
DEBUG: Loaded module 'eventhubs' in 0.003 seconds.
DEBUG: Loaded module 'extension' in 0.001 seconds.
DEBUG: Loaded module 'feedback' in 0.000 seconds.
DEBUG: Loaded module 'find' in 0.001 seconds.
DEBUG: Loaded module 'hdinsight' in 0.001 seconds.
DEBUG: Loaded module 'interactive' in 0.000 seconds.
DEBUG: Loaded module 'iot' in 0.003 seconds.
DEBUG: Loaded module 'iotcentral' in 0.001 seconds.
DEBUG: Loaded module 'keyvault' in 0.005 seconds.
DEBUG: Loaded module 'kusto' in 0.003 seconds.
DEBUG: Loaded module 'lab' in 0.005 seconds.
DEBUG: Loaded module 'managedservices' in 0.002 seconds.
DEBUG: Loaded module 'maps' in 0.002 seconds.
DEBUG: Loaded module 'monitor' in 0.008 seconds.
DEBUG: Loaded module 'natgateway' in 0.002 seconds.
DEBUG: Event: CommandLoader.OnLoadCommandTable []
DEBUG: Loaded module 'netappfiles' in 0.005 seconds.
DEBUG: Loaded module 'network' in 0.030 seconds.
DEBUG: Loaded module 'policyinsights' in 0.001 seconds.
DEBUG: Loaded module 'privatedns' in 0.003 seconds.
DEBUG: Loaded module 'profile' in 0.001 seconds.
DEBUG: Loaded module 'rdbms' in 0.004 seconds.
DEBUG: Loaded module 'redis' in 0.002 seconds.
DEBUG: Loaded module 'relay' in 0.002 seconds.
DEBUG: Loaded module 'reservations' in 0.001 seconds.
DEBUG: Loaded module 'resource' in 0.008 seconds.
DEBUG: Loaded module 'role' in 0.003 seconds.
DEBUG: Loaded module 'search' in 0.001 seconds.
DEBUG: Loaded module 'security' in 0.002 seconds.
DEBUG: Loaded module 'servicebus' in 0.004 seconds.
DEBUG: Loaded module 'servicefabric' in 0.001 seconds.
DEBUG: Loaded module 'signalr' in 0.001 seconds.
DEBUG: Loaded module 'sql' in 0.005 seconds.
DEBUG: Loaded module 'sqlvm' in 0.002 seconds.
DEBUG: Event: CommandLoader.OnLoadCommandTable []
DEBUG: Loaded module 'storage' in 0.025 seconds.
DEBUG: Loaded module 'vm' in 0.012 seconds.
DEBUG: Loaded all modules in 0.222 seconds. (note: there's always an overhead with the first module loaded)
DEBUG: Extensions directory: '/home/andreas/.azure/cliextensions'
DEBUG: Found 1 extensions: ['azure-devops']
DEBUG: Extensions directory: '/home/andreas/.azure/cliextensions'
DEBUG: Extension compatibility result: is_compatible=True cli_core_version=2.0.70 min_required=2.0.49 max_required=None
DEBUG: Extensions directory: '/home/andreas/.azure/cliextensions'
DEBUG: Loaded extension 'azure-devops' in 0.017 seconds.
DEBUG: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7f550f343ea0>]
INFO: az_command_data_logger : command args: devops user list --debug
DEBUG: metadata file logging enabled - writing logs to '/home/andreas/.azure/commands'.
DEBUG: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x7f550f363ea0>]
DEBUG: Event: CommandInvoker.OnPostArgumentLoad []
DEBUG: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x7f550f3188c8>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x7f550f318a60>]
DEBUG: Event: CommandInvoker.OnCommandTableLoaded []
DEBUG: Event: CommandInvoker.OnPreParseArgs [<function _documentdb_deprecate at 0x7f550cf14730>]
DEBUG: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7f550f618bf8>, <function CLIQuery.handle_query_parameter at 0x7f550f642c80>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x7f550f318950>, <function handler at 0x7f550cdafbf8>, <function DevCommandsLoader.post_parse_args at 0x7f550c6001e0>]
DEBUG: Extensions directory: '/home/andreas/.azure/cliextensions'
DEBUG: Extensions directory: '/home/andreas/.azure/cliextensions'
INFO: az_command_data_logger : extension name: azure-devops
INFO: az_command_data_logger : extension version: 0.11.0
INFO: GitDetect: Could not detect current remotes based on current working directory.
DEBUG: Command '['git', 'remote', '-v']' returned non-zero exit status 128.
Traceback (most recent call last):
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/dev/common/git.py", line 105, in get_git_remotes
output = subprocess.check_output([_GIT_EXE, 'remote', '-v'], stderr=subprocess.STDOUT)
File "/opt/az/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/opt/az/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', 'remote', '-v']' returned non-zero exit status 128.
INFO: Detect: Url discovery took 0:00:00.003917
DEBUG: Getting credential: azdevops-cli:https://example.visualstudio.com
INFO: keyring.backend : Loading KWallet
INFO: keyring.backend : Loading SecretService
INFO: keyring.backend : Loading Windows
INFO: keyring.backend : Loading chainer
INFO: keyring.backend : Loading macOS
DEBUG: asyncio : Using selector: EpollSelector
DEBUG: Keyring backend : keyring.backends.SecretService.Keyring (priority: 5)
DEBUG: PAT is present which can be used against this instance
DEBUG: Current cloud config:
AzureCloud
DEBUG: trying to get token (temp) for tenant d7c44ffd-d531-4104-85ed-6466227ed835 and user andreas.lindhe@combitech.com
DEBUG: attempting to read file /home/andreas/.azure/accessTokens.json as utf-8-sig
DEBUG: adal-python : 71acd063-e7fe-4112-b2f1-e17da491189d - Authority:Performing instance discovery: ...
DEBUG: adal-python : 71acd063-e7fe-4112-b2f1-e17da491189d - Authority:Performing static instance discovery
DEBUG: adal-python : 71acd063-e7fe-4112-b2f1-e17da491189d - Authority:Authority validated via static instance discovery
INFO: adal-python : 71acd063-e7fe-4112-b2f1-e17da491189d - TokenRequest:Getting token from cache with refresh if necessary.
DEBUG: adal-python : 71acd063-e7fe-4112-b2f1-e17da491189d - CacheDriver:finding with query keys: {'_clientId': '...', 'userId': '...'}
DEBUG: adal-python : 71acd063-e7fe-4112-b2f1-e17da491189d - CacheDriver:Looking for potential cache entries: {'_clientId': '...', 'userId': '...'}
DEBUG: adal-python : 71acd063-e7fe-4112-b2f1-e17da491189d - CacheDriver:Found 7 potential entries.
DEBUG: adal-python : 71acd063-e7fe-4112-b2f1-e17da491189d - CacheDriver:Resource specific token found.
DEBUG: adal-python : 71acd063-e7fe-4112-b2f1-e17da491189d - CacheDriver:Returning token from cache lookup, AccessTokenId: b'redacted', RefreshTokenId: b'redacted'
DEBUG: instance recieved in validate_token_for_instance https://example.visualstudio.com/
DEBUG: instance processed in validate_token_for_instance https://example.visualstudio.com/
DEBUG: msrest.universal_http.requests : Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
DEBUG: msrest.universal_http.requests : Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
DEBUG: azext_devops.devops_sdk._file_cache : Loading cache file: /home/andreas/.azure-devops/python-sdk/cache/resources.json
DEBUG: azext_devops.devops_sdk._file_cache : attempting to read file /home/andreas/.azure-devops/python-sdk/cache/resources.json as utf-8-sig
DEBUG: azext_devops.devops_sdk.connection : File cache hit for resources on: https://example.visualstudio.com
DEBUG: msrest.universal_http.requests : Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
DEBUG: azext_devops.devops_sdk._file_cache : Loading cache file: /home/andreas/.azure-devops/python-sdk/cache/options.json
DEBUG: azext_devops.devops_sdk._file_cache : attempting to read file /home/andreas/.azure-devops/python-sdk/cache/options.json as utf-8-sig
DEBUG: azext_devops.devops_sdk.client : File cache hit for options on: https://example.visualstudio.com
DEBUG: azext_devops.devops_sdk.client : Route template: _apis/{resource}/{*projectId}
DEBUG: azext_devops.devops_sdk.client : Api version '5.0'
DEBUG: azext_devops.devops_sdk.client : GET https://example.visualstudio.com/_apis/projects?stateFilter=all&$top=1&$skip=0
DEBUG: azext_devops.devops_sdk.client : Request content: None
DEBUG: msrest.universal_http : Configuring redirects: allow=True, max=30
DEBUG: msrest.universal_http : Configuring request: timeout=100, verify=True, cert=None
DEBUG: msrest.universal_http : Configuring proxies: ''
DEBUG: msrest.universal_http : Evaluate proxies against ENV settings: True
DEBUG: urllib3.connectionpool : Starting new HTTPS connection (1): example.visualstudio.com:443
DEBUG: urllib3.connectionpool : https://example.visualstudio.com:443 "GET /_apis/projects?stateFilter=all&$top=1&$skip=0 HTTP/1.1" 401 373
DEBUG: azext_devops.devops_sdk.client : Response content: b'{"$id":"1","innerException":null,"message":"TF400813: The user \'d7c44ffd-d531-4104-85ed-6466227ed835\\\\andreas.lindhe@combitech.com\' is not authorized to access this resource.","typeName":"Microsoft.TeamFoundation.Framework.Server.UnauthorizedRequestException, Microsoft.TeamFoundation.Framework.Server","typeKey":"UnauthorizedRequestException","errorCode":0,"eventId":3000}'
DEBUG: msrest.exceptions : TF400813: The user 'd7c44ffd-d531-4104-85ed-6466227ed835\andreas.lindhe@combitech.com' is not authorized to access this resource.
DEBUG: TF400813: The user 'd7c44ffd-d531-4104-85ed-6466227ed835\andreas.lindhe@combitech.com' is not authorized to access this resource.
Traceback (most recent call last):
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/dev/common/services.py", line 93, in validate_token_for_instance
core_client.get_projects(state_filter='all', top=1, skip=0)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/v5_0/core/core_client.py", line 143, in get_projects
query_parameters=query_parameters)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 90, in _send
response = self._send_request(request=request, headers=headers, content=content, media_type=media_type)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 54, in _send_request
self._handle_error(request, response)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 233, in _handle_error
raise AzureDevOpsServiceError(wrapped_exception)
azext_devops.devops_sdk.exceptions.AzureDevOpsServiceError: TF400813: The user 'd7c44ffd-d531-4104-85ed-6466227ed835\andreas.lindhe@combitech.com' is not authorized to access this resource.
DEBUG: Failed to connect using provided credentials
DEBUG: invalid token obtained for tenant d7c44ffd-d531-4104-85ed-6466227ed835
DEBUG: trying to get token (temp) for tenant 74c901f0-6a97-4cfa-8505-9542ce009b27 and user andreas.lindhe@combitech.com
DEBUG: adal-python : ac1a79cd-6647-440f-8abd-355a1b829fb1 - Authority:Performing instance discovery: ...
DEBUG: adal-python : ac1a79cd-6647-440f-8abd-355a1b829fb1 - Authority:Performing static instance discovery
DEBUG: adal-python : ac1a79cd-6647-440f-8abd-355a1b829fb1 - Authority:Authority validated via static instance discovery
INFO: adal-python : ac1a79cd-6647-440f-8abd-355a1b829fb1 - TokenRequest:Getting token from cache with refresh if necessary.
DEBUG: adal-python : ac1a79cd-6647-440f-8abd-355a1b829fb1 - CacheDriver:finding with query keys: {'_clientId': '...', 'userId': '...'}
DEBUG: adal-python : ac1a79cd-6647-440f-8abd-355a1b829fb1 - CacheDriver:Looking for potential cache entries: {'_clientId': '...', 'userId': '...'}
DEBUG: adal-python : ac1a79cd-6647-440f-8abd-355a1b829fb1 - CacheDriver:Found 7 potential entries.
DEBUG: adal-python : ac1a79cd-6647-440f-8abd-355a1b829fb1 - CacheDriver:Resource specific token found.
DEBUG: adal-python : ac1a79cd-6647-440f-8abd-355a1b829fb1 - CacheDriver:Returning token from cache lookup, AccessTokenId: b'redacted', RefreshTokenId: b'redacted'
DEBUG: instance recieved in validate_token_for_instance https://example.visualstudio.com/
DEBUG: instance processed in validate_token_for_instance https://example.visualstudio.com/
DEBUG: msrest.universal_http.requests : Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
DEBUG: msrest.universal_http.requests : Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
DEBUG: azext_devops.devops_sdk.connection : File cache hit for resources on: https://example.visualstudio.com
DEBUG: msrest.universal_http.requests : Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
DEBUG: azext_devops.devops_sdk.client : Route template: _apis/{resource}/{*projectId}
DEBUG: azext_devops.devops_sdk.client : Api version '5.0'
DEBUG: azext_devops.devops_sdk.client : GET https://example.visualstudio.com/_apis/projects?stateFilter=all&$top=1&$skip=0
DEBUG: azext_devops.devops_sdk.client : Request content: None
DEBUG: msrest.universal_http : Configuring redirects: allow=True, max=30
DEBUG: msrest.universal_http : Configuring request: timeout=100, verify=True, cert=None
DEBUG: msrest.universal_http : Configuring proxies: ''
DEBUG: msrest.universal_http : Evaluate proxies against ENV settings: True
DEBUG: urllib3.connectionpool : Starting new HTTPS connection (1): example.visualstudio.com:443
DEBUG: urllib3.connectionpool : https://example.visualstudio.com:443 "GET /_apis/projects?stateFilter=all&$top=1&$skip=0 HTTP/1.1" 401 373
DEBUG: azext_devops.devops_sdk.client : Response content: b'{"$id":"1","innerException":null,"message":"TF400813: The user \'74c901f0-6a97-4cfa-8505-9542ce009b27\\\\andreas.lindhe@combitech.com\' is not authorized to access this resource.","typeName":"Microsoft.TeamFoundation.Framework.Server.UnauthorizedRequestException, Microsoft.TeamFoundation.Framework.Server","typeKey":"UnauthorizedRequestException","errorCode":0,"eventId":3000}'
DEBUG: msrest.exceptions : TF400813: The user '74c901f0-6a97-4cfa-8505-9542ce009b27\andreas.lindhe@combitech.com' is not authorized to access this resource.
DEBUG: TF400813: The user '74c901f0-6a97-4cfa-8505-9542ce009b27\andreas.lindhe@combitech.com' is not authorized to access this resource.
Traceback (most recent call last):
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/dev/common/services.py", line 93, in validate_token_for_instance
core_client.get_projects(state_filter='all', top=1, skip=0)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/v5_0/core/core_client.py", line 143, in get_projects
query_parameters=query_parameters)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 90, in _send
response = self._send_request(request=request, headers=headers, content=content, media_type=media_type)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 54, in _send_request
self._handle_error(request, response)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 233, in _handle_error
raise AzureDevOpsServiceError(wrapped_exception)
azext_devops.devops_sdk.exceptions.AzureDevOpsServiceError: TF400813: The user '74c901f0-6a97-4cfa-8505-9542ce009b27\andreas.lindhe@combitech.com' is not authorized to access this resource.
DEBUG: Failed to connect using provided credentials
DEBUG: invalid token obtained for tenant 74c901f0-6a97-4cfa-8505-9542ce009b27
DEBUG: Getting credential: azdevops-cli:https://example.visualstudio.com
DEBUG: Keyring backend : keyring.backends.SecretService.Keyring (priority: 5)
INFO: Creating connection with personal access token.
DEBUG: msrest.universal_http.requests : Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
DEBUG: Current cloud config:
AzureCloud
DEBUG: Azure devops telemetry enabled.
DEBUG: Logging telemetry to azure devops server.
DEBUG: msrest.universal_http.requests : Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
DEBUG: azext_devops.devops_sdk.connection : File cache hit for resources on: https://example.visualstudio.com
DEBUG: msrest.universal_http.requests : Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
DEBUG: azext_devops.devops_sdk.client : File cache hit for options on: https://example.vsaex.visualstudio.com
DEBUG: azext_devops.devops_sdk.client : Route template: _apis/{resource}/{userDescriptor}
DEBUG: azext_devops.devops_sdk.client : Api version '5.0-preview.2'
DEBUG: azext_devops.devops_sdk.client : GET https://example.vsaex.visualstudio.com/_apis/UserEntitlements?top=100
DEBUG: azext_devops.devops_sdk.client : Request content: None
DEBUG: msrest.universal_http : Configuring redirects: allow=True, max=30
DEBUG: msrest.universal_http : Configuring request: timeout=100, verify=True, cert=None
DEBUG: msrest.universal_http : Configuring proxies: ''
DEBUG: msrest.universal_http : Evaluate proxies against ENV settings: True
DEBUG: msrest.universal_http.requests : Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
DEBUG: urllib3.connectionpool : Starting new HTTPS connection (1): example.vsaex.visualstudio.com:443
DEBUG: azext_devops.devops_sdk.client : Route template: _apis/{area}/{resource}
DEBUG: azext_devops.devops_sdk.client : Api version '5.0-preview.1'
DEBUG: azext_devops.devops_sdk.client : POST https://example.visualstudio.com/_apis/CustomerIntelligence/Events
DEBUG: azext_devops.devops_sdk.client : Request content: [{'area': 'AzureDevopsCli', 'feature': 'devops', 'properties': {'Command': 'user list', 'Args': '', 'ShellType': '/bin/bash', 'IsInteractive': 'True', 'OutputType': 'json', 'OrgPresentInCommand': False, 'ProjectPresentInCommand': False, 'RepoPresentInCommand': False, 'OrgPickedFromGit': False, 'ProjectPickedFromGit': False, 'RepoPickedFromGit': False, 'OrgPickedFromConfig': True, 'ProjectPickedFromConfig': True}}]
DEBUG: msrest.universal_http : Configuring redirects: allow=True, max=30
DEBUG: msrest.universal_http : Configuring request: timeout=100, verify=True, cert=None
DEBUG: msrest.universal_http : Configuring proxies: ''
DEBUG: msrest.universal_http : Evaluate proxies against ENV settings: True
DEBUG: urllib3.connectionpool : Starting new HTTPS connection (1): example.visualstudio.com:443
DEBUG: urllib3.connectionpool : https://example.visualstudio.com:443 "POST /_apis/CustomerIntelligence/Events HTTP/1.1" 401 0
DEBUG: msrest.exceptions : The requested resource requires user authentication: https://example.visualstudio.com/_apis/CustomerIntelligence/Events
DEBUG: The requested resource requires user authentication: https://example.visualstudio.com/_apis/CustomerIntelligence/Events
Traceback (most recent call last):
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/dev/common/telemetry.py", line 92, in _send_tracking_ci_event
ci_client.publish_events([vsts_tracking_data])
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/v5_0/customer_intelligence/customer_intelligence_client.py", line 23, in publish_events
content=content)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 90, in _send
response = self._send_request(request=request, headers=headers, content=content, media_type=media_type)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 54, in _send_request
self._handle_error(request, response)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 254, in _handle_error
url=request.url))
azext_devops.devops_sdk.exceptions.AzureDevOpsAuthenticationError: The requested resource requires user authentication: https://example.visualstudio.com/_apis/CustomerIntelligence/Events
DEBUG: urllib3.connectionpool : https://example.vsaex.visualstudio.com:443 "GET /_apis/UserEntitlements?top=100 HTTP/1.1" 401 0
DEBUG: msrest.exceptions : The requested resource requires user authentication: https://example.vsaex.visualstudio.com/_apis/UserEntitlements?top=100
DEBUG: handling generic error
ERROR: cli.azure.cli.core.util : The command failed with an unexpected error. Here is the traceback:
ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: cli.azure.cli.core.util : The requested resource requires user authentication: https://example.vsaex.visualstudio.com/_apis/UserEntitlements?top=100
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 603, in execute
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 661, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 652, in _run_job
cmd_copy.exception_handler(ex)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/dev/common/exception_handler.py", line 26, in azure_devops_exception_handler
reraise(*sys.exc_info())
File "/opt/az/lib/python3.6/site-packages/six.py", line 693, in reraise
raise value
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 631, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 305, in __call__
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 485, in default_command_handler
return op(**command_args)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/dev/team/user.py", line 23, in get_user_entitlements
user_entitlements = client.get_user_entitlements(top=top, skip=skip)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/v5_0/member_entitlement_management/member_entitlement_management_client.py", line 138, in get_user_entitlements
query_parameters=query_parameters)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 90, in _send
response = self._send_request(request=request, headers=headers, content=content, media_type=media_type)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 54, in _send_request
self._handle_error(request, response)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 254, in _handle_error
url=request.url))
azext_devops.devops_sdk.exceptions.AzureDevOpsAuthenticationError: The requested resource requires user authentication: https://example.vsaex.visualstudio.com/_apis/UserEntitlements?top=100
ERROR: The requested resource requires user authentication: https://example.vsaex.visualstudio.com/_apis/UserEntitlements?top=100
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 603, in execute
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 661, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 652, in _run_job
cmd_copy.exception_handler(ex)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/dev/common/exception_handler.py", line 26, in azure_devops_exception_handler
reraise(*sys.exc_info())
File "/opt/az/lib/python3.6/site-packages/six.py", line 693, in reraise
raise value
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 631, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 305, in __call__
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 485, in default_command_handler
return op(**command_args)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/dev/team/user.py", line 23, in get_user_entitlements
user_entitlements = client.get_user_entitlements(top=top, skip=skip)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/v5_0/member_entitlement_management/member_entitlement_management_client.py", line 138, in get_user_entitlements
query_parameters=query_parameters)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 90, in _send
response = self._send_request(request=request, headers=headers, content=content, media_type=media_type)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 54, in _send_request
self._handle_error(request, response)
File "/home/andreas/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 254, in _handle_error
url=request.url))
azext_devops.devops_sdk.exceptions.AzureDevOpsAuthenticationError: The requested resource requires user authentication: https://example.vsaex.visualstudio.com/_apis/UserEntitlements?top=100
WARNING: cli.azure.cli.core.util :
To open an issue, please run: 'az feedback'
WARNING:
To open an issue, please run: 'az feedback'
INFO: az_command_data_logger : exit code: 1
INFO: telemetry.save : Save telemetry record of length 2541 in cache
WARNING: telemetry.check : Negative: The /home/andreas/.azure/telemetry.txt was modified at 2019-08-28 12:27:49.713425, which in less than 600.000000 s
INFO: command ran in 1.719 seconds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment