Why is my triggers not showing in my azure function after a successful deployment?

Ivan Louw 20 Reputation points
2025-01-16T06:22:59.2633333+00:00

Hi, I am deploying a first time docker image to azure.

From what I can see the deployment was successful as per logs below:

2025-01-16T05:31:01.458Z INFO - 05a#####7be Extracting 65MB / 65MB 2025-01-16T05:31:01.603Z INFO - 05a8ddaac7be Pull complete 2025-01-16T05:31:01.638Z INFO - Digest: sha256:e327e#############################################################929d 2025-01-16T05:31:01.640Z INFO - Status: Downloaded newer image for azuretestcreg.azurecr.io/azfunctiontest:latest 2025-01-16T05:31:01.657Z INFO - Pull Image successful, Time taken: 36 Seconds 2025-01-16T05:31:01.676Z INFO - Starting container for site 2025-01-16T05:31:01.676Z INFO - docker run -d -p 7629:80 --name austeamtest3_0_7#####33 -e WEBSITE_USE_DIAGNOSTIC_SERVER=false -e WEBSITE_CORS_ALLOWED_ORIGINS=https://portal.azure.com -e WEBSITE_CORS_SUPPORT_CREDENTIALS=False -e WEBSITES_ENABLE_APP_SERVICE_STORAGE=false -e WEBSITE_SITE_NAME=austeamTest3 -e WEBSITE_AUTH_ENABLED=False -e PORT=80 -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=a########3.azurewebsites.net -e WEBSITE_INSTANCE_ID=5f#########################################################913 azuretestcreg.azurecr.io/azfunctiontest:latest 2025-01-16T05:31:01.676Z INFO - Logging is not enabled for this container. Please use https://aka.ms/linux-diagnostics to enable logging to see container logs here. 2025-01-16T05:31:05.179Z INFO - Initiating warmup request to container austeamtest3_0_77f9ca33_msiProxy for site austeamtest3 2025-01-16T05:31:05.211Z INFO - Container austeamtest3_0_77f9ca33_msiProxy for site austeamtest3 initialized successfully and is ready to serve requests. 2025-01-16T05:31:05.212Z INFO - Initiating warmup request to container austeamtest3_0_77f9ca33 for site austeamtest3 2025-01-16T05:31:09.432Z INFO - Container austeamtest3_0_77f9ca33 for site austeamtest3 initialized successfully and is ready to serve requests. 2025-01-16T05:31:09.432Z INFO - Initiating warmup request to container austeamtest3_0_77f9ca33_middleware for site austeamtest3 2025-01-16T05:31:09.792Z INFO - Container austeamtest3_0_77f9ca33_middleware for site austeamtest3 initialized successfully and is ready to serve requests.

Here is my docker file, but when I run the image locally the the function work and return the correct result.

# Base image with Python 3.9
FROM mcr.microsoft.com/azure-functions/python:4-python3.10

# Install git to clone the Bitbucket repository
RUN apt-get update \ 
    && apt-get install -y \
    build-essential \
    cmake \
    git \
    unixodbc-dev \
    && rm -rf /var/lib/apt/lists/*

#Copy secrets file

RUN mkdir /etc/secrets/
ENV FUNCTIONS_SECRETS_PATH=/etc/secrets
ENV AzureWebJobsSecretStorageType=Files
ADD host_secrets.json /etc/secrets/host.json

# Copy application code (optional, if you want to add any additional files or scripts)
COPY . /home/site/wwwroot

# Install dependencies from requirements.txt
COPY requirements.txt /
RUN pip install --no-cache-dir -r requirements.txt

# Set environment variables to avoid writing .pyc files and buffering output
ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
    AzureFunctionsJobHost__Logging__Console__IsEnabled=true

# Start Azure Functions
CMD ["python", "function_app.py"]

Can any one please point me in the correct direction to trace why my triggers are not showing?

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

Accepted answer
  1. Shireesha Eeraboina 3,435 Reputation points Microsoft External Staff Moderator
    2025-01-17T07:54:32.11+00:00

    @Ivan Louw Thank you for sharing more details.

    You can troubleshoot this issue using the built-in detectors under the Diagnose and Solve Problems blade of your Function App.

    Please refer the below document mentioned: https://learn.microsoft.com/en-us/azure/azure-functions/functions-diagnostics

    I have reviewed the backend logs for the shared Function App (austeamTest3). I can also see that the functions are executing successfully without any issues.

    I hope this helps! Let me know if you have any further questions or need additional assistance.


0 additional answers

Sort by: Most helpful

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.