We upgraded the azure durable function running in AKS from .net6 to .net8. Everything worked locally.
[40m[32minfo[39m[22m[49m: Host.Startup[0]
A function allow list has been specified, excluding all but the following functions: [Assist_Start]
{
"version": "2.0",
"extensions": {
"durableTask": {
"hubName": "AssistTaskHub",
"storageProvider": {
"connectionStringName": "AzureWebJobsStorage"
}
}
},
"functions": [
"Assist_Start",
"Assist_Orchestrator",
"Assist_Complete",
"Assist_Activation",
"Assist_Subscription",
"Assist_SubOrchestrator",
"Assist_UpdateStatus"
],
"logging": {
"applicationInsights": {
"samplingExcludedTypes": "Request",
"samplingSettings": {
"isEnabled": true
}
}
}
}
Below is the docker file
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS installer-env
EXPOSE 80
EXPOSE 443
USER root
RUN mkdir -p /home/site/wwwroot
USER dotnet
WORKDIR /home/site/wwwroot
COPY . .
FROM mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated8.0
USER 0
ENV ASPNETCORE_URLS=http://*:80
ENV AzureWebJobsScriptRoot=/home/site/wwwroot
AzureFunctionsJobHost__Logging__Console__IsEnabled=true
COPY --from=installer-env ["/home/site/wwwroot", "/home/site/wwwroot"]
We tried as recommended by MS for what is needed for .net 8 upgrade. The code changes and setting FUNCTIONS_WORKER_RUNTIME to dotnet-isolated. Still the function runtime is not reading any other functions other than the start function
New contributor
Jimmy Sebastian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.