Azure functions use ssh to access private github repo

Erfan Nariman 436 Reputation points
2020-11-04T18:34:59.98+00:00

I am migrating quite some projects from local servers to Azure functions. In these projects we use our own created Python modules which we are hosting on private GitHub repo. When developing locally or on a Ubuntu server, we can add the ssh-key to the GitHub repo and we can do:

pip install git+ssh://******@github.com/org-name/package-name.git

This way we install our private modules.

But how would we do this on an Azure functions where we have git+ssh://******@github.com/org-name/package-name.git in our requirements.txt together with other open source packages like requests==2.24.0. I am not sure how to add ssh to our function app.

Or is there a better solution for this?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
    2020-11-05T04:56:58.553+00:00

    I believe there is no provision to setup an ssh-key for remote builds.

    The alternate would be to either use local build or setup CI/CD Pipeline in Azure Devops or Github Actions to perform the build and deploy to Azure Functions.


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.