ARTIFACTORY: How to connect PyPi feed in Azure Artifacts to the remote repository of the Artifactory

AuthorFullName__c
Sandeep Anikapati
articleNumber
000006025
FirstPublishedDate
2024-02-04T09:15:01Z
lastModifiedDate
2025-07-22

ARTIFACTORY: How to connect PyPi feed in Azure Artifacts to the remote repository of the Artifactory

This article will show you how to connect and download the python packages from the Azure Python Artifacts feed via an Artifactory remote PyPi repository. 

To configure the PyPi remote repository in the Artifactory, we will mostly need the following details to configure in remote repository settings.

1) URL
2) Registry URL
3) Registry Suffix

Obtain the URL:

To obtain the URL, try installing the Python packages directly from the Azure feed with the verbose ("-vvv") flag, which will display the download URL in the PIP client output.

pip install click -vvv
 
Collecting click
  Downloading https://pkgs.dev.azure.com/<your_organization_name>/12b0xxxx-xxxx-xxxxx-93aa-xxxxf791f29/_packaging/c5xxxx-xxxxxxxxx-xxxxxxxa7b617/pypi/download/click/8.1.7/click-8.1.7-py3-none-any.whl (97 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.9/97.9 kB 239.5 kB/s eta 0:00:00


Please note: You need to copy the URL till the download path and the registry URL looks like below:

https://pkgs.dev.azure.com/<your_organization_name>/12b0ac15-xxxx-XXXX-xxxx-xxxxf791f29/_packaging/c5a86566-9758-4478-XXXX-f21e44a7b617/pypi/download
Get the Registry URL :

Navigate to the Azure Python feed and get the Registry URL from the Project setup section

User-added image


The registry URL looks like the below (exclude the “simple” context at end):

https://pkgs.dev.azure.com/<your_organization_name>/<your_project_name>/packaging/<feedname>/pypi 

The next step is to Set up the PyPi's remote repository in the Artifactory as follows:

1.  Obtain the URL:

https://pkgs.dev.azure.com/<your_organization_name>/12bxxxxx-xxx-XXXX-93aa-xxxxxf791f29/_packaging/c5xxxxx-xxxx-xxxxx-XXXX-xxxxxx44a7b617/pypi/download

2.  Provide your Azure credentials in the username and password section.

User-added image


3.  Under Pypi Settings:
Update Registry URL ():  
 https://pkgs.dev.azure.com/<your_organization_name>/<your_project_name>/packaging/<feedname>/pypi 

Registry Suffix: simple
User-added image
4.  In the Advanced section of the remote repository settings, check the Bypass HEAD Requests option.

User-added image

5.  You can now configure your PIP client to download the PyPi packages from the new remote repository, as instructed in the “Set Me Up” section.