How use a custom container with my azure function ?

DOS SANTOS Jérémie 0 Reputation points
2023-05-30T16:08:39.3866667+00:00

Hello community,

For my project of converting docx to pdf,

I want to execute an azure function in node.js, i need to add some dependencies and also to install libreoffice in my computer, the azure function work fine in local but not when i publish it.

I suppose it's because the azure function not have access to libreoffice i wanted to add a custom container for the source in deployment center but the source doesn't appear. Capture d’écran 2023-05-30 à 18.06.01

May someone help me ?

Thanks a lot.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
686 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2023-06-02T20:49:40.2833333+00:00

    Hi @DOS SANTOS Jérémie

    Unfortunately, you can't update an existing function app to use a container image. You'll have to recreate the function app using the default container image.

    Create Azure Function Review + Create Azure Function

    Once created, you can change the image under Deployment Center.

    Azure Function Deployment Center for container app

    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.