Hello Team,
I have used Azure Functions on Kubernetes with KEDA and created docker image for Window VM and hosted on AKS windows node pool.
I have used window node pool VM is Standard_B2s AKSWindows-2019-17763.2114.210811
To run azure function on window have used below base image : mcr.microsoft.com/azure-functions/dotnet:3.0-nanoserver-1809
Here is the Docker file - I have created
FROM mcr.microsoft.com/azure-functions/dotnet:3.0-nanoserver-1809 AS base
WORKDIR /app
EXPOSE 80
FROM mcr.microsoft.com/dotnet/sdk:3.1-nanoserver-1809 AS build
WORKDIR /src
COPY ["FunctionApp.csproj", "FunctionApp/"]
RUN dotnet restore "FunctionApp/FunctionApp.csproj"
COPY . .
WORKDIR "/src/FunctionApp"
RUN dotnet build "FunctionApp.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "FunctionApp.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
#ENTRYPOINT ["dotnet", "FunctionApp.dll"]
It create docker images successfully and pulled to AKS cluster but while reviewing Pods showing below message
"Content root path: C:\app
Now listening on: http://[::]:80
Application started. Press Ctrl+C to shut down."
IF pass - ENTRYPOINT ["dotnet", "FunctionApp.dll"]
Then pod logs shows message as
"It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download"
Can anyone has face above issue while hosting azure based function on windows based docker containerization ? Any inputs will be helpful
Thanks