Search code examples
azure-devopsazure-artifacts

How can I upload a file to Azure Artifacts from my powershell console using Azure DevOps REST Api?


I want to upload a file to Azure Artifacts using the Rest API. Can I do it?

We use on-prem Azure DevOps Server 2019.

Please, note that it is not a nuget or an npm package. It is just a file.


Solution

  • It is not a nuget or an npm package. It is just a file.

    If what you want to upload is files instead of packages, in Azure devops, I'm afraid only Universal package can available for files to stored.

    BUT, what the issue is Universal package does not supported for Azure devops server. It only support in azure devops service now.

    enter image description here

    In our official forum, there has such suggestion raised to request for this feature added in Azure devops server/TFS. You can vote and share your demand there to raise its priority. Our product group will review it regularly to consider take some features into develop plan.