-
Notifications
You must be signed in to change notification settings - Fork 3.4k
An error occurred on the service. Identity xxx-xxx-xxx-xxx has not been materialized, please use interactive login over the browser first. #31259
Description
Describe the bug
I get this error when I try to download Azure Artifacts in my Windows OS. It is working using PAT in Linux OS using the Azure DevOps pipeline.
Please note that sensitive data for project id and name have been masked.
Related command
Run this command on powershell: (same issue when running it as bash script)
az artifacts universal download --organization "https://dev.azure.com/xxx-test/"
--project "xxx-xxx-xxx-xxx" --scope project
--feed "common-st" --name "shared-files"
--version "*" `
--path "./static"
Errors
An error occurred on the service. Identity xxx-xxx-xxx-xxx has not been materialized, please use interactive login over the browser first.
Process ['C:\Users\Admin\.azure\azuredevops\cli\tools\artifacttool\ArtifactTool_win-x64_0.2.387\artifacttool', 'universal', 'download', '--service', 'https://dev.azure.com/xxx-test/', '--patvar', 'AZURE_DEVOPS_EXT_ARTIFACTTOOL_PATVAR', '--feed', 'common-st', '--package-name', 'shared-files', '--package-version', '*', '--path', './static', '--project', 'xxx-xxx-xxx-xxx'] with PID 1376 exited with return code 1
Issue script & Debug output
cli.knack.cli: Command arguments: ['artifacts', 'universal', 'download', '--organization', 'https://dev.azure.com/xxx-test/', '--project', 'xxx-xxx-xxx-xxx', '--scope', 'project', '--feed', 'common-st', '--name', 'shared-files', '--version', '*', '--path', './static', '--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 0x01DD2AC8>, <function OutputProducer.on_global_arguments at 0x01F116B8>, <function CLIQuery.on_global_arguments at 0x01F321B8>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'artifacts': ['azext_devops']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: Total (0) 0.000 0 0
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: azure-devops 0.263 60 192 C:\Users\Admin.azure\cliextensions\azure-devops
cli.azure.cli.core: Total (1) 0.263 60 192
cli.azure.cli.core: Loaded 60 groups, 192 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : artifacts universal download
cli.azure.cli.core: Command table: artifacts universal download
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x03ECFF78>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\Admin.azure\commands\2025-04-13.18-18-04.artifacts_universal_download.18288.log'.
az_command_data_logger: command args: artifacts universal download --organization {} --project {} --scope {} --feed {} --name {} --version {} --path {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x03EEEB18>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x03EEEB68>, <function register_cache_arguments..add_cache_arguments at 0x03F1B7A8>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x03F1B7F8>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x01F11708>, <function CLIQuery.handle_query_parameter at 0x01F32208>, <function register_ids_argument..parse_ids_arguments at 0x03F1B758>, <function DevCommandsLoader.post_parse_args at 0x03F375C8>]
az_command_data_logger: extension name: azure-devops
az_command_data_logger: extension version: 1.0.1
cli.azext_devops.dev.common.artifacttool_updater: Checking for a new ArtifactTool
cli.azext_devops.dev.common.artifacttool_updater: Checking for ArtifactTool updates
cli.azext_devops.dev.common._credentials: Getting credential: azdevops-cli:https://dev.azure.com/xxx-test
keyring.backend: Loading KWallet
keyring.backend: Loading SecretService
keyring.backend: Loading Windows
win32ctypes.core.cffi: Loaded cffi backend
keyring.backend: Loading chainer
keyring.backend: Loading macOS
cli.azext_devops.dev.common.credential_store: Keyring backend : keyring.backends.Windows.WinVaultKeyring (priority: 5)
cli.azext_devops.dev.common._credentials: Getting credential: azdevops-cli: default
cli.azext_devops.dev.common.credential_store: Keyring backend : keyring.backends.Windows.WinVaultKeyring (priority: 5)
cli.azext_devops.dev.common.services: PAT is present which can be used against this instance
cli.azure.cli.core: Current cloud config:
AzureCloud
cli.azext_devops.dev.common.services: trying to get token (temp) for tenant 82644bc6-33e3-4d94-9220-58f1a8e4e0bb and user sxlin.az.01@hotmail.com
cli.azure.cli.core.auth.persistence: build_persistence: location='C:\Users\Admin\.azure\msal_token_cache.bin', encrypt=True
cli.azure.cli.core.auth.binary_cache: load: C:\Users\Admin.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: Initializing with Entra authority: https://login.microsoftonline.com/82644bc6-33e3-4d94-9220-58f1a8e4e0bb
msal.authority: openid_config("https://login.microsoftonline.com/82644bc6-33e3-4d94-9220-58f1a8e4e0bb/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/82644bc6-33e3-4d94-9220-58f1a8e4e0bb/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/82644bc6-33e3-4d94-9220-58f1a8e4e0bb/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/82644bc6-33e3-4d94-9220-58f1a8e4e0bb/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/82644bc6-33e3-4d94-9220-58f1a8e4e0bb/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/82644bc6-33e3-4d94-9220-58f1a8e4e0bb/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/82644bc6-33e3-4d94-9220-58f1a8e4e0bb/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/82644bc6-33e3-4d94-9220-58f1a8e4e0bb/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? True
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('499b84ac-1321-427f-aa17-267ca6975798/.default',), kwargs={}
cli.azure.cli.core.auth.msal_credentials: UserCredential.acquire_token: scopes=['499b84ac-1321-427f-aa17-267ca6975798/.default'], claims_challenge=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 1928989e-0070-461d-9acf-b43bc1d7b1ad
cli.azext_devops.dev.common.services: instance recieved in validate_token_for_instance https://dev.azure.com/xxx-test/
cli.azext_devops.dev.common.services: instance processed in validate_token_for_instance https://dev.azure.com/xxx-test/
msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
azext_devops.devops_sdk._file_cache: Loading cache file: C:\Users\Admin.azure-devops\python-sdk\cache\resources.json
azext_devops.devops_sdk._file_cache: attempting to read file C:\Users\Admin.azure-devops\python-sdk\cache\resources.json as utf-8-sig
azext_devops.devops_sdk.connection: File cache hit for resources on: https://dev.azure.com/xxx-test
msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
azext_devops.devops_sdk._file_cache: Loading cache file: C:\Users\Admin.azure-devops\python-sdk\cache\options.json
azext_devops.devops_sdk._file_cache: attempting to read file C:\Users\Admin.azure-devops\python-sdk\cache\options.json as utf-8-sig
azext_devops.devops_sdk.client: File cache hit for options on: https://dev.azure.com/xxx-test
azext_devops.devops_sdk.client: Route template: _apis/{resource}/{*projectId}
azext_devops.devops_sdk.client: Api version '5.0'
azext_devops.devops_sdk.client: GET https://dev.azure.com/xxx-test/_apis/projects?stateFilter=all&$top=1&$skip=0
azext_devops.devops_sdk.client: Request content: None
msrest.universal_http: Configuring redirects: allow=True, max=30
msrest.universal_http: Configuring request: timeout=100, verify=True, cert=None
msrest.universal_http: Configuring proxies: ''
msrest.universal_http: Evaluate proxies against ENV settings: True
urllib3.connectionpool: Starting new HTTPS connection (1): dev.azure.com:443
urllib3.connectionpool: https://dev.azure.com:443 "GET /xxx-test/_apis/projects?stateFilter=all&$top=1&$skip=0 HTTP/1.1" 200 333
azext_devops.devops_sdk.client: Response content: b'{"count":1,"value":[{"id":"xxx-xxx-xxx-xxx","name":"Entitlement","url":"https://dev.azure.com/xxx-test/_apis/projects/xxx-xxx-xxx-xxx","state":"wellFormed","revision":11,"visibility":"private","lastUpdateTime":"2025-04-09T15:08:06.457Z"}]}'
msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
cli.azext_devops.dev.common.telemetry: Azure devops telemetry disabled.
msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
azext_devops.devops_sdk.connection: File cache hit for resources on: https://dev.azure.com/xxx-test
msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
cli.azext_devops.dev.common.artifacttool_updater: Looking up current version of ArtifactTool...
azext_devops.devops_sdk.client: File cache hit for options on: https://vsblob.dev.azure.com/xxx-test
azext_devops.devops_sdk.client: Route template: _apis/{area}/{toolName}/{resource}
azext_devops.devops_sdk.client: Api version '5.0-preview'
azext_devops.devops_sdk.client: GET https://vsblob.dev.azure.com/xxx-test/_apis/clienttools/ArtifactTool/release?osName=Windows&arch=AMD64
azext_devops.devops_sdk.client: Request content: None
msrest.universal_http: Configuring redirects: allow=True, max=30
msrest.universal_http: Configuring request: timeout=100, verify=True, cert=None
msrest.universal_http: Configuring proxies: ''
msrest.universal_http: Evaluate proxies against ENV settings: True
urllib3.connectionpool: Starting new HTTPS connection (1): vsblob.dev.azure.com:443
urllib3.connectionpool: https://vsblob.dev.azure.com:443 "GET /xxx-test/_apis/clienttools/ArtifactTool/release?osName=Windows&arch=AMD64 HTTP/1.1" 200 542
azext_devops.devops_sdk.client: Response content: b'{"name":"ArtifactTool","rid":"win-x64","version":"0.2.387","uri":"https://04pvsblobproduks120.vsblob.vsassets.io/artifacttool/artifacttool-win-x64-Release_0.2.387.zip?sv=2019-07-07&sr=b&sig=j9ZeQqpS3XEDsxTbRMNumyRCDT4iRc0EADdrVcN1tV0%3D&skoid=b7543e91-eeb0-486e-90ea-de5d6b232d2b&sktid=33e01921-4d64-4f8c-a055-5bdaffd5e33d&skt=2025-04-13T13%3A28%3A55Z&ske=2025-04-15T14%3A28%3A55Z&sks=b&skv=2019-07-07&se=2025-04-13T18%3A18%3A04Z&sp=r&P1=1744567984&P2=11&P3=2&P4=%2bUI7J%2f4zjmLM4GdD%2bvh%2fVCKP0rfzWphz93iso8nJVsU%3d"}'
cli.azext_devops.dev.common.artifacttool_updater: Checking if we already have ArtifactTool release 'ArtifactTool_win-x64_0.2.387'
cli.azext_devops.dev.common.artifacttool_updater: Not updating ArtifactTool because the current release already exists at 'C:\Users\Admin.azure\azuredevops\cli\tools\artifacttool\ArtifactTool_win-x64_0.2.387'
cli.azext_devops.dev.common._credentials: Getting credential: azdevops-cli:https://dev.azure.com/xxx-test
cli.azext_devops.dev.common.credential_store: Keyring backend : keyring.backends.Windows.WinVaultKeyring (priority: 5)
cli.azext_devops.dev.common._credentials: Getting credential: azdevops-cli: default
cli.azext_devops.dev.common.credential_store: Keyring backend : keyring.backends.Windows.WinVaultKeyring (priority: 5)
cli.azext_devops.dev.common.services: PAT is present which can be used against this instance
cli.azure.cli.core: Current cloud config:
AzureCloud
cli.azext_devops.dev.common.services: trying to get token (temp) for tenant 82644bc6-33e3-4d94-9220-58f1a8e4e0bb and user sxlin.az.01@hotmail.com
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/82644bc6-33e3-4d94-9220-58f1a8e4e0bb
msal.authority: openid_config("https://login.microsoftonline.com/82644bc6-33e3-4d94-9220-58f1a8e4e0bb/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/82644bc6-33e3-4d94-9220-58f1a8e4e0bb/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/82644bc6-33e3-4d94-9220-58f1a8e4e0bb/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/82644bc6-33e3-4d94-9220-58f1a8e4e0bb/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/82644bc6-33e3-4d94-9220-58f1a8e4e0bb/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/82644bc6-33e3-4d94-9220-58f1a8e4e0bb/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/82644bc6-33e3-4d94-9220-58f1a8e4e0bb/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/82644bc6-33e3-4d94-9220-58f1a8e4e0bb/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? True
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('499b84ac-1321-427f-aa17-267ca6975798/.default',), kwargs={}
cli.azure.cli.core.auth.msal_credentials: UserCredential.acquire_token: scopes=['499b84ac-1321-427f-aa17-267ca6975798/.default'], claims_challenge=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 92ea666b-4e7c-4ec6-961f-177c8a67c536
cli.azext_devops.dev.common.services: instance recieved in validate_token_for_instance https://dev.azure.com/xxx-test/
cli.azext_devops.dev.common.services: instance processed in validate_token_for_instance https://dev.azure.com/xxx-test/
msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
azext_devops.devops_sdk.connection: File cache hit for resources on: https://dev.azure.com/xxx-test
msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
azext_devops.devops_sdk.client: Route template: _apis/{resource}/{*projectId}
azext_devops.devops_sdk.client: Api version '5.0'
azext_devops.devops_sdk.client: GET https://dev.azure.com/xxx-test/_apis/projects?stateFilter=all&$top=1&$skip=0
azext_devops.devops_sdk.client: Request content: None
msrest.universal_http: Configuring redirects: allow=True, max=30
msrest.universal_http: Configuring request: timeout=100, verify=True, cert=None
msrest.universal_http: Configuring proxies: ''
msrest.universal_http: Evaluate proxies against ENV settings: True
urllib3.connectionpool: Starting new HTTPS connection (1): dev.azure.com:443
urllib3.connectionpool: https://dev.azure.com:443 "GET /xxx-test/_apis/projects?stateFilter=all&$top=1&$skip=0 HTTP/1.1" 200 333
azext_devops.devops_sdk.client: Response content: b'{"count":1,"value":[{"id":"xxx-xxx-xxx-xxx","name":"Entitlement","url":"https://dev.azure.com/xxx-test/_apis/projects/xxx-xxx-xxx-xxx","state":"wellFormed","revision":11,"visibility":"private","lastUpdateTime":"2025-04-09T15:08:06.457Z"}]}'
cli.azext_devops.dev.common.external_tool: Running external command: C:\Users\Admin.azure\azuredevops\cli\tools\artifacttool\ArtifactTool_win-x64_0.2.387\artifacttool universal download --service https://dev.azure.com/xxx-test/ --patvar AZURE_DEVOPS_EXT_ARTIFACTTOOL_PATVAR --feed common-st --package-name shared-files --package-version * --path ./static --project xxx-xxx-xxx-xxx
cli.azext_devops.dev.common.artifacttool: An error occurred on the service. Identity 932ee45d-d2c9-4e0e-8814-2d3ed5150e6f has not been materialized, please use interactive login over the browser first.
cli.azext_devops.dev.common.artifacttool: An error occurred on the service. Identity 932ee45d-d2c9-4e0e-8814-2d3ed5150e6f has not been materialized, please use interactive login over the browser first.
cli.azext_devops.dev.common.exception_handler: handling generic error
cli.azure.cli.core.azclierror: 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 666, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 734, 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 726, in _run_job
File "C:\Users\Admin.azure\cliextensions\azure-devops\azext_devops\dev\common\exception_handler.py", line 31, in azure_devops_exception_handler
reraise(sys.exc_info())
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\six.py", line 719, in reraise
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 703, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 336, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 120, in handler
File "C:\Users\Admin.azure\cliextensions\azure-devops\azext_devops\dev\artifacts\universal.py", line 98, in download_package
return artifact_tool.download_universal(organization, project, feed, name, version, path, file_filter)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin.azure\cliextensions\azure-devops\azext_devops\dev\common\artifacttool.py", line 42, in download_universal
return self.run_artifacttool(organization, args, "Downloading")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin.azure\cliextensions\azure-devops\azext_devops\dev\common\artifacttool.py", line 67, in run_artifacttool
proc = self._tool_invoker.run(command_args, new_env, initial_progress_message, _process_stderr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin.azure\cliextensions\azure-devops\azext_devops\dev\common\external_tool.py", line 79, in run
return self.wait()
^^^^^^^^^^^
File "C:\Users\Admin.azure\cliextensions\azure-devops\azext_devops\dev\common\external_tool.py", line 51, in wait
raise CLIError(
knack.util.CLIError: Process ['C:\Users\Admin\.azure\azuredevops\cli\tools\artifacttool\ArtifactTool_win-x64_0.2.387\artifacttool', 'universal', 'download', '--service', 'https://dev.azure.com/xxx-test/', '--patvar', 'AZURE_DEVOPS_EXT_ARTIFACTTOOL_PATVAR', '--feed', 'common-st', '--package-name', 'shared-files', '--package-version', '', '--path', './static', '--project', 'xxx-xxx-xxx-xxx'] with PID 8348 exited with return code 1
cli.azure.cli.core.azclierror: Process ['C:\Users\Admin\.azure\azuredevops\cli\tools\artifacttool\ArtifactTool_win-x64_0.2.387\artifacttool', 'universal', 'download', '--service', 'https://dev.azure.com/xxx-test/', '--patvar', 'AZURE_DEVOPS_EXT_ARTIFACTTOOL_PATVAR', '--feed', 'common-st', '--package-name', 'shared-files', '--package-version', '', '--path', './static', '--project', 'xxx-xxx-xxx-xxx'] with PID 8348 exited with return code 1
az_command_data_logger: Process ['C:\Users\Admin\.azure\azuredevops\cli\tools\artifacttool\ArtifactTool_win-x64_0.2.387\artifacttool', 'universal', 'download', '--service', 'https://dev.azure.com/xxx-test/', '--patvar', 'AZURE_DEVOPS_EXT_ARTIFACTTOOL_PATVAR', '--feed', 'common-st', '--package-name', 'shared-files', '--package-version', '', '--path', './static', '--project', 'xxx-xxx-xxx-xxx'] with PID 8348 exited with return code 1
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x03ED2118>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 4.759 seconds (init: 0.481, invoke: 4.279)
Expected behavior
Expected result: no error.
Environment Summary
PS C:.ME\MyLab.Code\Streamlit\streamlit-app1> az --version
azure-cli 2.71.0
core 2.71.0
telemetry 1.1.0
Extensions:
azure-devops 1.0.1
interactive 1.0.0b1
Dependencies:
msal 1.31.2b1
azure-mgmt-resource 23.1.1
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Config directory 'C:\Users\Admin.azure'
Extensions directory 'C:\Users\Admin.azure\cliextensions'
Python (Windows) 3.12.8 (tags/v3.12.8:2dc476b, Dec 3 2024, 19:07:15) [MSC v.1942 32 bit (Intel)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
Attempt 1: using az devops login
PS C:.ME\Streamlit\streamlit-app1> az devops login
Token:
Command
PS C:.ME\Streamlit\streamlit-app1> az artifacts universal download `
--organization "https://dev.azure.com/xxx-test/"
--project "xxx-xxx-xxx-xxx"
--scope project--feed "common-st"
--name "shared-files"--version "*"
--path "./static"
Error
An error occurred on the service. Identity xxx-xxx-xxx-xxx has not been materialized, please use interactive login over the browser first.
Process ['C:\Users\Admin\.azure\azuredevops\cli\tools\artifacttool\ArtifactTool_win-x64_0.2.387\artifacttool', 'universal', 'download', '--service', 'https://dev.azure.com/xxx-test/', '--patvar', 'AZURE_DEVOPS_EXT_ARTIFACTTOOL_PATVAR', '--feed', 'common-st', '--package-name', 'shared-files', '--package-version', '*', '--path', './static', '--project', 'xxx-xxx-xxx-xxx'] with PID 7620 exited with return code 1
Attempt 2: using az login
PS C:.ME\Streamlit\streamlit-app1> az login
Select the account you want to log in with. For more information on login with Azure CLI, see https://go.microsoft.com/fwlink/?linkid=2271136
Retrieving tenants and subscriptions for the selection...
[Tenant and subscription selection]
No Subscription name Subscription ID Tenant
[1] * Azure subscription 1 xxx-xxx-xxx-xxx Default Directory
The default is marked with an *; the default tenant is 'Default Directory' and subscription is 'Azure subscription 1' (xxx-xxx-xxx-xxx).
Select a subscription and tenant (Type a number or Enter for no changes): 1
Tenant: Default Directory
Subscription: Azure subscription 1 (xxx-xxx-xxx-xxx)
[Announcements]
With the new Azure CLI login experience, you can select the subscription you want to use more easily. Learn more about it and its configuration at https://go.microsoft.com/fwlink/?linkid=2271236
If you encounter any problem, please open an issue at https://aka.ms/azclibug
[Warning] The login output has been updated. Please be aware that it no longer displays the full list of available subscriptions by default.
Command
PS C:.ME\Streamlit\streamlit-app1> az artifacts universal download `
--organization "https://dev.azure.com/xxx-test/"
--project "xxx-xxx-xxx-xxx"
--scope project--feed "common-st"
--name "shared-files"--version "*"
--path "./static"
Error
An error occurred on the service. Identity xxx-xxx-xxx-xxx has not been materialized, please use interactive login over the browser first.
Process ['C:\Users\Admin\.azure\azuredevops\cli\tools\artifacttool\ArtifactTool_win-x64_0.2.387\artifacttool', 'universal', 'download', '--service', 'https://dev.azure.com/xxx-test/', '--patvar', 'AZURE_DEVOPS_EXT_ARTIFACTTOOL_PATVAR', '--feed', 'common-st', '--package-name', 'shared-files', '--package-version', '*', '--path', './static', '--project', 'xxx-xxx-xxx-xxx'] with PID 1376 exited with return code 1
PS C:.ME\Streamlit\streamlit-app1>