Very few people were viewing this thread, so afterwards I posted a duplicate question on Stack Overflow, and now contains the answer. Below is a copy of it ...
Finally, I found the problem. I wonder if this is a bug, or just poorly documented....(or maybe I just didn't interpret it correctly).
As per Leo Lui-MSFT's suggestion above (documented by ...
JFrog Artifactory pros
Artifactory supports 25+ package types, while Azure supports only Maven, npm, NuGet and Python. You can get Docker and Helm with Azure Container Registry but it’s a separate tool.
Artifactory is fully hybrid - available both for on-premise installations and as SaaS - with full parity between the versions.
With Artifactory you can ...
Microsoft Artifact makes a lot of sense if you are using other Microsoft Azure products such as their DevOps solutions. If you are using Azure, Microsoft Artifact will integrate well with the rest of the platform, have better support (only 1 vendor to deal with), and should have better performance since the data will all be in their network. Additionally, ...
If you're using Java/Maven/Gradle, Azure Artifacts only supports ONE external repository: Maven Central. If your package is not in that repository, you are pretty much bound to use Artifactory or Nexus, or some similar alternative.
I had a similar need and I did it as below. In my case it is archived and published differently but I think you get the main idea.
- task: PowerShell@2
displayName: 'Get version number'