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?