az artifact universal download doesn't work on Organization scoped AzDO feeds. #28030
Labels
Artifacts
az artifacts
Auto-Assign
Auto assign by bot
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Service Attention
This issue is responsible by Azure service team.
Describe the bug
I'm unable to download nuget packages from Organization scoped AzDo feeds, only packages in a Feed that is scoped to a Project works. I've tried on multiple organizations and all come back with the same "Cannot find the package '' in feed ''.
I've also verified I can use the pkgs AzDo API and my token is able to download these packages just fine.
Related command
az artifacts universal download
Errors
"Cannot find the package '' in feed ''.
Issue script & Debug output
cli.azext_devops.dev.common.artifacttool: Cannot find the package '' in feed ''
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 663, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 718, in _run_job
File "C:\Users\johndoe.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 697, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 333, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
File "C:\Users\johndoe.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\johndoe.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\johndoe.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\johndoe.azure\cliextensions\azure-devops\azext_devops\dev\common\external_tool.py", line 79, in run
return self.wait()
^^^^^^^^^^^
File "C:\Users\johndoe.azure\cliextensions\azure-devops\azext_devops\dev\common\external_tool.py", line 51, in wait
raise CLIError(knack.util.CLIError: Process ['C:\Users\johndoe\.azure\azuredevops\cli\tools\artifacttool\ArtifactTool_win10-x64_0.2.300\artifacttool', 'universal', 'download', '--service', 'https://dev.azure.com//', '--patvar', 'AZURE_DEVOPS_EXT_ARTIFACTTOOL_PATVAR', '--feed', '', '--package-name', '', '--package-version', '', '--path', 'D:\Test'] with PID 66444 exited with return code 18
Expected behavior
Download succeeds. If I switch to a Project scoped feed in the same org, downloads are successful.
Environment Summary
azure-cli 2.55.0
core 2.55.0
telemetry 1.1.0
Extensions:
azure-devops 0.26.0
devcenter 4.0.1
Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\seadams.azure\cliextensions'
Python (Windows) 3.11.5 (tags/v3.11.5:cce6ba9, Aug 24 2023, 14:38:34) [MSC v.1936 64 bit (AMD64)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response
The text was updated successfully, but these errors were encountered: