Azure Function are not loaded at runtime after deployment using container and python image

Minh Pham | Ximius 5 Reputation points

I have really simple app, that we pull from the our azure registry. The image is pull from the docker registry, but the problem is that it could not find the functions when deploy. It worked fine if we deploy it using VSCode and locally. Also, it could not find the, host.json(). Instead they generate random host.json()

We have the functions as follow:

import azure.functions as func

app = func.FunctionApp()

def main(req: func.HttpRequest) -> str:
    user = req.params.get("user")
    return f"Hello, {user}!"


  "version": "2.0",
  "logging": {
    "applicationInsights": {
      "samplingSettings": {
        "isEnabled": true,
        "excludedTypes": "Request"
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[3.*, 4.0.0)"

The image:

# Base the image on the built-in Azure Functions Python image
FROM as build

FROM build as develop


# Add files from this repo to the root site folder.
COPY . /home/site/wwwroot
# Install requirements
RUN cd /home/site/wwwroot && pip install -r requirements.txt

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

1 answer

Sort by: Most helpful
  1. Minh Pham | Ximius 5 Reputation points

    I got it figure out, I was missing out on AzureWebJobStorage variable

    0 comments No comments