Azure Functions - can't pull image from private registry

Zak Bowyer 0 Reputation points
2023-05-11T11:29:23.9066667+00:00

I'd like to run a container image hosted on a private registry on an Azure Function. When building the Azure Function through the portal, I am able to select Container Image, but under the Docker tab I'm only able to select Quickstart as the image source. I would expect to be able to select a private registry source, which I can then supply with configuration, as in Azure Container Instances.

Am I missing any required permissions etc?

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

1 answer

Sort by: Most helpful
  1. Ben Gimblett 4,330 Reputation points Microsoft Employee
    2023-05-11T16:17:16.01+00:00

    See the doc here https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-function-linux-custom-image?pivots=programming-language-csharp&tabs=in-process%2Cbash%2Cazure-cli%2Cv1#create-and-configure-a-function-app-on-azure-with-the-image and the note "If you publish your custom image to a private container registry, you must also set the DOCKER_REGISTRY_SERVER_USERNAME and DOCKER_REGISTRY_SERVER_PASSWORD variables. For more information, see custom containers in the App Service settings reference."


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.