run=2023.1004.29
id=$(
az pipelines runs list |
python3 -c "import json, sys; runs = json.load(sys.stdin); [run] = [ run for run in runs if run['buildNumber'] == '$run' ]; print(run['id'])"
)
az pipelines runs artifact download --artifact-name $name --run-id $id --path /tmp/foo/bar