Facing error: Could not found version while deploying Python based Azure Function

Vaishnavi More 0 Reputation points
2025-08-26T09:18:00.62+00:00

When I am trying to deploy the python based azure function using Visual Studio code facing issue as below:

ERROR at stage Running oryx build: Could not find a version that satisfies the requirement azure-functions==1.23.0 (from versions: none)

ERROR: No matching distribution found for azure-functions==1.23.0 | Exit code: 1 | Please review your requirements.txt | More information: https://aka.ms/troubleshoot-python

\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.12 -i /tmp/8dde469b692120d -p packagedir=.python_packages/lib/site-packages

For all the packages listed in requirements.txt facing above error and even I tried passing packages without versions still facing similar issue. Can't recognize what is the root cause of the issue.

deployment

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
{count} votes

1 answer

Sort by: Most helpful
  1. Rakesh Mishra 255 Reputation points Microsoft External Staff Moderator
    2025-08-27T16:43:57.1733333+00:00

    Hi @Vaishnavi More ,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    The Oryx build steps may be failing because the function app cannot reach pypi.org to pull the libraries. Please check below and let me know if it helps.

    1. If your Function App uses regional VNet Integration: inspect the subnet’s NSG outbound rules and the route table / NAT gateway. Allow outbound HTTPS (port 443) to pypi.org (or to the NAT public IPs used by the subnet).
    2. If your org uses a proxy, ensure the proxy settings are available to the build environment (set HTTP_PROXY / HTTPS_PROXY).
    3. If you use a private PyPI feed, make sure it mirrors required packages or add --extra-index-url https://pypi.org/simple (or set PIP_EXTRA_INDEX_URL environment variable) so the build can fall back to PyPI. In requirements.txt:
         --extra-index-url https://pypi.org/simple
         azure-functions==1.23.0
      
      OR pip config (~/.config/pip/pip.conf or /etc/pip.conf):
         [global]
         extra-index-url = https://pypi.org/simple
      

    Reference: https://learn.microsoft.com/en-us/answers/questions/2117785/azure-function-kudu-not-recognizing-pip


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.