Installing Azure DevOps extension in “offline” environments

Max Yermakhanov
ObjectSharp (a Centrilogic Company)
1 min readSep 6, 2024

If you need to install Azure DevOps extension on the server that is not able to connect to the URL endpoints used by az cli install process (which are for the most part aka.ms and github.com), you can follow these simple steps to install azure-devops extension manually:

  1. Download .whl file for Azure DevOps extension for az cli releases page on GitHub. For example, https://github.com/Azure/azure-devops-cli-extension/releases/download/20240514.1/azure_devops-1.0.1-py2.py3-none-any.whl
  2. Download .whl file for Azure DevOps extension dependencies from GitHub. For example, https://files.pythonhosted.org/packages/f6/b1/ba5a96bccd3496241d8908164b9502a129156443cdd5acbdbf04a90b7a09/distro-1.3.0-py2.py3-none-any.whl
  3. Upload those two files onto your “offline” server that requires Azure DevOps extension installed.
  4. Login to your “offline” server and install Azure DevOps extension dependencies by running the following command:
    python3 -m pip install — disable-pip-version-check — target ~/.azure/cliextensions/azure-devops — no-deps distro-1.3.0-py2.py3-none-any.whl
  5. Then, install Azure DevOps extension by running the following command:
    python3 -m pip install — disable-pip-version-check — target ~/.azure/cliextensions/azure-devops — no-deps azure_devops-1.0.1-py2.py3-none-any.whl
  6. Validate that Azure DevOps extension got installed properly by running the following command:
    az devops -h
    or
    az extension list

That’s it. Hopes this helps.

DevOps guy.

--

--