How to Create a functionapp from docker image in azure registry

LOGANISHANTH E 0 Reputation points
2023-03-23T04:56:23.1433333+00:00

I had my local docker image and pushed it to my azure Container registry, I see no way to launch my function app from the image that I have pushed to the container registry

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

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 17,826 Reputation points Microsoft Employee
    2023-03-27T04:25:30.84+00:00

    @LOGANISHANTH E Thank you for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.
    You can use the below cmdlet to create the function app with the custom image that is stored in the container registry as mentioned here.

    az functionapp create --name <APP_NAME> --storage-account <STORAGE_NAME> --resource-group AzureFunctionsContainers-rg --plan myPremiumPlan --deployment-container-image-name <DOCKER_ID>/azurefunctionsimage:v1.0.0

    Pass the Azure container registry url to the --deployment-container-image-name

    For more information, you can refer to this documentation on how to create a function app on Linux using a custom container.

    Feel free to reach back to me if you have any further questions on this.

    0 comments No comments