Azure / azure-cli

Azure Command-Line Interface
MIT License
3.97k stars 2.95k forks source link

Add support for downloading a specific part/path of a pipeline artifact #29877

Open pubudu91 opened 1 week ago

pubudu91 commented 1 week ago

Related command

 $ az pipelines runs artifact download 

Is your feature request related to a problem? Please describe. Let's consider an artifact published under a pipeline. The artifact, say Foo, contains multiple versions of Foo which are targeted to different OS flavors. I'm trying to download a specific platform version of Foo, say Foo-windows-x64, from the pipeline using the aforementioned command. But there's no way for me to do this since the only argument the command seems to accept is the artifact name (Foo in this case). I'd like to avoid downloading the whole thing since it's large (~500MB vs 87MB for the actual portion I need).

Describe the solution you'd like I can download just the relevant part on the ADO portal. See image below. image

So I assume this is technically feasible and just a matter of adding another argument to the above command which would specify a particular path I want to download. e.g.,

 $ az pipelines runs artifact download --org my-org --project my-proj --run-id 1234 --artifact-name `Foo` --sub-path ".\Foo-windows-x64"

Describe alternatives you've considered

Additional context

yonzhan commented 1 week ago

Thank you for opening this issue, we will look into it.

github-actions[bot] commented 1 week ago

Here are some similar issues that might help you. Please check if they can solve your problem.

microsoft-github-policy-service[bot] commented 1 week ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @v-anvashist, @V-hmusukula.