Hey @Siegfried Heintze ,
You created your function app using the wrong command. Docker images for Function apps aren't supported on Consumption plans. You need create a function app on a premium or dedicated app service plan, az functionapp plan create --resource-group AzureFunctionsContainers-rg --name myPremiumPlan --location <REGION> --number-of-workers 1 --sku EP1 --is-linux
.
See Create a function on Linux using a custom container for more details.
EDIT 30 May 2023
From a CLI standpoint, you're not missing anything. I verified this on EP1 as well as B1 Linux plans (az appservice plan create --name plan --sku B1 --is-linux
). I basically did the following:
az functionapp plan create --name plan-ryhill-linux-westus2 --sku EP1 --is-linux true
az functionapp create --functions-version 4 --name ryhilldockerapponpremium --os-type linux --runtime dotnet-isolated --storage-account stryhillacct --image xxxregistry.azurecr.io/api:20230530005907 --https-only true --plan plan-ryhill-linux-westus2
to deploy this Dockerfile. The function doesn't show up automatically until the docker image is completely loaded and ready to take requests.
Since you're not seeing your function, I would look your deployment logs for any errors and that your container is serving requests.