Is it possible to host Github's self-hosted runner on Function App?

Najam ul Saqib 400 Reputation points
2025-03-21T04:22:01.0333333+00:00

Hi,

I am looking to deploy self-hosted runner on the function app, and run it whenever code is committed to github. I see an article on doing this with Azure Container Jobs but not with functions. Is this even possible?

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

Accepted answer
  1. Sai Prabhu Naveen Parimi 2,260 Reputation points Microsoft External Staff Moderator
    2025-03-21T06:14:02.6366667+00:00

    Najam ul Saqib

    You're on the right track in exploring deployment options for GitHub self-hosted runners. However, using an Azure Function App for this purpose isn’t a viable approach due to the following reasons:

    Azure Functions Are Stateless & Short-Lived

    1. Azure Functions Are Stateless & Short-Lived
    2. Limited Compute Control in Function Apps
      • Function Apps operate in a sandboxed environment, restricting system-level access and preventing persistent background processes.
      • GitHub self-hosted runners require full control over the system, which Function Apps do not provide.
      • Supporting reference:
      • About GitHub Self-Hosted Runners

    Suggested Method:

    Since you’ve already explored Azure Container Apps, I’d suggest considering:

    • Azure Container Apps – A flexible, scalable option that can host the runner as a container.
    • Azure Virtual Machines – Provides full control and persistence for self-hosted runners.

    Please do not forget to click "Accept the answer” and Yes wherever the information provided helps you, this can be beneficial to other community members.

    If you have any other questions or still running into more issues, let me know in the "comments" and I would be happy to help you.

    1 person found this answer helpful.

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.