How can I deploy a Python Azure function to a Windows Azure function App?

Nuno Rodrigues 20 Reputation points
2024-08-26T12:01:31.88+00:00

I would like to deploy a python Azure function to a Windows function app. I know that windows function app cannot run python functions natively but I thought it would be possible to do it through a Docker container?

But from the documentation, it seems impossible? There must be solution for this

[https://learn.microsoft.com/fr-fr/azure/azure-functions/functions-deployment-technologies?tabs=windows#docker-container](https://learn.microsoft.com/fr-fr/azure/azure-functions/functions-deployment-technologies?tabs=windows#docker-container

)

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

1 answer

Sort by: Most helpful
  1. Pinaki Ghatak 5,600 Reputation points Microsoft Employee Volunteer Moderator
    2024-08-30T20:29:48.78+00:00

    Hello @Nuno Rodrigues

    Yes, you are correct. You can deploy a Python Azure Function to a Windows Function App using a Docker container. You can follow the steps mentioned in the documentation you shared to deploy your Python Azure Function to a Windows Function App using a Docker container.

    Here are the high-level steps you need to follow:

    1. Create a Dockerfile for your Python Azure Function.
    2. Build a Docker image from the Dockerfile.
    3. Push the Docker image to a container registry.
    4. Create a Windows Function App in Azure.
    5. Configure the Function App to use the Docker container you created.
    6. Deploy the Function App. You can find more detailed steps and examples in the documentation you shared. If you face any issues during the process, feel free to ask for help.

    I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.

    0 comments No comments

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.