1

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?

3

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).

| improve this answer | |
  • 1
    It should have the permission for Packaging (Read). And that's enought – Роман Коптев Nov 26 '19 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:ddpa8d591b9593208265150883af567455023@pkgs.dev.azure.com/myOrg/myProj/_packaging/myFeed/pypi/simple/ myPackage Is that correct? – Mike Williamson May 4 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 at 14:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.