Not able to fetch Azure Artifacts using Service Pricipal
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
I am trying to fetch Azure Artifacts through Service Principal in PowerShell but not able to do it.
Reproduction step:
**az login --service-principal --username "" -p="" --tenant ""**
Above command works fine and returns the following output:

Then I ran the following command to download the artifacts:
az artifacts universal download --organization "" --project "" --scope project --feed "" --name "" --version "" --path .
Error:

I am able to download the artifacts when I simply run **az login**, then pass the authentication through browser and then run the **az artifact download command**. But I want to automate this process through code so I need to login programmatically.
Please let me know what can I do? I have already spent a lot of days for this issue.
Thanks
Contributor guide
Assessment
This issue has not been assessed yet.