3

I've created a test python package and uploaded it to azure artifact feed. I can install and use it on my computer with pip foloowing instructions for pip connection (install keyring, artifacts-keyring and so on). Now I want to use the same package in an azure databricks or a docker container in kubernetes. How can I install it there?

1 Answer 1

6

Visit your "Profile" page on Azure DevOps, then generate a personal access token.

The token should have the "Read" permission for the "Packaging" scope (which provides access to create, read, update, and delete feeds and packages).

Then take the Artifacts Feed Index URL and add <name>:<token>@ right after the https:// part.

The name and token work analogous to a username/password combination here. The name can be anything (even an empty string).

3
  • 1
    It should have the permission for Packaging (Read). And that's enought Nov 26, 2019 at 17:46
  • This answer did not work for me. Does it still work? Can you confirm the format? I used the following for the repository location. (The personal access token is fake, but I put numbers that look correct.) https://silly:[email protected]/myOrg/myProj/_packaging/myFeed/pypi/simple/ myPackage Is that correct? May 4, 2020 at 13:46
  • @MikeWilliamson I tried just now and it works for me; I didn't use <name>:<token>@ but just <token>@. If you're having problems, try generating a fresh token – perhaps the old one has expired.
    – malthe
    May 5, 2020 at 14:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .