Search code examples
azureazure-functionsterraformazure-function-app

Azure functions: executable file not found


I create an Azure linux function using the UI and when I try to deploy to it I get the following error.

OCI runtime create failed: container_linux.go:349: starting container process caused "exec: "func": executable file not found in $PATH": unknown

My entry is 'func start'. From what I understand this means that the container doesn't seem to have the executable for func. Any ideas why this would happen? It seems to work sometimes and other times doesn't work at all


Solution

  • Answering my own question here: This happened because I sent the wrong runtimeStack which was auto inserted by the devops ui when I choose JS, It was then trying to run the app in docker

    DOCKER|microsoft/azure-functions-node8:2.0