How to install a custom Python package in Azure Function from Azure Pipeline

Yashasvi Sai Jagannath Kolachina 40 Reputation points
2024-02-18T16:57:53.58+00:00

Hello! I have set up an Azure DevOps pipeline that builds and deploys Python Azure Functions. Within one of my functions, I am using a custom Python package and I need to figure out how to install this custom package in Azure Function via pipeline. I have published my custom package to artifacts. Can someone please guide me on how to do this installation?

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

Accepted answer
  1. JananiRamesh-MSFT 26,546 Reputation points
    2024-02-19T14:10:09.34+00:00

    @Yashasvi Sai Jagannath Kolachina Thanks for reaching out. From the Azure Function perspective, you need to create a requirements.txt file in your Azure Function project directory that lists all the Python packages that your function depends on, including your custom package.

    But if you need to do it via DevOps pipeline, I would like to let you know that Azure DevOps is currently not supported in Microsoft Q&A (supported products in Q&A are listed here). If you have any further questions or issues with pipelines or DevOps, please reach out to https://developercommunity.visualstudio.com/AzureDevOps forum and the community experts will assist you further in resolving the issue.

    I hope this helps and let me know if any questions.

    If you found the answer to your question helpful, please take a moment to mark it as Yes for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.